Jon Fairbairn wrote:
On 2005-01-24 at 16:32MST Surendra Singhi wrote:
Is there any ilisp or slime like package for haskell, which integrates haskell with xemacs or emacs and provides a kind of integrated development environment? I am using Hugs 98.
Does <URL: http://www.haskell.org/pipermail/haskell/2004-November/015015.html
help?
I downloaded the haskell mode from that site and I was trying to configure it, but during the process I ran into this error Debugger entered--Lisp error: (void-function charsetp) signal(void-function (charsetp)) byte-code("..." [buf data kill-buffer signal] 3) find-file-noselect("c:/Documents and Settings/Owner/My Documents/haskell practice/picture.hs") experimental-dragdrop-drop-url-default(#<misc-user-event (dragdrop-drop-dispatch (dragdrop-URL "file:c:/Documents and Settings/Owner/My Documents/haskell practice/picture.hs"))> (dragdrop-URL "file:c:/Documents and Settings/Owner/My Documents/haskell practice/picture.hs")) apply(experimental-dragdrop-drop-url-default (#<misc-user-event (dragdrop-drop-dispatch (dragdrop-URL "file:c:/Documents and Settings/Owner/My Documents/haskell practice/picture.hs"))> (dragdrop-URL "file:c:/Documents and Settings/Owner/My Documents/haskell practice/picture.hs"))) dragdrop-drop-do-functions(((experimental-dragdrop-drop-url-default t t) (experimental-dragdrop-drop-mime-default t t)) #<misc-user-event (dragdrop-drop-dispatch (dragdrop-URL "file:c:/Documents and Settings/Owner/My Documents/haskell practice/picture.hs"))> (dragdrop-URL "file:c:/Documents and Settings/Owner/My Documents/haskell practice/picture.hs")) byte-code("..." [object experimental-dragdrop-drop-functions event event-over-text-area-p dragdrop-extents-done (byte-code "Æ!Ç!È!ɉ¬…ÊËÉ\"ˆ ¬‚ Ì!ˆÍ Î Ï#‰Éa¬”ÐÑ\nÏ\"#ˆÎ Ï\n$‰ªh-ɇ" [window cpos ext buffer event pos event-window event-point event-closest-point nil throw dragdrop-extents-done select-window window-buffer extent-at experimental-dragdrop-drop-functions dragdrop-drop-do-functions extent-property object] 6) dragdrop-drop-do-functions] 4) dragdrop-drop-find-functions(#<misc-user-event (dragdrop-drop-dispatch (dragdrop-URL "file:c:/Documents and Settings/Owner/My Documents/haskell practice/picture.hs"))> (dragdrop-URL "file:c:/Documents and Settings/Owner/My Documents/haskell practice/picture.hs")) dragdrop-drop-dispatch((dragdrop-URL "file:c:/Documents and Settings/Owner/My Documents/haskell practice/picture.hs")) The code in my .init file is (setq load-path (cons "C:\\Program Files\\XEmacs\\xemacs-packages\\lisp\\haskell-mode\\" load-path)) (setq auto-mode-alist (append auto-mode-alist '(("\\.[hg]s$" . haskell-mode) ("\\.hi$" . haskell-mode) ("\\.l[hg]s$" . literate-haskell-mode)))) (autoload 'haskell-mode "haskell-mode" "Major mode for editing Haskell scripts." t) (autoload 'literate-haskell-mode "haskell-mode" "Major mode for editing literate Haskell scripts." t) (add-hook 'haskell-mode-hook 'turn-on-haskell-decl-scan) (add-hook 'haskell-mode-hook 'turn-on-haskell-doc-mode) (add-hook 'haskell-mode-hook 'turn-on-haskell-indent) Am I doing anything wrong? I am using Xemacs 21.4.13 Thanks. -- Surendra Singhi www.public.asu.edu/~sksinghi/
Surendra Singhi wrote:
Is there any ilisp or slime like package for haskell, which integrates haskell with xemacs or emacs and provides a kind of integrated development environment? I am using Hugs 98.
Does <URL: http://www.haskell.org/pipermail/haskell/2004-November/015015.html
help?
I downloaded the haskell mode from that site and I was trying to configure it, but during the process I ran into this error
Debugger entered--Lisp error: (void-function charsetp)
signal(void-function (charsetp))
The charsetp function only exists if XEmacs was built with the MuLE (MUlti-Lingual Emacs) option. However, the only use of that function which I can see in the haskell-mode code is: (and (fboundp 'make-char) (charsetp 'japanese-jisx0208) So charsetp should only be called if the make-char function exists, and that function should also only exist if XEmacs was built with the MuLE option. It may be that you have a version of XEmacs which has make-char but which doesn't have charsetp. In any case, I have CC'd this message to the maintainer of haskell-mode, Stefan Monnier, in case he has any ideas. -- Glynn Clements <glynn@gclements.plus.com>
However, the only use of that function which I can see in the haskell-mode code is:
(and (fboundp 'make-char) (charsetp 'japanese-jisx0208)
So charsetp should only be called if the make-char function exists, and that function should also only exist if XEmacs was built with the MuLE option.
It may be that you have a version of XEmacs which has make-char but which doesn't have charsetp.
I've already seen a similar bug report and the next version will be a bit more paranoid, Stefan "who wishes XEmacs had pushed Mule harder"
Surendra Singhi wrote:
I downloaded the haskell mode from that site and I was trying to configure it, but during the process I ran into this error
Debugger entered--Lisp error: (void-function charsetp) I got over this error by commenting out the code dealing with japanese font and calling charsetp.
But now I have run into another trouble this time it is Debugger entered--Lisp error: (void-function switch-to-haskell) Do I need to set some inferior haskell buffer variable? Or why am I getting this error? I have Hugs98 installed as well as configured on my path. Thanks. -- Surendra Singhi www.public.asu.edu/~sksinghi/
Surendra Singhi wrote:
But now I have run into another trouble this time it is
Debugger entered--Lisp error: (void-function switch-to-haskell)
Do I need to set some inferior haskell buffer variable? Or why am I getting this error? I have Hugs98 installed as well as configured on my path.
The solution is putting (require 'inf-haskell) in the .init file. Sorry, for bothering. -- Surendra Singhi www.public.asu.edu/~sksinghi/
But now I have run into another trouble this time it is Debugger entered--Lisp error: (void-function switch-to-haskell) Do I need to set some inferior haskell buffer variable? Or why am I getting this error? I have Hugs98 installed as well as configured on my path.
The solution is putting (require 'inf-haskell) in the .init file.
It may be a workaround, but it's not a solution. Can you (setq debug-on-error t), then reproduce the error, and then show me the backtrace you (hopefully) get?
Sure, below is the stack content and everything I could get. Debugger entered--Lisp error: (void-function switch-to-haskell) recursive-edit() byte-code("..." [buffer-read-only noninteractive debugger-buffer middlestart debugger-args debugger-batch-max-lines pop-to-buffer debugger-mode debugger-setup-buffer count-lines 2 "...\n" message buffer-string kill-emacs debug backtrace-debug 3 t debugger-reenable "" nil recursive-edit standard-output] 3) debug(error (void-function switch-to-haskell)) HTH. And thanks for doing such a good work with haskell mode. -- Surendra Singhi www.public.asu.edu/~sksinghi/
Stefan Monnier <monnier@iro.umontreal.ca> wrote:
But now I have run into another trouble this time it is Debugger entered--Lisp error: (void-function switch-to-haskell) I have Hugs98 installed as well as configured on my path.
The solution is putting (require 'inf-haskell) in the .init file.
It may be a workaround, but it's not a solution.
Sure, below is the stack content and everything I could get.
Debugger entered--Lisp error: (void-function switch-to-haskell) recursive-edit() byte-code("..." [buffer-read-only noninteractive debugger-buffer middlestart debugger-args debugger-batch-max-lines pop-to-buffer debugger-mode debugger-setup-buffer count-lines 2 "...\n" message buffer-string kill-emacs debug backtrace-debug 3 t debugger-reenable "" nil recursive-edit standard-output] 3) debug(error (void-function switch-to-haskell))
Hmm... that doesn't give me much of a clue. It seems like the rest of the backtrace (the interesting part) is missing. When does this error show up (i.e. what action on you part triggers it)?
When I try to start the inferior haskell buffer(By using the shortcut C-c C-z), I get the above error. In my init file I only have the code for importing "haskell-mode.el" i.e., (require 'haskell-mode) And in the code in above file only the key binding for switch-to-haskell is there. The inf-haskell file is nowhere loaded. I guess, the problem might be that you are using some compiled version of the mode, where everything gets loaded. But I am using the ".el" files directly (I know it is inefficient, but I don't know how to compile them) and as the inf-haskell file is not loaded anywhere it gives the error. I guess, you should put code to compile the ".el" files in the package when "haskell-mode.el" is loaded for the first time and also make sure that all the files get linked properly. Thanks. -- Surendra Singhi www.public.asu.edu/~sksinghi/
participants (3)
-
Glynn Clements -
Stefan Monnier -
Surendra Singhi