At 11:16 AM 5/26/99 -0700, Suresh Ramaswamy wrote:
>Hi,
>
>I was trying to configure JDE using the jde-mode-hook function
>and noticed a minor (but critical) typo in the User's Guide.
>
>Below is an excerpt of the relevant section of the JDE user's guide.
>
> You can customize the JDE by defining a JDE mode hook
> function in your .emacs file. The following is an example of
> how to do this:
>
> (defun my-jde-mode-hook ()
> (message "my-jde-mode-hook function executed"))
> (add-hook 'jde-mode-hooks 'my-jde-mode-hook)
>
> The preceding example defines a JDE mode hook function named
> my-jde-mode-hook
> and adds it to the list of JDE mode hook functions, using the
> Emacs Lisp
> function add-hook. Now, whenever you open a Java source file,
> jde-mode
> invokes the function my-jde-mode-hook.
>
>I copied these three lines to my .emacs file, but couldn't see this
>message. It took me a while to figure out that the third line should
>be (add-hook 'jde-mode-hook 'my-jde-mode-hook)! Software programs
>can be sooo picky! :-) Maybe this would have been obvious to some
>one more proficient in Emacs/Lisp.
>
>
Thanks for catching this. At one time the documentation was correct and
the bug was in the NT verson of Emacs, which pluralized the name of the
mode hook variable.
- Paul