From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Stefan Monnier via "Bug reports for GNU Emacs, the Swiss army knife of text editors" Newsgroups: gmane.emacs.bugs Subject: bug#63967: 28.2; switch-to-buffer in normal window fails if minibuffer window is active Date: Fri, 09 Jun 2023 11:08:43 -0400 Message-ID: References: <83o7lo28e6.fsf@gnu.org> Reply-To: Stefan Monnier Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="18225"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: Al Petrofsky , martin rudalics , 63967@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Jun 09 17:09:31 2023 Return-path: Envelope-to: geb-bug-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 1q7dk3-0004bj-1L for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 09 Jun 2023 17:09:31 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1q7djr-0000QW-CP; Fri, 09 Jun 2023 11:09:20 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1q7djc-0000OB-Cz for bug-gnu-emacs@gnu.org; Fri, 09 Jun 2023 11:09:06 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1q7dja-0004BK-Fg for bug-gnu-emacs@gnu.org; Fri, 09 Jun 2023 11:09:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1q7djZ-0004vB-Tg for bug-gnu-emacs@gnu.org; Fri, 09 Jun 2023 11:09:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Stefan Monnier Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 09 Jun 2023 15:09:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 63967 X-GNU-PR-Package: emacs Original-Received: via spool by 63967-submit@debbugs.gnu.org id=B63967.168632333718906 (code B ref 63967); Fri, 09 Jun 2023 15:09:01 +0000 Original-Received: (at 63967) by debbugs.gnu.org; 9 Jun 2023 15:08:57 +0000 Original-Received: from localhost ([127.0.0.1]:60087 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1q7djV-0004us-9J for submit@debbugs.gnu.org; Fri, 09 Jun 2023 11:08:57 -0400 Original-Received: from mailscanner.iro.umontreal.ca ([132.204.25.50]:31382) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1q7djU-0004uf-Eo for 63967@debbugs.gnu.org; Fri, 09 Jun 2023 11:08:56 -0400 Original-Received: from pmg3.iro.umontreal.ca (localhost [127.0.0.1]) by pmg3.iro.umontreal.ca (Proxmox) with ESMTP id DF2694428F0; Fri, 9 Jun 2023 11:08:50 -0400 (EDT) Original-Received: from mail01.iro.umontreal.ca (unknown [172.31.2.1]) by pmg3.iro.umontreal.ca (Proxmox) with ESMTP id 3DC0A4428EE; Fri, 9 Jun 2023 11:08:45 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca; s=mail; t=1686323325; bh=8hAHnnLP9Oc3YaS3wXUJTSSxdSuzeqYo9Pr7flLQolE=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From; b=ZLdsaJ6KPddOVro6ywT5QDXu++7E/pRtCzAuiJ4j/rhk4BFxnuUt2dFzYyO5k8d/Y xKSZzodyGzbyIyardE0Vkhp0uKjzWlpLXMMxW/SeP4LwgaSdKXSp+S08F4qyNGrF2t rzL5W29qcC6ni05JLrTb85qn5z5H5GGhdrn8qXvLLvb4AqlCmnJfkpDQb6E5Kf5iEr zpwaISicv95Y0x/etX9cn2Ys1wVbQmwUlUFsmBqLA/zpn+SnCBX7G6IINdrrM+licj yUNR3hNSLohJ4XyOUUHFx7nKcCE7O/k2N0aoOTxWJ5Jmgbd+27bgSUgMSMn14hpIZ+ RliGYMRPHJijA== Original-Received: from alfajor (unknown [45.44.229.252]) by mail01.iro.umontreal.ca (Postfix) with ESMTPSA id 171E5120903; Fri, 9 Jun 2023 11:08:45 -0400 (EDT) In-Reply-To: <83o7lo28e6.fsf@gnu.org> (Eli Zaretskii's message of "Fri, 09 Jun 2023 14:16:17 +0300") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:263170 Archived-At: > Seems like read-buffer-to-switch (called by "C-x b") changes the > selected-window: when it returns, the rest of the function runs with > the minibuffer window being the selected-window, which is wrong in > this case. Are you 100% sure that's what happens? AFAICT `read-buffer-to-switch` uses the minibuffer in the normal way so when we exit the minibuffer the selected window should definitely not still be the mini-window. And if it happens with `read-buffer-to-switch` I can't see any reason why it wouldn't happen for most/all other uses of the minibuffer. Stefan