On Sun, Apr 30, 2000 at 06:38:16AM +0100, Glynn Clements wrote:
>
> Jos�_Romildo_Malaquias wrote:
>
> > I have been using the haskell-mode <http://www.haskel.org/haskell-mode/>
> > (latest release: 1.3) for (X)Emacs for a while and it has helped me a lot
> > in my Haskell programming activity. Thanks to the authors. But I am having
> > a problem with this mode in XEmacs (XEmacs 21.1.9). For every buffer I open
> > in haskell mode I receive the message
> >
> > (error/warning) Error in `post-command-hook' (setting hook to nil): (void-variable
>imenu--index-alist)
>
> Try putting
>
> (require 'imenu)
>
> in your ~/.emacs.
That solved the problem.
On Sat, Apr 29, 2000 at 10:26:05PM -0700, tom wrote:
> Have you tried running completely without your .emacs file?
> As a quick fix, have you tried setting imenu-index-alist to NIL?
I tried running without the system and user init files and then
progressively loaded the haskell-mode components. The error happens
with the module haskell-doc.el. Maybe it could be modified to
remove the need of explicitly requiring imenu.
Now my initialization file contais the following lines:
---------------------------------------------
(setq load-path (cons "/usr/share/emacs/site-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-font-lock)
(add-hook 'haskell-mode-hook 'turn-on-haskell-decl-scan)
(require 'imenu)
(add-hook 'haskell-mode-hook 'turn-on-haskell-doc-mode)
(add-hook 'haskell-mode-hook 'turn-on-haskell-indent)
;(add-hook 'haskell-mode-hook 'turn-on-haskell-simple-indent)
(add-hook 'haskell-mode-hook 'turn-on-haskell-hugs)
---------------------------------------------
Thanks for pointing me for a solution.
Romildo
--
Prof. Jos� Romildo Malaquias <[EMAIL PROTECTED]>
Departamento de Computa��o
Universidade Federal de Ouro Preto
Brasil