Hi Lei, >>>>> Lei Zhao <[email protected]> writes: > I have found the cause of the bug. It was caused by the function > `TeX-arg-label`. After I add the following advice, the bug goes away.
> (defun lfj-TeX-arg-label (optional &optional prompt definition) > (TeX-argument-insert > (TeX-read-label optional prompt definition) optional)) > (advice-add 'TeX-arg-label :override 'lfj-TeX-arg-label) > The original function was trying to add `t` as a prefix for > `TeX-argument-insert`, which results in the aforementioned bug. Thank you. It's definitely wrong to pass `optional' as PREFIX argument to `TeX-argument-insert'. I'll fix this. I noticed that `TeX-arg-index' and `TeX-arg-cite' share this bug as well. Maybe there are still more. Regards, Ikumi Keita #StandWithUkraine #StopWarInUkraine #Gaza #StopMassiveKilling #CeasefireNOW _______________________________________________ bug-auctex mailing list [email protected] https://lists.gnu.org/mailman/listinfo/bug-auctex
