emacs-evil / evil

The extensible vi layer for Emacs.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

visual selection + prettify

aloispichler opened this issue · comments

Issue type

  • Bug report

Issue

Selecting text in prettify-symbols-mode in Evil visual mode:
Suppose the text is \alpha\beta\gamma, prettified as αβγ.
Selecting from right to left typing h in visual mode will select γ, next βγ and αβγ, which is as desired.
Selecting from left to right typing l in visual mode, however, selects \ , then \a, next α\b, and αβ\g. This is not desired… This faulty behavior causes issues when yanking, deleting, substituting, … text, unfortunately.
The basic movements h and l should both respect prettify. Would be nice to have this behavior corrected – thanks!

I use prettify when writing LaTeX in Emacs. Here is the list from emacs' AUCTeX.

(setq prettify-symbols-alist ' 
(("\\alpha" . 945)
 ("\\beta" . 946)
 ("\\gamma" . 947)
 ("\\delta" . 948) …