* bug#74308: 30.0.92; emacs-lisp font-locking word regexp
@ 2024-11-11 6:30 Roland Winkler
2024-11-11 12:30 ` Eli Zaretskii
0 siblings, 1 reply; 4+ messages in thread
From: Roland Winkler @ 2024-11-11 6:30 UTC (permalink / raw)
To: 74308
Starting from emacs -Q, put the following into a buffer with
emacs-lisp-mode
(setq foo "\\<foo\\>")
The part "foo\\" of the string "\\<foo\\>" will get
font-lock-variable-name-face, which looks odd.
I believe, this is due to a clause in lisp-mode.el that says
;; Words inside \\[], \\<>, \\{} or \\`' tend to be for
;; `substitute-command-keys'.
But this assumption is not always correct, in particular if ">" is
preceded by "\\", which happens when constructing regexps.
^ permalink raw reply [flat|nested] 4+ messages in thread
* bug#74308: 30.0.92; emacs-lisp font-locking word regexp
2024-11-11 6:30 bug#74308: 30.0.92; emacs-lisp font-locking word regexp Roland Winkler
@ 2024-11-11 12:30 ` Eli Zaretskii
2024-11-16 21:33 ` Arash Esbati
0 siblings, 1 reply; 4+ messages in thread
From: Eli Zaretskii @ 2024-11-11 12:30 UTC (permalink / raw)
To: Roland Winkler; +Cc: 74308
merge 74308 74307
thanks
> From: Roland Winkler <winkler@gnu.org>
> Date: Mon, 11 Nov 2024 00:30:46 -0600
>
> Starting from emacs -Q, put the following into a buffer with
> emacs-lisp-mode
>
> (setq foo "\\<foo\\>")
>
> The part "foo\\" of the string "\\<foo\\>" will get
> font-lock-variable-name-face, which looks odd.
>
> I believe, this is due to a clause in lisp-mode.el that says
>
> ;; Words inside \\[], \\<>, \\{} or \\`' tend to be for
> ;; `substitute-command-keys'.
>
> But this assumption is not always correct, in particular if ">" is
> preceded by "\\", which happens when constructing regexps.
This is an exact duplicate of bug#74307 that you submitted just 2
minutes earlier, so I'm merging them.
^ permalink raw reply [flat|nested] 4+ messages in thread
* bug#74308: 30.0.92; emacs-lisp font-locking word regexp
2024-11-11 12:30 ` Eli Zaretskii
@ 2024-11-16 21:33 ` Arash Esbati
2024-11-17 6:22 ` Eli Zaretskii
0 siblings, 1 reply; 4+ messages in thread
From: Arash Esbati @ 2024-11-16 21:33 UTC (permalink / raw)
To: Eli Zaretskii; +Cc: Roland Winkler, 74308
Eli Zaretskii <eliz@gnu.org> writes:
> merge 74308 74307
> thanks
>
>> From: Roland Winkler <winkler@gnu.org>
>> Date: Mon, 11 Nov 2024 00:30:46 -0600
>>
>> Starting from emacs -Q, put the following into a buffer with
>> emacs-lisp-mode
>>
>> (setq foo "\\<foo\\>")
>>
>> The part "foo\\" of the string "\\<foo\\>" will get
>> font-lock-variable-name-face, which looks odd.
>>
>> I believe, this is due to a clause in lisp-mode.el that says
>>
>> ;; Words inside \\[], \\<>, \\{} or \\`' tend to be for
>> ;; `substitute-command-keys'.
>>
>> But this assumption is not always correct, in particular if ">" is
>> preceded by "\\", which happens when constructing regexps.
>
> This is an exact duplicate of bug#74307 that you submitted just 2
> minutes earlier, so I'm merging them.
I think bug#68318 is also about the same issue; it can be merged into
this one as well.
Best, Arash
^ permalink raw reply [flat|nested] 4+ messages in thread
* bug#74308: 30.0.92; emacs-lisp font-locking word regexp
2024-11-16 21:33 ` Arash Esbati
@ 2024-11-17 6:22 ` Eli Zaretskii
0 siblings, 0 replies; 4+ messages in thread
From: Eli Zaretskii @ 2024-11-17 6:22 UTC (permalink / raw)
To: Arash Esbati; +Cc: 68318-done, winkler, 74308
> From: Arash Esbati <arash@gnu.org>
> Cc: Roland Winkler <winkler@gnu.org>, 74308@debbugs.gnu.org
> Date: Sat, 16 Nov 2024 22:33:55 +0100
>
> Eli Zaretskii <eliz@gnu.org> writes:
>
> > merge 74308 74307
> > thanks
> >
> >> From: Roland Winkler <winkler@gnu.org>
> >> Date: Mon, 11 Nov 2024 00:30:46 -0600
> >>
> >> Starting from emacs -Q, put the following into a buffer with
> >> emacs-lisp-mode
> >>
> >> (setq foo "\\<foo\\>")
> >>
> >> The part "foo\\" of the string "\\<foo\\>" will get
> >> font-lock-variable-name-face, which looks odd.
> >>
> >> I believe, this is due to a clause in lisp-mode.el that says
> >>
> >> ;; Words inside \\[], \\<>, \\{} or \\`' tend to be for
> >> ;; `substitute-command-keys'.
> >>
> >> But this assumption is not always correct, in particular if ">" is
> >> preceded by "\\", which happens when constructing regexps.
> >
> > This is an exact duplicate of bug#74307 that you submitted just 2
> > minutes earlier, so I'm merging them.
>
> I think bug#68318 is also about the same issue; it can be merged into
> this one as well.
Thanks. Since this bug was already closed, I'm therefore closing
bug#68318 as well.
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2024-11-17 6:22 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-11-11 6:30 bug#74308: 30.0.92; emacs-lisp font-locking word regexp Roland Winkler
2024-11-11 12:30 ` Eli Zaretskii
2024-11-16 21:33 ` Arash Esbati
2024-11-17 6:22 ` Eli Zaretskii
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).