From: Wolfgang Jenkner <wjenkner@inode.at>
To: Katsumi Yamaoka <yamaoka@jpl.org>
Cc: Lars Magne Ingebrigtsen <larsi@gnus.org>,
10063@debbugs.gnu.org, Leo <sdl.web@gmail.com>
Subject: bug#10063: 24.0.91; Making font-lock-mode-hook buffer-local while locally let-bound!
Date: Tue, 27 Dec 2011 17:26:42 +0100 [thread overview]
Message-ID: <85lipy6kvx.fsf@iznogoud.viz> (raw)
In-Reply-To: <b4my5tyoqga.fsf@jpl.org> (Katsumi Yamaoka's message of "Tue, 27 Dec 2011 08:36:53 +0900")
Katsumi Yamaoka <yamaoka@jpl.org> writes:
> Wolfgang Jenkner wrote:
>> -(defvar font-lock-mode-hook)
>
> Why it is defvar'd here is that it no longer exists in Emacs but
> still exists in XEmacs.
Well, it doesn't exist anymore but it still works (and is used, e.g., in
c-mode) in Emacs as well (as a consequence of font-lock-mode being
defined via define-minor-mode).
> Gnus should run with not only old Emacsen but also XEmacsen[1],
> so please don't scrap it. (when (featurep 'xemacs) ...?
There's also the problem that setting (or binding) font-lock-mode-hook
to nil prevents other (perhaps essential) functions on this hook from
running as well. So, here "to scrap" really means "to honour" ;-)
Thank you for the explanation!
Wolfgang
next prev parent reply other threads:[~2011-12-27 16:26 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-11-16 12:29 bug#10063: 24.0.91; Making font-lock-mode-hook buffer-local while locally let-bound! Leo
2011-11-16 14:49 ` Stefan Monnier
2011-11-21 19:37 ` Lars Magne Ingebrigtsen
2011-12-26 20:02 ` Wolfgang Jenkner
2011-12-26 23:36 ` Katsumi Yamaoka
2011-12-27 1:29 ` Stefan Monnier
2011-12-28 2:40 ` Katsumi Yamaoka
2011-12-27 16:26 ` Wolfgang Jenkner [this message]
2011-12-27 19:48 ` Wolfgang Jenkner
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=85lipy6kvx.fsf@iznogoud.viz \
--to=wjenkner@inode.at \
--cc=10063@debbugs.gnu.org \
--cc=larsi@gnus.org \
--cc=sdl.web@gmail.com \
--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).