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 #5 received at submit <at> debbugs.gnu.org (full text, mbox):

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




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.