unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Michael Heerdegen <michael_heerdegen@web.de>
To: Raffaele Ricciardi <rfflrccrd@gmail.com>
Cc: 20977@debbugs.gnu.org
Subject: bug#20977: 24.5; Hi Lock Mode fails with "Invalid pattern list expression"
Date: Sat, 04 Jul 2015 16:46:27 +0200	[thread overview]
Message-ID: <871tgoou9o.fsf@web.de> (raw)
In-Reply-To: <5597B6B8.3010307@gmail.com> (Raffaele Ricciardi's message of "Sat, 4 Jul 2015 12:34:32 +0200")

Raffaele Ricciardi <rfflrccrd@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.





  reply	other threads:[~2015-07-04 14:46 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-07-04 10:34 bug#20977: 24.5; Hi Lock Mode fails with "Invalid pattern list expression" Raffaele Ricciardi
2015-07-04 14:46 ` Michael Heerdegen [this message]
2015-07-05 10:52   ` Raffaele Ricciardi
2015-07-05 10:57   ` martin rudalics
2021-09-04  7:11     ` Lars Ingebrigtsen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=871tgoou9o.fsf@web.de \
    --to=michael_heerdegen@web.de \
    --cc=20977@debbugs.gnu.org \
    --cc=rfflrccrd@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).