GNU bug report logs - #78693
14.0.9; Folding of math macros with a function spec is broken

Previous Next

Package: auctex;

Reported by: Rahguzar <rahguzar <at> mailbox.org>

Date: Wed, 4 Jun 2025 08:49:03 UTC

Severity: normal

Merged with 78696, 78698

Found in version 14.0.9

Full log


View this message in rfc822 format

From: "Paul D. Nelson" <ultrono <at> gmail.com>
To: Rahguzar <rahguzar <at> mailbox.org>
Cc: 78693 <at> debbugs.gnu.org
Subject: bug#78693: 14.0.9; Folding of math macros with a function spec is broken
Date: Sun, 22 Jun 2025 22:42:01 +0200
Hi Rahguzar

> Thanks, this works for my needs. I was worried about optional arguments
> before the mandatory ones messing up the folding but those arguments
> actually get swallowed by the folding. With your suggestion of using
> TeX-fold-macro-nth-arg it is possible to handle optional args that come
> before mandatory ones which passing a 1 or (0 . 1) as spec. A bit
> confusing but it improves on the current situation and I don't think it
> is possible handle folding perfectly given how "flexible" syntax in
> (La)TeX is.

I'm glad it seems to be working for your needs, although I'm a bit
confused about what else you might be asking for here, i.e., what would
"perfect" folding like?

Paul




This bug report was last modified 1 day ago.

Previous Next


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