From: Stefan Monnier <monnier@iro.umontreal.ca>
To: Jason Rumney <jasonr@gnu.org>
Cc: sand@blarg.net, emacs-devel@gnu.org
Subject: Re: nxml-mode uses wrong method to run 'nxml-mode-hook
Date: Mon, 16 Jun 2008 12:34:11 -0400 [thread overview]
Message-ID: <jwvskvdqr01.fsf-monnier+emacs@gnu.org> (raw)
In-Reply-To: <4856331F.6040500@gnu.org> (Jason Rumney's message of "Mon, 16 Jun 2008 10:32:15 +0100")
>> The bottom of the function 'nxml-mode' ("nxml/nxml-mode.el", line 554;
>> your mileage may vary) has
>>
>> (run-hooks 'nxml-mode-hook)
>>
>> It should use 'run-mode-hooks', because this is a major mode
>> definition. Can someone fix that?
>>
>> It looks like there are some other major modes with the same problem.
>> For example: terminal-mode, view-mode, remember-mode, erc, rmail,
>> rcirc. Most of the matches below are minor modes, though.
> The other major modes don't seem to be editing modes, and most of them have
> been in Emacs for a long time, so I am not sure if they should be changed,
> or if they have been left deliberately.
They should all use run-mode-hooks, AFAIK. So unless there's a comment
justifying the use of `run-hooks', it should be changed.
> But I have changed nxml-mode.
Thank you,
Stefan
prev parent reply other threads:[~2008-06-16 16:34 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-06-15 5:53 nxml-mode uses wrong method to run 'nxml-mode-hook sand
2008-06-16 9:32 ` Jason Rumney
2008-06-16 11:10 ` Lennart Borgman
2008-06-16 16:34 ` Stefan Monnier [this message]
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=jwvskvdqr01.fsf-monnier+emacs@gnu.org \
--to=monnier@iro.umontreal.ca \
--cc=emacs-devel@gnu.org \
--cc=jasonr@gnu.org \
--cc=sand@blarg.net \
/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.