[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#1744: bug-reference-mode doesn't fontify when called from mode hook
From: |
Juri Linkov |
Subject: |
bug#1744: bug-reference-mode doesn't fontify when called from mode hook |
Date: |
Wed, 31 Dec 2008 01:44:21 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (x86_64-pc-linux-gnu) |
With the following mode hook:
(add-hook 'change-log-mode-hook 'bug-reference-mode)
and a file local variable `bug-reference-url-format'
in the ChangeLog file:
;; Local Variables:
;; bug-reference-url-format:
"http://emacsbugs.donarmstrong.com/cgi-bin/bugreport.cgi?bug=%s"
;; End:
bug references never get fontified because `bug-reference-mode' tests
whether a variable `bug-reference-url-format' is non-nil before calling
`(jit-lock-register #'bug-reference-fontify)' in `bug-reference-mode',
and this variable is not yet set because it gets initialized later
in `hack-local-variables' called after `set-auto-mode' in `normal-mode'.
--
Juri Linkov
http://www.jurta.org/emacs/
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- bug#1744: bug-reference-mode doesn't fontify when called from mode hook,
Juri Linkov <=