GNU bug report logs - #1744
bug-reference-mode doesn't fontify when called from mode hook

Previous Next

Package: emacs;

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

From: help-debbugs <at> gnu.org (Emacs bug Tracking System)
To: Juri Linkov <juri <at> jurta.org>
Subject: bug#1744 closed by Juri Linkov <juri <at> jurta.org> (Re: bug#1744: 
 bug-reference-mode doesn't fontify when called from mode hook)
Date: Wed, 14 Jan 2009 00:50:04 +0000
[Message part 1 (text/plain, inline)]
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 <juri <at> jurta.org>.

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 <juri <at> jurta.org> by
replying to this email.


-- 
1744: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=1744
Emacs Bug Tracking System
Contact help-debbugs <at> gnu.org with problems
[Message part 2 (message/rfc822, inline)]
From: Juri Linkov <juri <at> jurta.org>
To: 1744-done <at> debbugs.gnu.org
Subject: Re: bug#1744: bug-reference-mode doesn't fontify when called from mode hook
Date: Wed, 14 Jan 2009 02:44:32 +0200
Fixed.

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

[Message part 3 (message/rfc822, inline)]
From: Juri Linkov <juri <at> jurta.org>
To: emacs-pretest-bug <at> gnu.org
Subject: bug-reference-mode doesn't fontify when called from mode hook
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/



This bug report was last modified 16 years and 189 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.