all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* bug#16759: CC Mode modes: mode hooks are called twice.
@ 2014-02-14 22:09 Alan Mackenzie
  2014-02-19 17:29 ` Glenn Morris
       [not found] ` <mailman.15156.1392416485.10748.bug-gnu-emacs@gnu.org>
  0 siblings, 2 replies; 6+ messages in thread
From: Alan Mackenzie @ 2014-02-14 22:09 UTC (permalink / raw)
  To: 16759

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





^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2016-05-09 18:31 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-02-14 22:09 bug#16759: CC Mode modes: mode hooks are called twice Alan Mackenzie
2014-02-19 17:29 ` Glenn Morris
2014-02-19 18:49   ` Stefan Monnier
     [not found]   ` <jwvha7vosnw.fsf-monnier+emacsbugs@gnu.org>
2014-02-19 19:03     ` Glenn Morris
2014-03-20 16:47   ` Stefan
     [not found] ` <mailman.15156.1392416485.10748.bug-gnu-emacs@gnu.org>
2016-05-09 18:31   ` Alan Mackenzie

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.