GNU bug report logs -
#5335
23.1; hi-lock-file-patterns-policy argument
Previous Next
Full log
View this message in rfc822 format
[Message part 1 (text/plain, inline)]
This is an automatic notification regarding your bug report
which was filed against the emacs package:
#5335: 23.1; hi-lock-file-patterns-policy argument
It has been closed by Glenn Morris <rgm <at> gnu.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 Glenn Morris <rgm <at> gnu.org> by
replying to this email.
--
5335: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=5335
Emacs Bug Tracking System
Contact bug-gnu-emacs <at> gnu.org with problems
[Message part 2 (message/rfc822, inline)]
Thanks, I corrected the manual.
[Message part 3 (message/rfc822, inline)]
According to the emacs manual, if the variable hi-lock-file-patterns-policy
is set to t, Hi-Lock mode should automatically extract and highlight
patterns found in a file when it is visited. This does not work.
Starting with emacs -Q, I execute in the *scratch* buffer
(setq hi-lock-file-patterns-policy t)
and open some file containing the two lines
;; -*- mode: hi-lock -*-
;; Hi-lock: (("mode" . 'hi-blue-b))
The pattern is not highlighted. If I execute instead,
(setq hi-lock-file-patterns-policy (lambda (pattern) t))
then it works as expected. The word "mode" is highlighted.
The bug also exists in emacs 22.
In GNU Emacs 23.1.1 (i486-pc-linux-gnu, GTK+ Version 2.18.2)
of 2009-11-02 on raven, modified by Debian
Windowing system distributor `The X.Org Foundation', version 11.0.10605000
configured using `configure '--build=i486-linux-gnu' '--host=i486-linux-gnu' '--prefix=/usr' '--sharedstatedir=/var/lib' '--libexecdir=/usr/lib' '--localstatedir=/var/lib' '--infodir=/usr/share/info' '--mandir=/usr/share/man' '--with-pop=yes' '--enable-locallisppath=/etc/emacs23:/etc/emacs:/usr/local/share/emacs/23.1/site-lisp:/usr/local/share/emacs/site-lisp:/usr/share/emacs/23.1/site-lisp:/usr/share/emacs/site-lisp:/usr/share/emacs/23.1/leim' '--with-x=yes' '--with-x-toolkit=gtk' '--with-toolkit-scroll-bars' 'build_alias=i486-linux-gnu' 'host_alias=i486-linux-gnu' 'CFLAGS=-DDEBIAN -g -O2' 'LDFLAGS=-g' 'CPPFLAGS=''
This bug report was last modified 15 years and 137 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.