Hello,

I see that ada-mode 5.0.1 is not derived from prog-mode as version 4 was. As a consequence, loading ada-mode no longer calls prog-mode-hook, which
we were relying on...  Fixing our hooks is easy but I'd like to know
whether this is intentional.  Why should ada-mode not be part of the
prog-mode "family" anymore?

Excerpt from ada-mode.el version 4 (shipping with GNU emacs 24.3):

| (define-derived-mode ada-mode prog-mode "Ada"
|  "Ada mode is the major mode for editing Ada code."
[...]

And C-h f define-derived-mode yields:

define-derived-mode is an autoloaded Lisp macro in `derived.el'.

| (define-derived-mode CHILD PARENT NAME &optional DOCSTRING &rest BODY)
[...]
| The new mode runs the hook constructed by the function
| `derived-mode-hook-name'.
|
| See Info node `(elisp)Derived Modes' for more details.

--
Ludovic Brenta.


_______________________________________________
Emacs-ada-mode mailing list
[email protected]
http://host114.hostmonster.com/mailman/listinfo/emacs-ada-mode_stephe-leake.org

Reply via email to