GNU bug report logs - #73302
TeX-find-closing-brace and verbatim macros

Previous Next

Package: auctex;

Reported by: Paul Nelson <ultrono <at> gmail.com>

Date: Mon, 16 Sep 2024 16:13:02 UTC

Severity: normal

Done: Arash Esbati <arash <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


Message #59 received at 73302 <at> debbugs.gnu.org (full text, mbox):

From: Arash Esbati <arash <at> gnu.org>
To: Paul Nelson <ultrono <at> gmail.com>
Cc: Ikumi Keita <ikumi <at> ikumi.que.jp>, 73302 <at> debbugs.gnu.org
Subject: Re: bug#73302: TeX-find-closing-brace and verbatim macros
Date: Fri, 27 Sep 2024 19:22:12 +0200
Paul Nelson <ultrono <at> gmail.com> writes:

> For whatever it's worth, I updated my package czm-tex-fold to support
> the variety of verbatim formats from Arash's earlier email.  This is
> less flexible than what we would get by extending the display spec
> format, but has the advantage that it's been implemented.

> (defvar czm-tex-fold--verb-regex
>   "\\\\\\(Verb\\|verb\\)\\(?:\\[[^]]*\\]\\)?[|{]\\([^|}]*\\)[|}]")

A little simpler:

  "\\\\\\([Vv]verb\\)\\(?:\\[[^]]*\\]\\)?[|{]\\([^|}]*\\)[|}]"

How does your code work on this example:

  \verb|}|

?  I admit, this is a mess, but maybe we can come up with a solution
within AUCTeX; I have to think about it, though.

Best, Arash




This bug report was last modified 231 days ago.

Previous Next


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