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.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 62220 in the body.
You can then email your comments to 62220 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-auctex <at> gnu.org:
bug#62220; Package auctex. (Thu, 16 Mar 2023 11:44:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Arash Esbati <arash <at> gnu.org>:
New bug report received and forwarded. Copy sent to bug-auctex <at> gnu.org. (Thu, 16 Mar 2023 11:44:02 GMT) Full text and rfc822 format available.

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

From: Arash Esbati <arash <at> gnu.org>
To: auctex-bugs <bug-auctex <at> gnu.org>
Subject: In-buffer completion and LaTeX-math-cal
Date: Thu, 16 Mar 2023 12:42:54 +0100
[Message part 1 (text/plain, inline)]
Hi all,

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:
[LaTeX-math-cal.png (image/png, inline)]
[Message part 3 (text/plain, inline)]
Any idea where that `LaTeX-math-cal' is coming from?

Best, Arash

Information forwarded to bug-auctex <at> gnu.org:
bug#62220; Package auctex. (Thu, 16 Mar 2023 16:59:02 GMT) Full text and rfc822 format available.

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




Information forwarded to bug-auctex <at> gnu.org:
bug#62220; Package auctex. (Thu, 16 Mar 2023 16:59:02 GMT) Full text and rfc822 format available.

Information forwarded to bug-auctex <at> gnu.org:
bug#62220; Package auctex. (Fri, 17 Mar 2023 09:45:02 GMT) Full text and rfc822 format available.

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

From: Arash Esbati <arash <at> gnu.org>
To: Tassilo Horn <tsdh <at> gnu.org>
Cc: bug-auctex <at> gnu.org, 62220-done <at> debbugs.gnu.org
Subject: Re: bug#62220: In-buffer completion and LaTeX-math-cal
Date: Fri, 17 Mar 2023 10:43:23 +0100
Hi Tassilo,

Tassilo Horn <tsdh <at> gnu.org> writes:

> 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 ...).

Thanks, that was the right hint.  I installed a change (2a65fac9b1)
using your suggestion above.  Closing this issue.

Best, Arash




Reply sent to Arash Esbati <arash <at> gnu.org>:
You have taken responsibility. (Fri, 17 Mar 2023 09:45:03 GMT) Full text and rfc822 format available.

Notification sent to Arash Esbati <arash <at> gnu.org>:
bug acknowledged by developer. (Fri, 17 Mar 2023 09:45:03 GMT) Full text and rfc822 format available.

Information forwarded to bug-auctex <at> gnu.org:
bug#62220; Package auctex. (Fri, 17 Mar 2023 18:09:02 GMT) Full text and rfc822 format available.

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

From: Ikumi Keita <ikumi <at> ikumi.que.jp>
To: Arash Esbati <arash <at> gnu.org>
Cc: 62220 <at> debbugs.gnu.org, Tassilo Horn <tsdh <at> gnu.org>
Subject: Re: bug#62220: In-buffer completion and LaTeX-math-cal
Date: Sat, 18 Mar 2023 03:08:34 +0900
Hi Arash,

>>>>> Arash Esbati <arash <at> gnu.org> writes:
> Tassilo Horn <tsdh <at> gnu.org> writes:
>> I guess, there should be a (seq-filter #'stringp ...) around the
>> (append ...).

> Thanks, that was the right hint.  I installed a change (2a65fac9b1)
> using your suggestion above.  Closing this issue.

I'm afraid that we still need autoload declaration for seq-filter for
compatibility with older emacsen.

Best,
Ikumi Keita
#StandWithUkraine #StopWarInUkraine




Information forwarded to bug-auctex <at> gnu.org:
bug#62220; Package auctex. (Sat, 18 Mar 2023 07:45:02 GMT) Full text and rfc822 format available.

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

From: Arash Esbati <arash <at> gnu.org>
To: Ikumi Keita <ikumi <at> ikumi.que.jp>
Cc: 62220 <at> debbugs.gnu.org, Tassilo Horn <tsdh <at> gnu.org>
Subject: Re: bug#62220: In-buffer completion and LaTeX-math-cal
Date: Sat, 18 Mar 2023 08:33:26 +0100
Hi Keita,

Ikumi Keita <ikumi <at> ikumi.que.jp> writes:

> I'm afraid that we still need autoload declaration for seq-filter for
> compatibility with older emacsen.

We require seq in tex.el[1].  Isn't that sufficient or am I missing
something?  I vaguely remember we did that as I added `seq-concatenate'
to array.el.  I don't have an older Emacs installed here so I can't test
it right now.

Best, Arash

Footnotes:
[1]  http://git.savannah.gnu.org/cgit/auctex.git/tree/tex.el#n41





Information forwarded to bug-auctex <at> gnu.org:
bug#62220; Package auctex. (Sat, 18 Mar 2023 10:52:02 GMT) Full text and rfc822 format available.

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

From: Ikumi Keita <ikumi <at> ikumi.que.jp>
To: Arash Esbati <arash <at> gnu.org>
Cc: 62220 <at> debbugs.gnu.org, Tassilo Horn <tsdh <at> gnu.org>
Subject: Re: bug#62220: In-buffer completion and LaTeX-math-cal
Date: Sat, 18 Mar 2023 19:51:32 +0900
Hi Arash,

>>>>> Arash Esbati <arash <at> gnu.org> writes:
> We require seq in tex.el[1].  Isn't that sufficient or am I missing
> something?  I vaguely remember we did that as I added `seq-concatenate'
> to array.el.  I don't have an older Emacs installed here so I can't test
> it right now.

Ah, indeed. Sorry for my poor memory. 😵

Regards,
Ikumi Keita
#StandWithUkraine #StopWarInUkraine




Information forwarded to bug-auctex <at> gnu.org:
bug#62220; Package auctex. (Sat, 18 Mar 2023 12:15:02 GMT) Full text and rfc822 format available.

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

From: Arash Esbati <arash <at> gnu.org>
To: Ikumi Keita <ikumi <at> ikumi.que.jp>
Cc: 62220 <at> debbugs.gnu.org, Tassilo Horn <tsdh <at> gnu.org>
Subject: Re: bug#62220: In-buffer completion and LaTeX-math-cal
Date: Sat, 18 Mar 2023 13:13:33 +0100
Ikumi Keita <ikumi <at> ikumi.que.jp> writes:

> Ah, indeed. Sorry for my poor memory. 😵

No worries, the upside is that you always look after what I do 😉

Best, Arash




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Sun, 16 Apr 2023 11:24:06 GMT) Full text and rfc822 format available.

This bug report was last modified 1 year and 4 days ago.

Previous Next


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