GNU bug report logs - #62220
In-buffer completion and LaTeX-math-cal

Previous Next

Package: auctex;

Reported by: Arash Esbati <arash <at> gnu.org>

Date: Thu, 16 Mar 2023 11:44:01 UTC

Severity: normal

Done: Arash Esbati <arash <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


Message #8 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Tassilo Horn <tsdh <at> gnu.org>
To: Arash Esbati <arash <at> gnu.org>
Cc: bug-auctex <at> gnu.org, 62220 <at> debbugs.gnu.org
Subject: Re: bug#62220: In-buffer completion and LaTeX-math-cal
Date: Thu, 16 Mar 2023 17:46:28 +0100
Arash Esbati <arash <at> 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




This bug report was last modified 2 years and 61 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.