[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Does font-lock-mode-hook still exist?
From: |
Andrew M. Scott |
Subject: |
Does font-lock-mode-hook still exist? |
Date: |
Wed, 11 Jan 2006 13:53:41 -0700 |
Does font-lock-mode-hook still exist? Has its function been
superceded?
C-h v font-lock-mode-hook doesn't return anything on a clean emacs
invocation.
I found zero hits for font-lock-mode-hook on the Emacs info pages.
Browsing the Elisp info file, in the "Standard Hooks" section, it
mentions that
"Every major mode defines a mode hook named `MODENAME-mode-hook'.
The major mode command runs this normal hook with `run-mode-hooks' as
the very last thing it does. *Note Mode Hooks::. Most minor modes
have mode hooks too. Mode hooks are omitted in the list below."
so I'm assuming that font-lock-mode-hook may be an example of
MODENAME-mode-hook. Even if it is a generic example, it might be nice
to have a docstring for font-lock-mode-hook as a special case of a hook.
I did grep for font-lock-mode-hook in the distribution lisp directories:
<something>/emacs/lisp/
ansi-color.el:244:\(add-hook 'font-lock-mode-hook
ChangeLog.6:661: Call font-lock-turn-on-thing-lock before
font-lock-mode-hook. Doc fix.
ChangeLog.6:672: (fast-lock-mode): Wrap font-lock-support-mode not
font-lock-mode-hook.
ChangeLog.9:6641: put onto font-lock-mode-hook. This lambda expression
will check
ChangeLog.9:8891: (font-lock-mode, font-lock-mode-hook) <defvar>: Remove.
hi-lock.el:334: (add-hook 'font-lock-mode-hook 'hi-lock-font-lock-hook nil t))
hi-lock.el:347: (remove-hook 'font-lock-mode-hook 'hi-lock-font-lock-hook
t)))
FYI, I also grepped my local site-lisp area to see what other packages
might use font-lock-mode-hook:
aplac-mode.el:1977: (make-local-hook 'font-lock-mode-hook)
aplac-mode.el:1979: (add-hook 'font-lock-mode-hook
'aplac-colourize-libraries-buffer t t)
code-keywords.el:124:(add-hook 'font-lock-mode-hook 'code-keywords--font-lock)
cperl-mode.5.14.el:6619: (add-hook 'font-lock-mode-hook
cvs-keywords.el:48:(add-hook 'font-lock-mode-hook 'cvs-keywords-font-lock)
eldo-mode.el:4427: (make-local-hook 'font-lock-mode-hook)
eldo-mode.el:4429: (add-hook 'font-lock-mode-hook
'eldo-colorize-libraries-buffer t t)
matlab.el:432: (remove-hook 'font-lock-mode-hook
'matlab-font-lock-adjustments))
matlab.el:438: (add-hook 'font-lock-mode-hook 'matlab-font-lock-adjustments))
spice-mode.el:8529: (make-local-hook 'font-lock-mode-hook)
spice-mode.el:8531: (add-hook 'font-lock-mode-hook
'spice-colorize-libraries-buffer t t)
tab-display.el:194:(add-hook 'font-lock-mode-hook 'tab-display-mode-hook)
verilog-mode.el:2014: (make-local-hook 'font-lock-mode-hook)
verilog-mode.el:2016: (add-hook 'font-lock-mode-hook
'verilog-colorize-include-files-buffer t t)
xrdb-mode.el:495:(defun xrdb-font-lock-mode-hook ()
xrdb-mode.el:500: (remove-hook 'font-lock-mode-hook 'xrdb-font-lock-mode-hook))
xrdb-mode.el:501:(add-hook 'font-lock-mode-hook 'xrdb-font-lock-mode-hook)
Thanks,
Andy Scott
- Does font-lock-mode-hook still exist?,
Andrew M. Scott <=