GNU bug report logs - #20977
24.5; Hi Lock Mode fails with "Invalid pattern list expression"

Previous Next

Package: emacs;

Reported by: Raffaele Ricciardi <rfflrccrd <at> gmail.com>

Date: Sat, 4 Jul 2015 10:35:02 UTC

Severity: minor

Tags: easy

Found in version 24.5

Fixed in version 28.1

Done: Lars Ingebrigtsen <larsi <at> gnus.org>

Bug is archived. No further changes may be made.

Full log


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

From: Michael Heerdegen <michael_heerdegen <at> web.de>
To: Raffaele Ricciardi <rfflrccrd <at> gmail.com>
Cc: 20977 <at> debbugs.gnu.org
Subject: Re: bug#20977: 24.5;
 Hi Lock Mode fails with "Invalid pattern list expression"
Date: Sat, 04 Jul 2015 16:46:27 +0200
Raffaele Ricciardi <rfflrccrd <at> gmail.com> writes:

> emacs -Q
> C-h f hi-lock-mode RET
> C-x b *Help* RET
> M-x hi-lock-mode RET
>
> Emacs says:
>
> Invalid pattern list expression at 60

AFAIK this is not an error, just a message (that you can safely ignore).
The mode is enabled nonetheless and should work as expected.

Background: There is a feature that hi-lock-mode searches for pattern
specifications of the kind

  Hi-lock: FOO

that define initial highlightings.

Since the help buffer of `hi-lock-mode' explains this feature, it
contains a match for the regexp searched for (namely "Hi-lock: FOO") but
hi-lock-mode discards it because it is invalid (thus the message).  So
this issue is only a coincidence appearing only in the help buffer of
`hi-lock-mode'.  FWIW I can live with this message in this special case,
though I agree that it is confusing.


Michael.




This bug report was last modified 3 years and 265 days ago.

Previous Next


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