[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#35074: 12.1.2; TeX-complete-symbol doesn't work in math mode for use

From: Arash Esbati
Subject: bug#35074: 12.1.2; TeX-complete-symbol doesn't work in math mode for user-defined command
Date: Sun, 07 Apr 2019 12:53:50 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50

Andrea Greselin <address@hidden> 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

[1]  https://www.gnu.org/software/auctex/manual/auctex.html#Completion

reply via email to

[Prev in Thread] Current Thread [Next in Thread]