all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Sometimes I get stuck in the minibuffer
@ 2021-04-27  8:37 Göktuğ Kayaalp
  2021-04-27 10:55 ` Gregory Heytings
  2021-04-27 16:51 ` Stefan Monnier
  0 siblings, 2 replies; 5+ messages in thread
From: Göktuğ Kayaalp @ 2021-04-27  8:37 UTC (permalink / raw)
  To: Emacs Help

Lately I’ve been encountering this weird behaviour where out of nowhere,
especially when switching buffers, the minibuffer will arrest focus, and
I have to use ‘other-window’ or similar to escape.  This is not when I’m
prompted anything, the focus remains in the empty minibuffer like in any
other buffer, and if I try ‘C-x b’, I get

    user error: Cannot switch buffers in minibuffer window

Because of this, I can’t switch buffers sometimes; when I hit C-x b,
when the relevant prompt appears, it tries to switch buffers in the
minibuffer window, leading to the above error.  I can’t ‘keyboard-quit’
my way out of this, because, while that does quit the prompt, I’m then
stuck in the minibuffer window, and I need to use window selection
commands like I said above to be able to leave.  Which works fine, but
then I can no longer use ‘switch-to-buffer’ in that frame without this
issue repeating, so I can’t switch buffers and lose my layout.

I use multiple windows to work on one buffer pretty often, with but
often without using follow mode, FWIW.

I can’t seem to trigger the debugger either.  When I turn debug-on-quit
on, keyboard-quit in the minibuffer doesn’t bring up the debugger.

Looking around, I see the following advice from git-gutter.el is defined
on switch-to-buffer:

(defadvice switch-to-buffer (after git-gutter:switch-to-buffer activate)
  (when git-gutter-mode
    (git-gutter)))

I have no reason to suspect that this is the cause.  Tho, for the above
reason and for the random nature of the issue, I haven’t been able to
debug nor spot a pattern, yet.

This started happening after one of my latest builds of the master
branch (I use weekly builds), tho I’m not sure when exactly this
started.  My entire init.el and other relevant files are available at
<https://github.com/cadadr/configuration/blob/default/emacs.d/init.el>.

If you know what the problem is or if you can tell me how I can debug
this, it’d be greatly appreciated.

Thanks in advance,

       -gk.




^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2021-05-01 14:00 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-04-27  8:37 Sometimes I get stuck in the minibuffer Göktuğ Kayaalp
2021-04-27 10:55 ` Gregory Heytings
2021-04-27 16:51 ` Stefan Monnier
2021-05-01  8:11   ` William Xu
2021-05-01 14:00     ` Stefan Monnier

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.