abo-abo / ace-window

Quickly switch windows in Emacs
965 stars 85 forks source link

ESC key triggers "Wrong type arguement: listp, abort" error #206

Open ghost opened 3 years ago

ghost commented 3 years ago

Right now pressing ESC key when selecting a window triggers a Wrong type argument: listp, abort error. I think it is because the abort response is not handled correctly in aw-select:

https://github.com/abo-abo/ace-window/blob/c7cb315c14e36fded5ac4096e158497ae974bec9/ace-window.el#L576-L579

At the same time the aw-handler-default returns an abort on ESC because it calls avy-handler-default for that key: https://github.com/abo-abo/avy/blob/e92cb37457b43336b765630dbfbea8ba4be601fa/avy.el#L465-L467.

I guess we should consider both exit and abort as "exit silently" response in aw-select?

Thank you!