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


View this message in rfc822 format

From: help-debbugs <at> gnu.org (GNU bug Tracking System)
To: Arash Esbati <arash <at> gnu.org>
Cc: tracker <at> debbugs.gnu.org
Subject: bug#73302: closed (TeX-find-closing-brace and verbatim macros)
Date: Tue, 01 Oct 2024 22:03:03 +0000
[Message part 1 (text/plain, inline)]
Your message dated Wed, 02 Oct 2024 00:02:11 +0200
with message-id <m2ttdvcwik.fsf <at> macmutant.fritz.box>
and subject line Re: bug#73302: TeX-find-closing-brace and verbatim macros
has caused the debbugs.gnu.org bug report #73302,
regarding TeX-find-closing-brace and verbatim macros
to be marked as done.

(If you believe you have received this mail in error, please contact
help-debbugs <at> gnu.org.)


-- 
73302: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=73302
GNU Bug Tracking System
Contact help-debbugs <at> gnu.org with problems
[Message part 2 (message/rfc822, inline)]
From: Paul Nelson <ultrono <at> gmail.com>
To: bug-auctex <at> gnu.org
Subject: TeX-find-closing-brace and verbatim macros
Date: Mon, 16 Sep 2024 18:12:10 +0200
Hello,

Steps to reproduce:
1. Create a TeX file with a verbatim macro, e.g., \email{foo <at> bar.com},
or anything in (LaTeX-verbatim-macros-with-braces).
2. Put the cursor on the first character inside the braces.
3. M-: (TeX-find-closing-brace)

This should return position after closing brace, but instead returns nil.

This bug affects the folding of verbatim macros, through a chain of
function calls from TeX-fold-hide-item to TeX-find-closing-brace.

The issue is similar to one addressed by up-list in lisp.el - the key
point is to recover gracefully from the failed call to (scan-lists
(point) 1 1), rather than to give up altogether.  A similar fix might
be possible, but I thought I'd raise the issue here first.

Thanks, best,

Paul


[Message part 3 (message/rfc822, inline)]
From: Arash Esbati <arash <at> gnu.org>
To: Paul Nelson <ultrono <at> gmail.com>
Cc: Ikumi Keita <ikumi <at> ikumi.que.jp>, 73302-done <at> debbugs.gnu.org
Subject: Re: bug#73302: TeX-find-closing-brace and verbatim macros
Date: Wed, 02 Oct 2024 00:02:11 +0200
Hi Paul,

Paul Nelson <ultrono <at> gmail.com> writes:

> Indeed, the motivation for the bug fix that started this thread was
> that I've been polishing https://github.com/ultronozm/czm-tex-fold.el
> lately, with the aim of sharing it here and pushing it in some form to
> AUCTeX or ELPA (ideally, from my POV, the package would "cease to
> exist").

Yes, pushing the maintainance to others is always a good strategy ;-)

> Besides verbatim environments, the package adds folding support for
> quotes, dashes and begin/end environments (and maybe a couple more
> opinionated defaults of lesser importance).
>
> The folding for verbatim environments that we just discussed could be
> incorporated by something like the attached patch.

Many thanks for the patch, I installed that change (incl. the change
from your next mail).

> The other features could be discussed separately.  Any thoughts would
> be appreciated.

I suggest you prepare a patch for every feature you want to move into
AUCTeX and file a bug report, then we can discuss and install it.  For
now, I'm closing this report.

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.