auctex
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Feature request: Show the characters corresponding to the LaTeX comm


From: Hongyi Zhao
Subject: Re: Feature request: Show the characters corresponding to the LaTeX commands displayed in minibuffer.
Date: Sun, 19 Dec 2021 22:43:28 +0800

On Sun, Dec 19, 2021 at 10:19 PM Tassilo Horn <tsdh@gnu.org> wrote:
>
> Hongyi Zhao <hongyi.zhao@gmail.com> writes:
>
> >> Oh, allright.  We would need to provide an :annotation-function in
> >> `completion-extra-properties' which translates, e.g., \alpha to α.
> >
> > Only such a function will do the tick for the predefined commands?
>
> I'm not enitrely sure what you are asking.  Are you asking if that's the
> only way?  Not sure, but I think that's the standard way to do such
> stuff.
>
> Or are you asking if that will make that work for all standard AUCTeX
> completion functions.  I guess so, although just setting

I mean whether it will need to add such :annotation-function for each
of the all standard AUCTeX
completion functions.

>   (setq-local completion-extra-properties
>               '(:annotation-function
>                 (lambda (x) (message "AF: %S" x) "foo")))
>
> or let-binding it around the `completing-read' call in
> `TeX-insert-macro' had no effect.  The function has never been called.
>
> >> company-math seems to use some other ELPA package `math-symbol-list'
> >> for that job which defines such a mapping.
> >
> > You're right. The package is named as `math-symbol-lists' [1-2], and
> > the ELPA version is rather outdated.
>
> Only that it hasn't been updated within the last 2 years doesn't make it
> outdated.  It just means nobody felt the need to add even more symbols,
> maybe because it is already comprehensive enough.

I see.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]