* 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
* Re: Sometimes I get stuck in the minibuffer
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
1 sibling, 0 replies; 5+ messages in thread
From: Gregory Heytings @ 2021-04-27 10:55 UTC (permalink / raw)
To: Göktuğ Kayaalp; +Cc: help-gnu-emacs
>
> 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.
>
Don't worry, this has nothing to with your configuration, it's because the
minibuffer is currently being "improved". "On n'arrete pas le progres !"
If you manage to create a reproductible recipe that triggers this bug,
please M-x report-emacs-bug.
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Sometimes I get stuck in the minibuffer
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
1 sibling, 1 reply; 5+ messages in thread
From: Stefan Monnier @ 2021-04-27 16:51 UTC (permalink / raw)
To: help-gnu-emacs
> 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
This sounds like a manifestation of the same problem recently mentioned
by Thierry Volpiatto. I recommend `M-x report-emacs-bug`.
Stefan
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Sometimes I get stuck in the minibuffer
2021-04-27 16:51 ` Stefan Monnier
@ 2021-05-01 8:11 ` William Xu
2021-05-01 14:00 ` Stefan Monnier
0 siblings, 1 reply; 5+ messages in thread
From: William Xu @ 2021-05-01 8:11 UTC (permalink / raw)
To: help-gnu-emacs
Stefan Monnier <monnier@iro.umontreal.ca> writes:
>> 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
>
> This sounds like a manifestation of the same problem recently mentioned
> by Thierry Volpiatto. I recommend `M-x report-emacs-bug`.
I think I encountered the same issue. But it is quite random, making it
difficult to reproduce. I'm using it on macOS.
--
William
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Sometimes I get stuck in the minibuffer
2021-05-01 8:11 ` William Xu
@ 2021-05-01 14:00 ` Stefan Monnier
0 siblings, 0 replies; 5+ messages in thread
From: Stefan Monnier @ 2021-05-01 14:00 UTC (permalink / raw)
To: help-gnu-emacs
> I think I encountered the same issue. But it is quite random, making it
> difficult to reproduce. I'm using it on macOS.
Reproducible bug reports are definitely much better, but don't let that
stop you from reporting the bug (or contributing your observations to
someone else's bug report) ;-)
Stefan
^ 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.