From: "Lennart Borgman (gmail)" <lennart.borgman@gmail.com>
To: Jonathan Rockway <jon@jrock.us>
Cc: Emacs Devel <emacs-devel@gnu.org>
Subject: Re: What is font-lock-mode-hook?
Date: Sun, 23 Mar 2008 02:24:19 +0100 [thread overview]
Message-ID: <47E5B143.50106@gmail.com> (raw)
In-Reply-To: <8763vel0a7.fsf@bar.jrock.us>
Jonathan Rockway wrote:
> * On Sat, Mar 22 2008, Lennart Borgman (gmail) wrote:
>> I can't see where it is defined or run.
>>
>
> It's created automatically by define-minor-mode.
>
>>From font-core.el:
>
> (define-minor-mode font-lock-mode ...)
>
> Then in easy-mode.el:
>
> (defmacro define-minor-mode (mode ...
> ...
> ; mode-name is (symbol-name mode)
> (hook (intern (concat mode-name "-hook")))
> (hook-on (intern (concat mode-name "-on-hook")))
> (hook-off (intern (concat mode-name "-off-hook")))
>
> Anyway, this is documented pretty well (in the docstrings and the Elisp
> manual), so please refer to that for more detail.
Thanks Jonathan, sorry for not observing this.
It would be nice if the actual hook variables doc strings had some
explanation of this of course.
next prev parent reply other threads:[~2008-03-23 1:24 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-03-22 18:56 What is font-lock-mode-hook? Lennart Borgman (gmail)
2008-03-22 23:12 ` Leo
2008-03-23 0:58 ` Stefan Monnier
2008-03-23 1:12 ` Lennart Borgman (gmail)
2008-03-23 1:03 ` Jonathan Rockway
2008-03-23 1:24 ` Lennart Borgman (gmail) [this message]
2008-03-23 4:45 ` Jonathan Rockway
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=47E5B143.50106@gmail.com \
--to=lennart.borgman@gmail.com \
--cc=emacs-devel@gnu.org \
--cc=jon@jrock.us \
/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.