avy icon indicating copy to clipboard operation
avy copied to clipboard

Small incompatibility with prettify-symbols-mode

Open Malabarba opened this issue 10 years ago • 1 comments

Lately, I've been trying out prettify-symbols-mode in latex files, but an odd thing occurs.

If I have the following buffer contents:

Let $\beta=1$ \begin

It will be displayed like this:

Let $β=1$ \begin

  1. If I invoke avy-goto-word-1 on \, that β will be temporarily displayed as \beta and I am given the option to jump to it (besides the option of jumping to the \begin).
  2. However, if I try to jump to b, that β will not be expanded and the “hotkey letter” is not displayed. I know that the b inside there is being detected, because I can still jump to it if I'm able to guess the hotkey, the only problem is that it's not being displayed.

Malabarba avatar Oct 02 '15 13:10 Malabarba

I can reproduce the bug, but I don't yet know how to fix it. Indeed, something special happens when the point moves to the first char of composed region, and that needs to happen for every char during the jump.

abo-abo avatar Oct 02 '15 13:10 abo-abo