Function: LaTeX--completion-annotation-from-math-menu
LaTeX--completion-annotation-from-math-menu is a byte-compiled
function defined in latex.el.
Signature
(LaTeX--completion-annotation-from-math-menu SYM)
Documentation
Return a completion annotation for a SYM.
The annotation is usually a unicode representation of the macro SYM's compiled representation, for example, if SYM is alpha, α is returned.
Source Code
;; Defined in ~/.emacs.d/elpa/auctex-14.1.2/latex.el
(defun LaTeX--completion-annotation-from-math-menu (sym)
"Return a completion annotation for a SYM.
The annotation is usually a unicode representation of the macro
SYM's compiled representation, for example, if SYM is alpha, α
is returned."
(catch 'found
(dolist (var (list LaTeX-math-list LaTeX-math-default))
(dolist (e var)
(let ((val (cadr e)))
(when (and (stringp val)
(string= val sym))
(let ((char (nth 3 e)))
(when char
(throw 'found
(concat " " (char-to-string char)))))))))))