abo-abo / ace-window

Quickly switch windows in Emacs
992 stars 87 forks source link

aw-leading-char-style as 'path seems broken #63

Closed tprk77 closed 9 years ago

tprk77 commented 9 years ago

Just installed ace-window from MELPA. It appears that setting aw-leading-char-style as 'path is broken. I am getting the following message whenever I call ace-window:

aw--lead-overlay: Wrong type argument: sequencep, 51

Full trace:

Debugger entered--Lisp error: (wrong-type-argument sequencep 51)
  mapconcat(avy--key-to-char (51) "")
  aw--lead-overlay((51) (362 . #<window 10 on *GNU Emacs*>))
  #[0 "\306\300\242\205n\307C\310\300\242\311\312\313\314\315!\316\"\317\320%\"\210\211\242\211\2031\211@\301@A\"\210A\266\202\202\266\f\321 !\307\302 \210\322\300\242\"\211\262\203e\300A\240@\323=\203Z\324\325\300\242A\"\210\202i\326\327!!P\202i
!\210\266\202\207" [(((49 leaf 362 . #<window 3 on *GNU Emacs*>) (50 leaf 362 . #<window 8 on *Backtrace*>) (51 leaf 362 . #<window 10 on *GNU Emacs*>))) aw--lead-overlay avy--remove-leading-chars avy-current-path avy-translate-char-function avy-handler-function "" nil avy-traverse make-byte-code 514 "\300B\300\242B\240\207" vconcat vector [] 5 "\n\n(fn PATH LEAF)" read-key assoc leaf throw done string avy--key-to-char] 9 "\n\n(fn)"]()
  funcall(#[0 "\306\300\242\205n\307C\310\300\242\311\312\313\314\315!\316\"\317\320%\"\210\211\242\211\2031\211@\301@A\"\210A\266\202\202\266\f\321 !\307\302 \210\322\300\242\"\211\262\203e\300A\240@\323=\203Z\324\325\300\242A\"\210\202i\326\327!!P\202i
!\210\266\202\207" [(((49 leaf 362 . #<window 3 on *GNU Emacs*>) (50 leaf 362 . #<window 8 on *Backtrace*>) (51 leaf 362 . #<window 10 on *GNU Emacs*>))) aw--lead-overlay avy--remove-leading-chars avy-current-path avy-translate-char-function avy-handler-function "" nil avy-traverse make-byte-code 514 "\300B\300\242B\240\207" vconcat vector [] 5 "\n\n(fn PATH LEAF)" read-key assoc leaf throw done string avy--key-to-char] 9 "\n\n(fn)"])
  avy-read(((49 leaf 362 . #<window 3 on *GNU Emacs*>) (50 leaf 362 . #<window 8 on *Backtrace*>) (51 leaf 362 . #<window 10 on *GNU Emacs*>)) aw--lead-overlay avy--remove-leading-chars)
  aw-select(" Ace - Window" aw-switch-to-window)
  ace-select-window()
  ace-window(1)
  call-interactively(ace-window record nil)
  command-execute(ace-window record)
  execute-extended-command(nil "ace-window")
  call-interactively(execute-extended-command nil nil)
  command-execute(execute-extended-command)

To make sure it wasn't just my config, I started Emacs in temporary directory, and only installed ace-window. The problem persisted. I'll try to look into it later, but for now here are the versions:

abo-abo commented 9 years ago

Thanks for noticing, should be fixed now.

tprk77 commented 9 years ago

Wow, you're fast. Thanks!