From: Richard Stallman <rms@gnu.org>
Cc: emacs-devel@gnu.org
Subject: Re: Fundamental mode.
Date: Thu, 16 Jun 2005 00:07:42 -0400 [thread overview]
Message-ID: <E1DilfK-0003Fm-6G@fencepost.gnu.org> (raw)
In-Reply-To: <87br68f111.fsf@xs4all.nl> (message from Lute Kamstra on Wed, 15 Jun 2005 10:59:54 +0200)
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.
next prev parent reply other threads:[~2005-06-16 4:07 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-06-15 8:59 Fundamental mode Lute Kamstra
2005-06-15 9:19 ` Juanma Barranquero
2005-06-16 4:07 ` Richard Stallman [this message]
2005-06-16 12:41 ` Lute Kamstra
2005-06-18 15:04 ` Johan Bockgård
2005-06-19 0:49 ` Lute Kamstra
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=E1DilfK-0003Fm-6G@fencepost.gnu.org \
--to=rms@gnu.org \
--cc=emacs-devel@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).