Hongyi Zhao <[email protected]> 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