GNU bug report logs - #9214
`fundamental-mode-hook' not run when setting up `fundamental-mode' under certain circumstances; Info documentation incorrect

Previous Next

Package: emacs;

Reported by: Štěpán Němec <stepnem <at> gmail.com>

Date: Mon, 1 Aug 2011 10:28:01 UTC

Severity: normal

Done: Chong Yidong <cyd <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


Message #19 received at 9214 <at> debbugs.gnu.org (full text, mbox):

From: Juanma Barranquero <lekktu <at> gmail.com>
To: Štěpán Němec <stepnem <at> gmail.com>
Cc: Chong Yidong <cyd <at> gnu.org>, 9214 <at> debbugs.gnu.org
Subject: Re: bug#9214: `fundamental-mode-hook' not run when setting up
	`fundamental-mode' under certain circumstances;
	Info documentation incorrect
Date: Sun, 29 Jan 2012 00:34:53 +0100
2012/1/28 Štěpán Němec <stepnem <at> gmail.com>:

> And, how can I run code whenever a new buffer is setup (in
> fundamental-mode), if `fundamental-mode-hook' is not meant for that?

You can perhaps fake it with some combination of (setq-default
major-mode my-fundamental-mode), `buffer-list-update-hook', and
advices. It won't be pretty, though.

    Juanma




This bug report was last modified 13 years and 175 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.