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 #8 received at 9214 <at> debbugs.gnu.org (full text, mbox):

From: Chong Yidong <cyd <at> gnu.org>
To: Štěpán Němec <stepnem <at> gmail.com>
Cc: 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: Sat, 28 Jan 2012 18:37:12 +0800
Štěpán Němec <stepnem <at> gmail.com> writes:

> emacs -Q
>
> (defvar f-m-hook-run 0)
>
> (add-hook 'fundamental-mode-hook
>           (lambda () (setq f-m-hook-run (1+ f-m-hook-run))))
>
> (with-current-buffer (get-buffer-create "f-m-test-buf")
>   major-mode)
> ;=> fundamental-mode
>
> f-m-hook-run
> ;=> 0
>
> (with-current-buffer (get-buffer-create "f-m-test-buf")
>   (fundamental-mode)
>   major-mode)
> ;=> fundamental-mode
>
> f-m-hook-run
> ;=> 1

This was fixed a few months ago (2011-10-27 commit to simple.el).
Closing the bug.  Thanks.





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.