From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: martin rudalics Newsgroups: gmane.emacs.bugs Subject: bug#45848: 27.1; Buffers menu opens wrong buffer Date: Thu, 14 Jan 2021 08:40:59 +0100 Message-ID: <51227849-be44-5475-b903-c5029f7c576e@gmx.at> References: <5118f4c07ec3d18a4012ba6d1f383b28.squirrel@coffland.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="11977"; mail-complaints-to="usenet@ciao.gmane.io" To: joseph@cauldrondevelopment.com, 45848@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Jan 14 08:42:22 2021 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 1kzxGw-00031q-3Q for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 14 Jan 2021 08:42:22 +0100 Original-Received: from localhost ([::1]:33006 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kzxGv-0003n2-2O for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 14 Jan 2021 02:42:21 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:54524) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kzxGc-0003mo-WF for bug-gnu-emacs@gnu.org; Thu, 14 Jan 2021 02:42:03 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:53764) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kzxGc-0002BB-5T for bug-gnu-emacs@gnu.org; Thu, 14 Jan 2021 02:42:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kzxGc-00030A-30 for bug-gnu-emacs@gnu.org; Thu, 14 Jan 2021 02:42:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: martin rudalics Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 14 Jan 2021 07:42:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 45848 X-GNU-PR-Package: emacs Original-Received: via spool by 45848-submit@debbugs.gnu.org id=B45848.161061007211479 (code B ref 45848); Thu, 14 Jan 2021 07:42:02 +0000 Original-Received: (at 45848) by debbugs.gnu.org; 14 Jan 2021 07:41:12 +0000 Original-Received: from localhost ([127.0.0.1]:37077 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kzxFn-0002z5-Ry for submit@debbugs.gnu.org; Thu, 14 Jan 2021 02:41:12 -0500 Original-Received: from mout.gmx.net ([212.227.15.18]:51439) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kzxFm-0002ys-4V for 45848@debbugs.gnu.org; Thu, 14 Jan 2021 02:41:10 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1610610060; bh=RTaUz5y3AMtKDvR5pV6XTUZ1H0e0dmZV4rhGWVHg40A=; h=X-UI-Sender-Class:Subject:To:References:From:Date:In-Reply-To; b=b8ixEyiFUHrOCN0NWSyLkGuc+h63Qwmr5FNFy1FhAKzrEIhCHHJJf301Cl1QBekP3 6GWnwOBKaiVrjngpI8AUuiopCDe4fR+FkTzXmEvwU5OtpiSlYxGfxP25Q1gv6u2ao+ kluT3LXN+k6v4vinvJTdWIRRrgPIALKLqNaU5JPI= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Original-Received: from [192.168.1.100] ([212.95.5.23]) by mail.gmx.com (mrgmx005 [212.227.17.190]) with ESMTPSA (Nemesis) id 1MTzf6-1kYuDu0ouA-00R1tV; Thu, 14 Jan 2021 08:41:00 +0100 In-Reply-To: <5118f4c07ec3d18a4012ba6d1f383b28.squirrel@coffland.com> Content-Language: en-US X-Provags-ID: V03:K1:CGKpcxvpB8NB+8f38clguRIrdWVF6Y+NRTcwND/7nHMjDcGBl3U QgWdwLcZ8g/OHRHjjSKL9uqMEML9CnAgeHB2B6akNETNhLvEtbxFyD3204o5+jl1eRRH0Q9 g9I7dEU5n9czjwxG69HQ9TGqF5ugY+OH/RNmzZTG7Fzkx6f9bqB3NQ48tjGYkxZlTbUATNg CkQ7NC8fAs9QOYfkQudVg== X-UI-Out-Filterresults: notjunk:1;V03:K0:rizJwNg6NbE=:gBPH34a/V2pj/uiIsNN7fk QVekFok54pC7atHLs6iga7qGFDGcCgR6wMlEMG7GzsjxowrS5KRohZn/35lVQhidwMavPk9m+ Kh5goL/VWmTRKnCcG7Dy6P0Zh9xidCtnBPDIF++CbRBUeZBN/BbYvn5zb9kZiKekacmCgrSSR NQY+EqTu+cLl/Rl8IkYfB8WQzyIBAa5i2RbpNuEvaqmVfQPWujd9yIo+jbgGgkQ0FflepZ1vg FduDy1NuVDnCSTBwG2GqR/UsbbgQEjW0SUz9bQaF7FrhehIubvkfoGMHCMMnXRFPNktVpqnko X4CKpRzfTjIaekd4UnKo6yyD6vxH+WCpHKap1JzAvwL9jMB0RvfzbRDi6apbuQsUaVhQ1f9Pu kRB1FGAaay1tNzvqS8u5wOQ3P865TV7W0D4DDBU5ioF8uwzjwns4BLIpefMvyNBpZ+Vfx46Pe O5Wxsi3EKVPg4usgqYAePSXbDJwuWR49g1x02o9S6zM5id/AvXhrhNQh9KUsvzwlcwW18etfk qAiC7WZ4dWrU/4wTap71eUzGi8yP8kF2sQQQ+Tb7eBUv+curktRpCnREPzcyXKrtOmwAkVNwI 51rGBZEvUFcOJJ+oC1CWBU/SvxDh9XFsgKtXVfnGTjLqWyZCR4W+XeOc4OxHaLzXLV1voas+/ p0gNHpB/TNLth224c6eVh+JfxaiojWsDhbydah3AfcGxenzISWax7IrWglobvvVwUe6DsoqmY KcsVCV11jASp0RtFGu+Frzy5MWwy7ainH21MtkItEQy4wiMUUIObhwjT9k1JEqCBc/HfCbVa 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" Xref: news.gmane.io gmane.emacs.bugs:197930 Archived-At: > In recent versions of GTK Emacs with multiple frames open, selecting the > top buffer from the Buffers menu often opens the wrong buffer. Upon > returning to the Buffers menu, the top item has changed to the one that > actually opened. Selecting the desired file from the menu again opens the > correct file as expected. > > The Buffers menu on each frame appears to be the same but in reality the > order is different. When one frame is in focus but you click on the > Buffers menu of an unfocused frame it will show the Buffers for the > focused menu. If you close the menu and reclick, the focus will have > changed and it will show the correct Buffers menu. > > I belive the problem is that the Buffers menu opens before the frame focus > changes causing the wrong Buffers list to display for the frame. I always disable the Buffers menu here so I can't tell whether there was a noticeable change recently. The function responsible for providing that menu ('menu-bar-update-buffers') uses the global buffer list - not the one specific for that menu bar's frame. This means that conceptually the menu will show the same list regardless from where you invoke it unless that invoking step itself changes the global buffer list beforehand. Now selecting a frame is one way to change it, popping up a menu from the menu bar should not change it. So the first issue we'd have to resolve is what the "correct Buffers menu" is. The second issue, and that is one that should never happen, is that apparently Emacs switches to another buffer than the one whose name you clicked on. Maybe someone else has an idea how such a thing could occur in practice. martin