all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Alan Mackenzie <acm@muc.de>
To: 16759@debbugs.gnu.org
Subject: bug#16759: CC Mode modes: mode hooks are called twice.
Date: Fri, 14 Feb 2014 22:09:34 +0000	[thread overview]
Message-ID: <20140214220934.GA3645@acm.acm> (raw)

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	other threads:[~2014-02-14 22:09 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-02-14 22:09 Alan Mackenzie [this message]
2014-02-19 17:29 ` bug#16759: CC Mode modes: mode hooks are called twice 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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20140214220934.GA3645@acm.acm \
    --to=acm@muc.de \
    --cc=16759@debbugs.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.