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

Previous Next

Packages: emacs, cc-mode;

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


Message #17 received at 16759 <at> debbugs.gnu.org (full text, mbox):

From: Stefan <monnier <at> iro.umontreal.ca>
To: Glenn Morris <rgm <at> gnu.org>
Cc: Alan Mackenzie <acm <at> muc.de>, 16759 <at> debbugs.gnu.org
Subject: Re: bug#16759: CC Mode modes: mode hooks are called twice.
Date: Thu, 20 Mar 2014 12:47:23 -0400
> IIUC, this is because you want to run some C-mode stuff after the hooks.

Note that "after the hooks" also means "after the code of the child
mode" if someone defines a child mode (since hooks get delayed to
after the child mode's code).

The need to "run things after the hooks" is not frequent but is not
exceptional either, so we should provide a good solution for it.
So far, the best solution I know is to use hack-local-variables-hook,
but that is not run if you use M-x c-mode RET.


        Stefan




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.