abo-abo / ace-window

Quickly switch windows in Emacs
977 stars 87 forks source link

Method with `aw-dispatch-always` enabled #126

Closed To1ne closed 6 years ago

To1ne commented 6 years ago

In most cases I want aw-dispatch-always to be nil, but sometimes I want it to by t. So I decided to create a function:

(defun my-ace-window-always ()
"Always dispatch to ace-window"
  (interactive)
  (let ((aw-dispatch-always t))
    (ace-window 0)))

And this works fine for switching windows. But when I try to use one of the keys in aw-dispatch-alist I am getting the error:

avy-read: Wrong type argument: number-or-marker-p, nil

To1ne commented 6 years ago

OK, I'm having the same problem with norma ace-window use now. So I probably misconfigured something. Let me get back to this later.

To1ne commented 6 years ago

I had aw-make-frame-char set to nil. Ace-window does not seem to like this.

Is there a way to disable the aw-make-frame-char functionality?

abo-abo commented 6 years ago

Pinging @rswgnu, the author of aw-make-frame-char.

rswgnu commented 6 years ago

What's up Oleh?

-- Bob

On Feb 20, 2018, at 10:59 AM, Oleh Krehel notifications@github.com wrote:

Pinging @rswgnu, the author of aw-make-frame-char.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub, or mute the thread.

To1ne commented 6 years ago

@rswgnu Yeah, this issue changed it's intent along the way. My question was if it was possible to disable the functionality of aw-make-frame-char completely. Setting it tonil seems to cause trouble.

But it's really not a big issue, I just set it to 5, which is far enough from my homerow and doesn't obstruct the keys in aw-dispatch-alist.

Although, one question, I don't really see why aw-make-frame-char is a separate feature from aw-dispatch-alist?