bug-gnu-emacs
[Top][All Lists]
Advanced

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

bug#16759: CC Mode modes: mode hooks are called twice.


From: Alan Mackenzie
Subject: bug#16759: CC Mode modes: mode hooks are called twice.
Date: Fri, 14 Feb 2014 22:09:34 +0000
User-agent: Mutt/1.5.21 (2010-09-15)

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).





reply via email to

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