[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Feature request: Show the characters corresponding to the LaTeX comm
From: |
Tassilo Horn |
Subject: |
Re: Feature request: Show the characters corresponding to the LaTeX commands displayed in minibuffer. |
Date: |
Sun, 19 Dec 2021 14:45:09 +0100 |
User-agent: |
mu4e 1.7.5; emacs 29.0.50 |
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
(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.
Bye,
Tassilo
- Feature request: Show the characters corresponding to the LaTeX commands displayed in minibuffer., Hongyi Zhao, 2021/12/18
- Re: Feature request: Show the characters corresponding to the LaTeX commands displayed in minibuffer., Tassilo Horn, 2021/12/19
- Re: Feature request: Show the characters corresponding to the LaTeX commands displayed in minibuffer., Hongyi Zhao, 2021/12/19
- Re: Feature request: Show the characters corresponding to the LaTeX commands displayed in minibuffer., Tassilo Horn, 2021/12/19
- Re: Feature request: Show the characters corresponding to the LaTeX commands displayed in minibuffer., Hongyi Zhao, 2021/12/19
- Re: Feature request: Show the characters corresponding to the LaTeX commands displayed in minibuffer.,
Tassilo Horn <=
- Re: Feature request: Show the characters corresponding to the LaTeX commands displayed in minibuffer., Tassilo Horn, 2021/12/19
- Re: Feature request: Show the characters corresponding to the LaTeX commands displayed in minibuffer., Hongyi Zhao, 2021/12/20
- Re: Feature request: Show the characters corresponding to the LaTeX commands displayed in minibuffer., Hongyi Zhao, 2021/12/20
- Re: Feature request: Show the characters corresponding to the LaTeX commands displayed in minibuffer., Tassilo Horn, 2021/12/21
- Re: Feature request: Show the characters corresponding to the LaTeX commands displayed in minibuffer., Tassilo Horn, 2021/12/21
- Re: Feature request: Show the characters corresponding to the LaTeX commands displayed in minibuffer., Hongyi Zhao, 2021/12/21
- Re: Feature request: Show the characters corresponding to the LaTeX commands displayed in minibuffer., Hongyi Zhao, 2021/12/21
- Re: Feature request: Show the characters corresponding to the LaTeX commands displayed in minibuffer., Hongyi Zhao, 2021/12/21
- Re: Feature request: Show the characters corresponding to the LaTeX commands displayed in minibuffer., Tassilo Horn, 2021/12/21
- Re: Feature request: Show the characters corresponding to the LaTeX commands displayed in minibuffer., Ikumi Keita, 2021/12/21