Subject: CC Mode modes: mode hooks are called twice.
From: Alan Mackenzie <[email-masked]>
To: [email-masked]
Date: Fri, 14 Feb 2014 22:09:34 +0000
List-Id: <debbugs-submit.debbugs.gnu.org>

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