"Lennart Borgman (gmail)" <address@hidden> writes:
The elisp manual
(info "(elisp) Major Mode Conventions")
says that
Each major mode should have a normal "mode hook" named
`MODENAME-mode-hook'.
fundamental-mode does not have such a hook.
Do you have a use in mind for such a hook, or is the inconsistency
just bugging you? (Not a facetious question, I'm honestly trying to
figure out if the situation is a problem or not.)
In simple.el, fundamental-mode's definition is pretty tiny:
(defun fundamental-mode ()
"Major mode not specialized for anything in particular.
Other major modes are defined by comparison with this one."
(interactive)
(kill-all-local-variables)
(unless delay-mode-hooks
(run-hooks 'after-change-major-mode-hook)))
Hmm, for one thing, I'm not sure why it doesn't just say
(delay-mode-hooks 'after-change-major-mode-hook)
instead of checking the variable delay-mode-hooks manually. Aside
from that, it would be pretty easy to stick a run-hooks call in there,
but would it really help anyone do anything they couldn't do before?