emacs-devel
[Top][All Lists]
Advanced

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

Re: port x-symbol to GNU emacs 24.


From: Stefan Monnier
Subject: Re: port x-symbol to GNU emacs 24.
Date: Tue, 18 Aug 2015 11:52:10 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux)

> I just started to define a `prettify-symbols-alist--TeX' by checking
> what Quail provides.

Hmm... the name sounds suspect.  It should have "tex" in the prefix, not
in the suffix.

> However, there is a problem in that (la)tex-mode and their AUCTeX
> counterparts don't give \ symbol syntax.  Therefore, an entry like
> ("\\alpha" . ?α) will never match.  And omitting the backslash isn't
> possible because then we'd have many false positives for entries like
> ("in" . ?∈).

prettify-symbols-alist does currently handle non-symbol chars.
Whether it handles this specific case, I'm not completely sure (tho I'm
pretty sure it'll mishandle "\alpha2", in any case).  But we should make
prettify-symbols-alist handle the needs of TeX, so feel free to suggest
extensions to prettify-symbols-alist if that's needed.


        Stefan



reply via email to

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