toki-select-window knows the number in my keybindings, and it switches to that window. Pressing C-x 2 leads me to that other window (though it has number 3 in its modeline), and pressing C-x 3 tells me No such window.
I know this is not the usual case, since we usually call ace-window to switch to a window, and by then which-key window already disappears, and we can set which-key-popup-type to 'minibuffer to work around this problem. So just a report, hopefully you could look into this, and feel free to close this issue if you don't want to.
Update: I tried (add-to-list 'aw-ignored-buffers "*which-key*"), but doesn't help.
This is a somewhat long question, so please be patient. Use
emacs -Q
, and do this (I omitted the load-path configuration):Split the window, so window number
1
and2
are shown in their modelines. PressC-x
. When which-key buffer show up, the number becomes1
and3
:Actually I can tell the which-key window gets number 2, since I did a little hack in my configuration to have window-number shown in the header line:
But actually you still have to switch to that other window using number 2. I can tell this since I have a little function to help me switch window:
toki-select-window
knows the number in my keybindings, and it switches to that window. PressingC-x 2
leads me to that other window (though it has number 3 in its modeline), and pressingC-x 3
tells meNo such window.
I know this is not the usual case, since we usually call
ace-window
to switch to a window, and by thenwhich-key
window already disappears, and we can setwhich-key-popup-type
to'minibuffer
to work around this problem. So just a report, hopefully you could look into this, and feel free to close this issue if you don't want to.Update: I tried
(add-to-list 'aw-ignored-buffers "*which-key*")
, but doesn't help.Update 2: I've noticed https://github.com/abo-abo/ace-window/issues/143, and tried the workaround by seagle0128. But that works for any buffers but
*which-key*
buffer, which is really weird.