GNU bug report logs -
#65195
13.2.1; (La)TeX-fold-math-spec-list have the wrong custom type
Previous Next
Reported by: Tony Zorman <tonyzorman <at> mailbox.org>
Date: Thu, 10 Aug 2023 08:51:01 UTC
Severity: normal
Found in version 13.2.1
Done: Ikumi Keita <ikumi <at> ikumi.que.jp>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
Hi Tony,
>>>>> Tony Zorman via bug-auctex via Bug reporting list for AUCTeX <bug-auctex <at> gnu.org> writes:
> Hi,
> the custom type for `(La)TeX-fold-math-spec-list' is
> (repeat (group (choice (string :tag "Display String")
> (integer :tag "Number of argument" :value 1))
> (repeat :tag "Math Macros" (string))))
> However, the following is a perfectly valid definition
> (setopt TeX-fold-math-spec-list
> `((,(lambda (word) word) ("mathbf"))))
> (the code to handle functions is in `TeX-fold-hide-item').
> Currently, the `setopt' macro throws some warning, because a function is
> not part of the type (presumably this was forgotten). I propose to have
> a type closer to what `TeX-fold-macro-spec-list' has:
> (repeat (group (choice (string :tag "Display String")
> (integer :tag "Number of argument" :value 1)
> (function :tag "Function to execute"))
> (repeat :tag "Math Macros" (string))))
> The relevant functions called, like `TeX-fold-make-overlay' would also
> have to have their documentation adjusted.
Thanks for your report, I think it is actually a bug. I pushed the fix
to the git repo according to your proposal.
Regards,
Ikumi Keita
#StandWithUkraine #StopWarInUkraine
This bug report was last modified 1 year and 285 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.