* What is font-lock-mode-hook?
@ 2008-03-22 18:56 Lennart Borgman (gmail)
2008-03-22 23:12 ` Leo
` (2 more replies)
0 siblings, 3 replies; 7+ messages in thread
From: Lennart Borgman (gmail) @ 2008-03-22 18:56 UTC (permalink / raw)
To: Emacs Devel
I can't see where it is defined or run.
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: What is font-lock-mode-hook?
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:03 ` Jonathan Rockway
2 siblings, 0 replies; 7+ messages in thread
From: Leo @ 2008-03-22 23:12 UTC (permalink / raw)
To: emacs-devel
On 2008-03-22 18:56 +0000, Lennart Borgman (gmail) wrote:
> I can't see where it is defined or run.
Indeed, see:
,----[ C-h v font-lock-mode-hook RET ]
| font-lock-mode-hook's value is nil
|
| Documentation:
| Not documented as a variable.
|
| [back]
`----
--
.: Leo :. [ sdl.web AT gmail.com ] .: [ GPG Key: 9283AA3F ] :.
Use the best OS -- http://www.fedoraproject.org/
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: What is font-lock-mode-hook?
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
2 siblings, 1 reply; 7+ messages in thread
From: Stefan Monnier @ 2008-03-23 0:58 UTC (permalink / raw)
To: Lennart Borgman (gmail); +Cc: Emacs Devel
> I can't see where it is defined or run.
It's defined (and run) as part of the `define-minor-mode' used for
font-lock-mode.
Stefan
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: What is font-lock-mode-hook?
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:03 ` Jonathan Rockway
2008-03-23 1:24 ` Lennart Borgman (gmail)
2 siblings, 1 reply; 7+ messages in thread
From: Jonathan Rockway @ 2008-03-23 1:03 UTC (permalink / raw)
To: Lennart Borgman (gmail); +Cc: Emacs Devel
* 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.
Regards,
Jonathan Rockway
--
print just => another => perl => hacker => if $,=$"
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: What is font-lock-mode-hook?
2008-03-23 1:03 ` Jonathan Rockway
@ 2008-03-23 1:24 ` Lennart Borgman (gmail)
2008-03-23 4:45 ` Jonathan Rockway
0 siblings, 1 reply; 7+ messages in thread
From: Lennart Borgman (gmail) @ 2008-03-23 1:24 UTC (permalink / raw)
To: Jonathan Rockway; +Cc: Emacs Devel
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.
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: What is font-lock-mode-hook?
2008-03-23 1:24 ` Lennart Borgman (gmail)
@ 2008-03-23 4:45 ` Jonathan Rockway
0 siblings, 0 replies; 7+ messages in thread
From: Jonathan Rockway @ 2008-03-23 4:45 UTC (permalink / raw)
To: Lennart Borgman (gmail); +Cc: Emacs Devel
* On Sat, Mar 22 2008, Lennart Borgman (gmail) wrote:
> It would be nice if the actual hook variables doc strings had some
> explanation of this of course.
I am inclined to agree with you here. I will take a look tonight and
see if I can easily add a bit of documentation to these auto-generated
variables.
Regards,
Jonathan Rockway
--
print just => another => perl => hacker => if $,=$"
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2008-03-23 4:45 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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)
2008-03-23 4:45 ` Jonathan Rockway
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).