GNU bug report logs - #78585
[PATCH] TeX-fold-verbs: improve macro recognition

Previous Next

Package: auctex;

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>

Full log


View this message in rfc822 format

From: "Paul D. Nelson" <ultrono <at> gmail.com>
To: Arash Esbati <arash <at> gnu.org>
Cc: 78585 <at> debbugs.gnu.org
Subject: bug#78585: [PATCH] TeX-fold-verbs: improve macro recognition
Date: Mon, 26 May 2025 18:11:53 +0200
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 21 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.