abo-abo / ace-window

Quickly switch windows in Emacs
970 stars 86 forks source link

The leading char color is affected by other faces #178

Open seagle0128 opened 5 years ago

seagle0128 commented 5 years ago
  1. Env
    • GNU Emacs 26.2
    • macOS Mojave
    • ace-window 20190527.1351
  2. Steps:
    1. Enable show-paren-mode.
    2. Split windows
    3. Scroll buffers, and the first char of the first line is "(".
    4. C-x o or M-x ace-window.
  3. Screenshot: window 2 is red as same as the parens highlighting, while others are blue.
Screen Shot 2019-05-28 at 11 55 57 PM
abo-abo commented 5 years ago

I can reproduce. I tried patching aw--lead-overlay with:

(overlay-put ol 'priority (1+ show-paren-priority))

But that doesn't seem to work. Will investigate this further later, but it's a low priority issue.

seagle0128 commented 5 years ago

Thanks for the update. Maybe all other overlays should be disabled in ace-window?