GNU bug report logs - #63444
folding mode for Texinfo doesn't work reliably

Previous Next

Package: auctex;

Reported by: Werner LEMBERG <wl <at> gnu.org>

Date: Thu, 11 May 2023 12:00:02 UTC

Severity: normal

Full log


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

From: Werner LEMBERG <wl <at> gnu.org>
To: bug-auctex <at> gnu.org
Subject: folding mode for Texinfo doesn't work reliably
Date: Thu, 11 May 2023 11:59:17 +0000 (UTC)
[commit 0cb158fd96ff8c1c7f0bf8c0dd152a301e82f562]


Consider this quite complicated Texinfo macro file from LilyPond's
documentation:

  https://gitlab.com/lilypond/lilypond/-/blob/master/Documentation/ca/macros.itexi

If I call `TeX-fold-buffer`, some macros like `rnotation` are
properly folded, but many others like `snippets` or `englishref` are
not.

It seems that the presence of a `@xxx` command within a macro causes
hiccups, but as `englishref` shows, other factors seem to play a role,
too.


Finally, I have a wish: It would be extremely helpful to have two more
commands for folding

* conditional blocks like `@iffoo ... @end iffoo`, and

* format-specific blocks like `@html ... @end html` or `@tex ... @end
  tex`.


     Werner




This bug report was last modified 1 year and 314 days ago.

Previous Next


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