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: angeli <at> caeruleus.net, 63444 <at> debbugs.gnu.org
Subject: bug#63444: folding mode for Texinfo doesn't work reliably
Date: Mon, 17 Jul 2023 22:39:26 +0200
Arash Esbati <arash <at> gnu.org> writes:

> Werner LEMBERG <wl <at> gnu.org> writes:
>
>> Given that I have no idea about the internals of AUCTeX I can't help
>> with coding; however, I'm willing to test any new Texinfo
>> functionality.
>
> Given what Ralf said about the experimental nature of folding in Texinfo
> mode, maybe you can add this to your init file and see if works for you
> as expected:
>
> (defun wl/Texinfo-fold-env-macro (&rest _ignore)
>   (save-excursion
>     (if (looking-at-p "@macro")
>         (forward-sexp)
>       (Texinfo-find-env-start)
>       (forward-char)
>       (skip-chars-forward "a-zA-Z"))
>     (skip-chars-forward "^a-zA-Z")
>     (concat "macro " (thing-at-point 'symbol t))))
>
> (setq Texinfo-fold-env-spec-list
>       '((wl/Texinfo-fold-env-macro ("macro"))))

Ping!

Is there anything else we can do about this report?  Otherwise I'd
update the manual and close this report.

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.