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: Mon, 20 Dec 2021 20:32:28 +0800

On Sun, Dec 19, 2021 at 10:29 PM Tassilo Horn <tsdh@gnu.org> wrote:
>
> Tassilo Horn <tsdh@gnu.org> writes:
>
> > Or are you asking if that will make that work for all standard AUCTeX
> > completion functions.  I guess so, although just setting
> >
> >   (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.
>
> I think the reason is that we use just a list as completion table
> whereas the feature requires a function-valued completion table.  That
> should be doable with `completion-table-dynamic'.  Feel free to play
> with it.

Could someone here give a minimal working example for the question
discussed here with `completion-table-dynamic'?

HZ



reply via email to

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