[EMAIL PROTECTED] (Johan Bockgård) writes:

>>> Modes derived from fundamental mode run after-change-major-mode-hook
>>> twice because fundamental mode runs it unconditionally.
>
> I don't understand this. As define-derived-mode is currently defined modes
> derived from fundamental-mode do not automatically call the fundamental-mode
> function.
>
> [define-derived-mode]
>
>       (when (eq parent 'fundamental-mode) (setq parent nil))
>       [...]
>       (,(or parent 'kill-all-local-variables))

True.  But it's possible to define a derived mode manually, without
using the define-derived-mode macro.

Lute.


_______________________________________________
Emacs-devel mailing list
Emacs-devel@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-devel

Reply via email to