From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: =?utf-8?Q?G=C3=B6ktu=C4=9F_Kayaalp?= Newsgroups: gmane.emacs.help Subject: Sometimes I get stuck in the minibuffer Date: Tue, 27 Apr 2021 11:37:42 +0300 Message-ID: <87fszccecp.fsf@gkayaalp.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="24035"; mail-complaints-to="usenet@ciao.gmane.io" To: Emacs Help Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Tue Apr 27 10:38:36 2021 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lbJEq-00061h-9b for geh-help-gnu-emacs@m.gmane-mx.org; Tue, 27 Apr 2021 10:38:36 +0200 Original-Received: from localhost ([::1]:39850 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lbJEp-0001JS-Ca for geh-help-gnu-emacs@m.gmane-mx.org; Tue, 27 Apr 2021 04:38:35 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:42578) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lbJE9-0001Gx-Uf for help-gnu-emacs@gnu.org; Tue, 27 Apr 2021 04:37:53 -0400 Original-Received: from relay11.mail.gandi.net ([217.70.178.231]:60625) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lbJE7-0007gt-O4 for help-gnu-emacs@gnu.org; Tue, 27 Apr 2021 04:37:53 -0400 Original-Received: from localhost (unknown [46.2.226.68]) (Authenticated sender: self@gkayaalp.com) by relay11.mail.gandi.net (Postfix) with ESMTPSA id 8ADFC10000C for ; Tue, 27 Apr 2021 08:37:46 +0000 (UTC) Received-SPF: none client-ip=217.70.178.231; envelope-from=self@gkayaalp.com; helo=relay11.mail.gandi.net X-Spam_score_int: -25 X-Spam_score: -2.6 X-Spam_bar: -- X-Spam_report: (-2.6 / 5.0 requ) BAYES_00=-1.9, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_NONE=0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.io gmane.emacs.help:129153 Archived-At: Lately I=E2=80=99ve been encountering this weird behaviour where out of now= here, especially when switching buffers, the minibuffer will arrest focus, and I have to use =E2=80=98other-window=E2=80=99 or similar to escape. This is= not when I=E2=80=99m prompted anything, the focus remains in the empty minibuffer like in any other buffer, and if I try =E2=80=98C-x b=E2=80=99, I get user error: Cannot switch buffers in minibuffer window Because of this, I can=E2=80=99t 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=E2=80=99t =E2=80=98ke= yboard-quit=E2=80=99 my way out of this, because, while that does quit the prompt, I=E2=80=99m t= hen 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 =E2=80=98switch-to-buffer=E2=80=99 in that frame w= ithout this issue repeating, so I can=E2=80=99t 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=E2=80=99t seem to trigger the debugger either. When I turn debug-on-= quit on, keyboard-quit in the minibuffer doesn=E2=80=99t 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=E2=80=99t 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=E2=80=99m not sure when exactly this started. My entire init.el and other relevant files are available at . If you know what the problem is or if you can tell me how I can debug this, it=E2=80=99d be greatly appreciated. Thanks in advance, -gk.