abo-abo / ace-window

Quickly switch windows in Emacs
977 stars 87 forks source link

winner-redo error: previous comand was not a `winner-undo` #130

Closed yiufung closed 6 years ago

yiufung commented 6 years ago

I copied the last snippet at Wiki page to a vanilla Emacs 25.3.1, and saw the error from winner-redo. Looking around, it seems to be similar with hydra#79. So I changed the line for winner-undo to your advice

(?u (lambda () (progn (winner-undo) (setq this-command 'winner-undo))))

And it works. Can you see if this can be reproduced?

abo-abo commented 6 years ago

And it works.

Thanks, I've modified the wiki page with your code.