吴锐扬 <[email protected]> writes:

> As the title suggests, when working in a latex buffer, if I type
> something starting with a backslash which has possible completions,
> such as "\lab", "\mak" "\tex", company mode will throw an error. The
> error trace back is as follows:
>
>> Debugger entered--Lisp error: (wrong-type-argument stringp (lambda nil
>> (interactive) (insert "\\parens*{") (push-mark) (insert "}")
>> (exchange-point-and-mark)))
>
> The first line in the output above is because I have the following code
> in my init.el file:
> (setq LaTeX-math-list '(("C-9" (lambda () (interactive) (insert "\\parens*{") 
> (push-mark) (insert "}") (exchange-point-and-mark)) nil nil)))
>
> The problem seems to be the new function
> LaTeX--completion-annotation-from-math-menu does not like the
> anonymous function in LaTeX-math-list. Is this a bug or should I just
> use named functions in LaTeX-math-list?

It's a bug which I've hopefully fixed right now.  I'll make a new ELPA
release ASAP.  Please report back if it works then.

Bye,
Tassilo



_______________________________________________
bug-auctex mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/bug-auctex

Reply via email to