Modes derived from fundamental mode run after-change-major-mode-hook
    twice because fundamental mode runs it unconditionally.  Fundamental
    mode should only run after-change-major-mode-hook if delay-mode-hooks
    is nil.  We can either test this directly or use (run-mode-hooks
    'fundamental-mode-hook).  The latter also introduces
    fundamental-mode-hook, of course.  I see no problem with that, but I'm
    a bit surprised it hasn't been done already.

Fundamental mode does not run a mode hook because what it means is
"put settings in their default values".  But it needs to run
after-change-major-mode-hook, since the minor modes that should apply
to all buffers apply to these buffers too.

Could you do that explicitly?

Thanks.


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

Reply via email to