From: Lute Kamstra <Lute.Kamstra.lists@xs4all.nl>
Cc: Katsumi Yamaoka <yamaoka@jpl.org>, ding@gnus.org, emacs-devel@gnu.org
Subject: Re: run-hooks vs. run-mode-hooks.
Date: Fri, 27 May 2005 17:12:11 +0200 [thread overview]
Message-ID: <87br6w8zzo.fsf@xs4all.nl> (raw)
In-Reply-To: <E1DbfhH-0004Zk-BU@fencepost.gnu.org> (Richard Stallman's message of "Fri, 27 May 2005 10:20:23 -0400")
Richard Stallman <rms@gnu.org> writes:
> Maybe Gnus can do something like:
>
> (or (fboundp 'run-mode-hooks)
> (defalias 'run-mode-hooks 'run-hooks))
>
> Definitely not! Gnus should not mess with the way Emacs defines
> (or doesn't define) these functions!
It seems that that I was badly educated by code I read: I've quite
often seen the use of constructs like the one above.
> Gnus should define a function called gnus-run-mode-hooks, which calls
> run-mode-hooks if that is defined, otherwise run-hooks. Then all the
> modes in Gnus could use gnus-run-mode-hooks.
That's what Katsumi did for gnus-score-mode. Other major mode in Gnus
still use gnus-run-hooks which uses run-hooks. Katsumi, could you fix
those modes in a similar way?
Lute.
next prev parent reply other threads:[~2005-05-27 15:12 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-05-25 12:28 run-hooks vs. run-mode-hooks Lute Kamstra
2005-05-26 5:59 ` Richard Stallman
2005-05-27 0:58 ` Katsumi Yamaoka
2005-05-27 1:40 ` Lute Kamstra
2005-05-27 3:32 ` Katsumi Yamaoka
2005-05-27 8:01 ` Juanma Barranquero
2005-05-27 16:07 ` Stefan Monnier
2005-05-27 16:45 ` Drew Adams
2005-05-27 23:37 ` Juanma Barranquero
2005-05-27 14:20 ` Richard Stallman
2005-05-27 15:12 ` Lute Kamstra [this message]
2005-05-27 21:43 ` Miles Bader
2005-05-27 23:48 ` Katsumi Yamaoka
2005-05-30 6:45 ` Katsumi Yamaoka
2005-05-31 4:17 ` Richard Stallman
2005-05-28 11:52 ` Richard Stallman
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
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87br6w8zzo.fsf@xs4all.nl \
--to=lute.kamstra.lists@xs4all.nl \
--cc=ding@gnus.org \
--cc=emacs-devel@gnu.org \
--cc=yamaoka@jpl.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 public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).