GNU bug report logs -
#78585
[PATCH] TeX-fold-verbs: improve macro recognition
Previous Next
Reported by: "Paul D. Nelson" <ultrono <at> gmail.com>
Date: Sun, 25 May 2025 12:54:02 UTC
Severity: normal
Tags: patch
Done: Arash Esbati <arash <at> gnu.org>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
Hi Arash,
Thanks for your feedback.
>> @@ -1384,7 +1388,8 @@ Replaces the verbatim content with its own text."
>> (regexp-opt
>> (append
>> (LaTeX-verbatim-macros-with-braces)
>> - (LaTeX-verbatim-macros-with-delims))))))
>> + (LaTeX-verbatim-macros-with-delims)))
>> + "\\_>")))
>
> Why do you use the "\\_>" boundary? I would have expected "\\b" or
> "\\>"? Am I missing something?
I had in mind stuff like:
(string-match "\\\\verb\\*\\_>" "\\verb*") ; t
(string-match "\\\\verb\\*\\>" "\\verb*") ; nil
(string-match "\\\\verb\\*\b" "\\verb*") ; nil
(I'll confess that I am not too familiar with what sorts of verbatim
macro names are out there, but figured ending on a symbol boundary would
be relatively safe.)
Paul
This bug report was last modified 52 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.