GNU bug report logs - #16759
CC Mode modes: mode hooks are called twice.

Previous Next

Packages: cc-mode, emacs;

Reported by: Alan Mackenzie <acm <at> muc.de>

Date: Fri, 14 Feb 2014 22:21:02 UTC

Severity: normal

Done: Alan Mackenzie <acm <at> muc.de>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: help-debbugs <at> gnu.org (GNU bug Tracking System)
To: Alan Mackenzie <acm <at> muc.de>
Cc: tracker <at> debbugs.gnu.org
Subject: bug#16759: closed (CC Mode modes: mode hooks are called twice.)
Date: Mon, 09 May 2016 18:32:02 +0000
[Message part 1 (text/plain, inline)]
Your message dated 9 May 2016 18:31:23 -0000
with message-id <20160509183123.76980.qmail <at> mail.muc.de>
and subject line Re: bug#16759: CC Mode modes: mode hooks are called twice.
has caused the debbugs.gnu.org bug report #16759,
regarding CC Mode modes: mode hooks are called twice.
to be marked as done.

(If you believe you have received this mail in error, please contact
help-debbugs <at> gnu.org.)


-- 
16759: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=16759
GNU Bug Tracking System
Contact help-debbugs <at> gnu.org with problems
[Message part 2 (message/rfc822, inline)]
From: Alan Mackenzie <acm <at> muc.de>
To: bug-gnu-emacs <at> gnu.org
Subject: CC Mode modes: mode hooks are called twice.
Date: Fri, 14 Feb 2014 22:09:34 +0000
In C Mode, etc., c-mode-hook, etc. gets called twice at mode
initialisation.  This is bad, since there will be, at least occasionally,
mode hooks which must not be called twice.

The cause of this is that there is an invocation of run-mode-hooks
generated by the macro define-derived-mode as well as an explicit call to
run-mode-hooks which is not at the end of the mode function.

-- 
Alan Mackenzie (Nuremberg, Germany).


[Message part 3 (message/rfc822, inline)]
From: Alan Mackenzie <acm <at> muc.de>
To: 16759-done <at> debbugs.gnu.org
Cc: Alan Mackenzie <acm <at> muc.de>
Subject: Re: bug#16759: CC Mode modes: mode hooks are called twice.
Date: 9 May 2016 18:31:23 -0000
Bug fixed in the master branch.

-- 
Alan Mackenzie (Nuremberg, Germany).





This bug report was last modified 9 years and 73 days ago.

Previous Next


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