[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#62220: In-buffer completion and LaTeX-math-cal
From: |
Tassilo Horn |
Subject: |
bug#62220: In-buffer completion and LaTeX-math-cal |
Date: |
Thu, 16 Mar 2023 17:46:28 +0100 |
User-agent: |
mu4e 1.9.22; emacs 30.0.50 |
Arash Esbati <arash@gnu.org> writes:
Hi Arash,
> if you have in-buffer completion running, take this small example:
>
> \documentclass{article}
> \begin{document}
> $\La*$
> \end{document}
>
> move point to * and hit TAB to get the completion candidates. This is
> what I see with corfu:
>
>
>
>
> Any idea where that `LaTeX-math-cal' is coming from?
TeX-complete-list contains an entry
(LaTeX--after-math-macro-prefix-p 1
(lambda nil
(append
(mapcar #'cadr LaTeX-math-list)
(mapcar #'cadr LaTeX-math-default)))
(if TeX-insert-braces "{}"))
(see latex.el:8074) and LaTeX-math-default contains an entry where the
cadr is the symbol LaTeX-math-cal. I guess, there should be a
(seq-filter #'stringp ...) around the (append ...).
Bye,
Tassilo