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


View this message in rfc822 format

From: Arash Esbati <arash <at> gnu.org>
To: Werner LEMBERG <wl <at> gnu.org>
Cc: 63444 <at> debbugs.gnu.org
Subject: bug#63444: folding mode for Texinfo doesn't work reliably
Date: Fri, 12 May 2023 10:22:50 +0200
Werner LEMBERG <wl <at> gnu.org> writes:

> 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.

I'm not sure if I understand this part.  Can you please give me a hint
where to look in that file and what to do in order to understand this
issue better?

> 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`.

You can put this in your init file (and adjust it accordingly):

(setq Texinfo-fold-env-spec-list
      '(("[html]"  ("html"))
        ("[TeX]"   ("tex"))))

and then load your .texi file and activate folding.  Maybe that helps
already.

Best, Arash




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.