Subject: bug#1744 closed by Juri Linkov <[email-masked]> (Re: bug#1744: bug-reference-mode doesn't fontify when called from mode hook)

From: [email-masked] (Emacs bug Tracking System)
Date: Wed, 14 Jan 2009 00:50:04 +0000

This is an automatic notification regarding your bug report
which was filed against the emacs package:

#1744: bug-reference-mode doesn't fontify when called from mode hook

It has been closed by Juri Linkov <[email-masked]>.

Their explanation is attached below along with your original report.
If this explanation is unsatisfactory and you have not received a
better one in a separate message then please contact Juri Linkov <[email-masked]> by
replying to this email.

-- 
1744: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=1744
Emacs Bug Tracking System
Contact [email-masked] with problems

Subject: Re: bug#1744: bug-reference-mode doesn't fontify when called from mode hook
From: Juri Linkov <[email-masked]>
To: [email-masked]
Date: Wed, 14 Jan 2009 02:44:32 +0200

Fixed.

-- 
Juri Linkov
http://www.jurta.org/emacs/

Subject: bug-reference-mode doesn't fontify when called from mode hook
From: Juri Linkov <[email-masked]>
To: [email-masked]
Date: Wed, 31 Dec 2008 01:44:21 +0200

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/