[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#63444: folding mode for Texinfo doesn't work reliably
From: |
Arash Esbati |
Subject: |
bug#63444: folding mode for Texinfo doesn't work reliably |
Date: |
Fri, 19 May 2023 14:00:41 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) |
Werner LEMBERG <wl@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:
--8<---------------cut here---------------start------------->8---
(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"))))
--8<---------------cut here---------------end--------------->8---
Best, Arash
- bug#63444: folding mode for Texinfo doesn't work reliably, Werner LEMBERG, 2023/05/11
- bug#63444: folding mode for Texinfo doesn't work reliably, Arash Esbati, 2023/05/12
- bug#63444: folding mode for Texinfo doesn't work reliably, Werner LEMBERG, 2023/05/13
- bug#63444: folding mode for Texinfo doesn't work reliably, Arash Esbati, 2023/05/13
- bug#63444: folding mode for Texinfo doesn't work reliably, Werner LEMBERG, 2023/05/14
- bug#63444: folding mode for Texinfo doesn't work reliably, Ralf Angeli, 2023/05/14
- bug#63444: folding mode for Texinfo doesn't work reliably, Ralf Angeli, 2023/05/14
- bug#63444: folding mode for Texinfo doesn't work reliably, Werner LEMBERG, 2023/05/15
- bug#63444: folding mode for Texinfo doesn't work reliably,
Arash Esbati <=
- bug#63444: folding mode for Texinfo doesn't work reliably, Arash Esbati, 2023/05/19