GNU bug report logs -
#1744
bug-reference-mode doesn't fontify when called from mode hook
Previous Next
Reported by: Juri Linkov <juri <at> jurta.org>
Date: Tue, 30 Dec 2008 23:55:03 UTC
Severity: normal
Done: Juri Linkov <juri <at> jurta.org>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
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://debbugs.gnu.org/cgi/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/
This bug report was last modified 16 years and 190 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.