Andrea Greselin <[email protected]> writes: > thanks Arash, it works exactly as you described and the new function > fixes the `TeX-complete-symbol: Wrong type argument: stringp, (if > TeX-insert-braces "{}")` error.
Thanks for checking. I've pushed this change to AUCTeX repo. > Still, the command isn't available for completion if I add the > definition but don't eval the setq-form. I don't understand whether > you consider this a bug or not, anyway, I find it disorienting that a > command that is fine for use in math is completed outside of dollar > signs but not inside them. I think this behavior is intentional. I think the idea is to reduce the number of candidates in math mode in order to make the completion faster. But then, AUCTeX has its own way of completion (C-c RET for macros). This is probably the reason why `TeX-complete-symbol' is not in focus for AUCTeX. Check also the manual for completion[1]. Again, thanks for bringing up this issue. I'm closing this report. Best, Arash Footnotes: [1] https://www.gnu.org/software/auctex/manual/auctex.html#Completion _______________________________________________ bug-auctex mailing list [email protected] https://lists.gnu.org/mailman/listinfo/bug-auctex
