unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#74307: 30.0.92; emacs-lisp font-locking word regexp
@ 2024-11-11  6:28 Roland Winkler
  2024-11-14  8:11 ` Eli Zaretskii
  0 siblings, 1 reply; 9+ messages in thread
From: Roland Winkler @ 2024-11-11  6:28 UTC (permalink / raw)
  To: 74307

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] 9+ messages in thread

end of thread, other threads:[~2024-12-05  8:04 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-11-11  6:28 bug#74307: 30.0.92; emacs-lisp font-locking word regexp Roland Winkler
2024-11-14  8:11 ` Eli Zaretskii
2024-11-14 16:24   ` Stefan Monnier via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-11-16 14:22     ` Eli Zaretskii
2024-11-14 16:49   ` Roland Winkler
2024-12-05  7:20   ` Juri Linkov
2024-12-05  7:38     ` Eli Zaretskii
2024-12-05  7:47       ` Juri Linkov
2024-12-05  8:04         ` 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).