emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Fundamental mode.


From: Richard Stallman
Subject: Re: Fundamental mode.
Date: Thu, 16 Jun 2005 00:07:42 -0400

    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.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]