* bug#20977: 24.5; Hi Lock Mode fails with "Invalid pattern list expression"
@ 2015-07-04 10:34 Raffaele Ricciardi
2015-07-04 14:46 ` Michael Heerdegen
0 siblings, 1 reply; 5+ messages in thread
From: Raffaele Ricciardi @ 2015-07-04 10:34 UTC (permalink / raw)
To: 20977
This may happen in Help buffers.
Recipe:
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
Thank you.
--
In GNU Emacs 24.5.1 (x86_64-unknown-linux-gnu, GTK+ Version 2.24.25)
of 2015-06-27 on debian
Windowing system distributor `The X.Org Foundation', version 11.0.11604000
System Description: Debian GNU/Linux 8.1 (jessie)
Configured using:
`configure --prefix=/opt/emacs/emacs-24.5-gtk2 --with-x-toolkit=gtk2'
Important settings:
value of $LANG: en_GB.UTF-8
locale-coding-system: utf-8-unix
Major mode: Help
Minor modes in effect:
hi-lock-mode: t
tooltip-mode: t
electric-indent-mode: t
mouse-wheel-mode: t
tool-bar-mode: t
menu-bar-mode: t
file-name-shadow-mode: t
global-font-lock-mode: t
font-lock-mode: t
blink-cursor-mode: t
auto-composition-mode: t
auto-encryption-mode: t
auto-compression-mode: t
buffer-read-only: t
line-number-mode: t
transient-mark-mode: t
Recent messages:
For information about GNU Emacs and the GNU system, type C-h C-a.
Loading hi-lock...done
Type C-x 1 to delete the help window, C-M-v to scroll help.
Invalid pattern list expression at 60
[3 times]
Debug on Error enabled globally
Invalid pattern list expression at 60
Quit
Load-path shadows:
None found.
Features:
(shadow sort gnus-util mail-extr emacsbug message format-spec rfc822 mml
mml-sec mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev
gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums mm-util
mail-prsvr mail-utils cus-start cus-load pp hi-lock help-mode easymenu
help-fns time-date tooltip electric uniquify ediff-hook vc-hooks
lisp-float-type mwheel x-win x-dnd tool-bar dnd fontset image regexp-opt
fringe tabulated-list newcomment lisp-mode prog-mode register page
menu-bar rfn-eshadow timer select scroll-bar mouse jit-lock font-lock
syntax facemenu font-core frame cham georgian utf-8-lang misc-lang
vietnamese tibetan thai tai-viet lao korean japanese hebrew greek
romanian slovak czech european ethiopic indian cyrillic chinese
case-table epa-hook jka-cmpr-hook help simple abbrev minibuffer nadvice
loaddefs button faces cus-face macroexp files text-properties overlay
sha1 md5 base64 format env code-pages mule custom widget
hashtable-print-readable backquote make-network-process dbusbind
gfilenotify dynamic-setting system-font-setting font-render-setting
move-toolbar gtk x-toolkit x multi-tty emacs)
Memory information:
((conses 16 83092 7518)
(symbols 48 18597 0)
(miscs 40 50 171)
(strings 32 11407 4465)
(string-bytes 1 301418)
(vectors 16 9121)
(vector-slots 8 386170 15786)
(floats 8 70 182)
(intervals 56 218 9)
(buffers 960 12)
(heap 1024 18347 926))
^ permalink raw reply [flat|nested] 5+ messages in thread
* bug#20977: 24.5; Hi Lock Mode fails with "Invalid pattern list expression"
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
2015-07-05 10:52 ` Raffaele Ricciardi
2015-07-05 10:57 ` martin rudalics
0 siblings, 2 replies; 5+ messages in thread
From: Michael Heerdegen @ 2015-07-04 14:46 UTC (permalink / raw)
To: Raffaele Ricciardi; +Cc: 20977
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.
^ permalink raw reply [flat|nested] 5+ messages in thread
* bug#20977: 24.5; Hi Lock Mode fails with "Invalid pattern list expression"
2015-07-04 14:46 ` Michael Heerdegen
@ 2015-07-05 10:52 ` Raffaele Ricciardi
2015-07-05 10:57 ` martin rudalics
1 sibling, 0 replies; 5+ messages in thread
From: Raffaele Ricciardi @ 2015-07-05 10:52 UTC (permalink / raw)
To: Michael Heerdegen; +Cc: 20977
On 04/07/15 16:46, Michael Heerdegen wrote:
> 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.
I agree that this glitch is not worth fixing. And if another user will
stumble upon it, he will find this discussion and understand what is
going on.
Thanks, Michael, for your assistance.
^ permalink raw reply [flat|nested] 5+ messages in thread
* bug#20977: 24.5; Hi Lock Mode fails with "Invalid pattern list expression"
2015-07-04 14:46 ` Michael Heerdegen
2015-07-05 10:52 ` Raffaele Ricciardi
@ 2015-07-05 10:57 ` martin rudalics
2021-09-04 7:11 ` Lars Ingebrigtsen
1 sibling, 1 reply; 5+ messages in thread
From: martin rudalics @ 2015-07-05 10:57 UTC (permalink / raw)
To: Michael Heerdegen, Raffaele Ricciardi; +Cc: 20977
> FWIW I can live with this message in this special case,
> though I agree that it is confusing.
I suppose we could write something like
When hi-lock is started and if the mode is not excluded or patterns
rejected, the beginning of the buffer is searched for lines of the
form:
Hi-lock: (FOO BAR)
where FOO and BAR are patterns.
but I don't know what `hi-lock-mode' patterns should look like and how
that mode works. If anyone does, please apply a patch so we can close
this.
martin
^ permalink raw reply [flat|nested] 5+ messages in thread
* bug#20977: 24.5; Hi Lock Mode fails with "Invalid pattern list expression"
2015-07-05 10:57 ` martin rudalics
@ 2021-09-04 7:11 ` Lars Ingebrigtsen
0 siblings, 0 replies; 5+ messages in thread
From: Lars Ingebrigtsen @ 2021-09-04 7:11 UTC (permalink / raw)
To: martin rudalics; +Cc: Michael Heerdegen, 20977, Raffaele Ricciardi
martin rudalics <rudalics@gmx.at> writes:
> I suppose we could write something like
>
> When hi-lock is started and if the mode is not excluded or patterns
> rejected, the beginning of the buffer is searched for lines of the
> form:
> Hi-lock: (FOO BAR)
>
> where FOO and BAR are patterns.
>
> but I don't know what `hi-lock-mode' patterns should look like and how
> that mode works. If anyone does, please apply a patch so we can close
> this.
I've now done something like this in Emacs 28.
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog: http://lars.ingebrigtsen.no
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2021-09-04 7:11 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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
2015-07-05 10:52 ` Raffaele Ricciardi
2015-07-05 10:57 ` martin rudalics
2021-09-04 7:11 ` Lars Ingebrigtsen
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.