GNU bug report logs - #5335
23.1; hi-lock-file-patterns-policy argument

Previous Next

Package: emacs;

Reported by: yves coudene <yves.coudene <at> univ-brest.fr>

Date: Thu, 7 Jan 2010 21:10:03 UTC

Severity: normal

Done: Glenn Morris <rgm <at> gnu.org>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 5335 in the body.
You can then email your comments to 5335 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org:
bug#5335; Package emacs. (Thu, 07 Jan 2010 21:10:03 GMT) Full text and rfc822 format available.

Acknowledgement sent to yves coudene <yves.coudene <at> univ-brest.fr>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Thu, 07 Jan 2010 21:10:03 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: yves coudene <yves.coudene <at> univ-brest.fr>
To: bug-gnu-emacs <at> gnu.org
Subject: 23.1; hi-lock-file-patterns-policy argument
Date: Thu, 07 Jan 2010 22:01:41 +0100
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=''





Reply sent to Glenn Morris <rgm <at> gnu.org>:
You have taken responsibility. (Mon, 11 Jan 2010 03:34:01 GMT) Full text and rfc822 format available.

Notification sent to yves coudene <yves.coudene <at> univ-brest.fr>:
bug acknowledged by developer. (Mon, 11 Jan 2010 03:34:01 GMT) Full text and rfc822 format available.

Message #10 received at 5335-done <at> debbugs.gnu.org (full text, mbox):

From: Glenn Morris <rgm <at> gnu.org>
To: 5335-done <at> debbugs.gnu.org
Subject: Re: bug#5335: 23.1; hi-lock-file-patterns-policy argument
Date: Sun, 10 Jan 2010 22:33:27 -0500
Thanks, I corrected the manual.




bug archived. Request was from Debbugs Internal Request <bug-gnu-emacs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Mon, 08 Feb 2010 12:24:03 GMT) Full text and rfc822 format available.

This bug report was last modified 15 years and 136 days ago.

Previous Next


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