From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: martin rudalics Newsgroups: gmane.emacs.help Subject: Re: Re: Change in list-buffers behavior in 24.4 Date: Mon, 13 Apr 2015 14:14:14 +0200 Message-ID: <552BB316.1000204@gmx.at> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1428927313 15892 80.91.229.3 (13 Apr 2015 12:15:13 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 13 Apr 2015 12:15:13 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: mrsam@courier-mta.com Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Apr 13 14:15:06 2015 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1YhdGB-0003y8-9l for geh-help-gnu-emacs@m.gmane.org; Mon, 13 Apr 2015 14:14:39 +0200 Original-Received: from localhost ([::1]:51419 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YhdGA-0008TS-HV for geh-help-gnu-emacs@m.gmane.org; Mon, 13 Apr 2015 08:14:38 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:52684) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YhdFz-0008Sm-Qj for help-gnu-emacs@gnu.org; Mon, 13 Apr 2015 08:14:29 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YhdFw-0006kn-Ca for help-gnu-emacs@gnu.org; Mon, 13 Apr 2015 08:14:27 -0400 Original-Received: from mout.gmx.net ([212.227.15.15]:61854) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YhdFw-0006kK-2r for help-gnu-emacs@gnu.org; Mon, 13 Apr 2015 08:14:24 -0400 Original-Received: from [178.190.161.229] ([178.190.161.229]) by mail.gmx.com (mrgmx003) with ESMTPSA (Nemesis) id 0M1W5x-1ZVtSK0ovp-00tSvJ; Mon, 13 Apr 2015 14:14:17 +0200 Original-References: cone.1428897239.195461.31778.1004@monster.email-scan.com X-Provags-ID: V03:K0:2qUfxxBqZS5vgPxgCCUj8Dz/8GhLC+I5DZA2Ty5pa9mZGwrq5RA TFEphxlr1BJKVMhWBqZ/DO/8oAMz7vj9XbvrDbh/1lE0up0E/jHzDUBOB+k31JMHUDOWhyd UWo4kbnElbTMCqRVy4rO+KiQrDLTimILwX+SDESyVLmdV8AiCrX4SBvXSWWXY67VUDX+rw1 HGgYS6yffay8SxIibnXYQ== X-UI-Out-Filterresults: notjunk:1; X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [generic] X-Received-From: 212.227.15.15 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 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.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:103687 Archived-At: > The change in behavior is when there are already two buffers being shown, with different files. So, with two files, a and b: > > > $ emacs -Q a b > > I get just "b" displayed. > > ^X^B^Xo, cursor down, Enter. > > I get the "b" file in the top window, "a" file in the bottom window, with the cursor in the "a" file's window. > > > ^X^B > > The buffer window now replaces the "a" file, where the cursor was, and the cursor now winds up in the buffer list window. That's the different behavior than what I'm used to. > > > Now, if instead of doing ^X^B at this point, I press ^Xo, moving the cursor back to the "b" file's window, then ^X^B still opens the list buffer in the "a" file's window (also). > > > So, maybe the change in behavior is that list-buffers' window is "sticky", and it tries to open the buffer window in the same window it was previously shown in, apparently. If that window is showing another file buffer, even if the cursor is still in that file buffer the buffer list window still gets opened there, replacing the buffer the cursor was in. > > > So, depending on window history, ^X^B ends up either opening the buffer list window in some other window, than the one the cursor is currently in, or the same window where the cursor is. I'm pretty sure that in earlier versions of emacs, ^X^B never opened the list buffer in the same window the cursor was, at the time the list-buffers command was executed. > > > And that's where my muscle memory is failing me now. I'm used to having multiple windows open; and with the cursor in one of them, ^X^B opening the buffer in some other window, and then typing ^Xo to jump into the buffer list window. Now, depending on where the buffer-list window was previously shown, it will now open in the same window with the cursor, and I realize belatedly, after I already jumped somewhere else with ^Xo. Your explanation is correct. The behavior is intended as a feature but inherently breaks the behavior of `pop-to-buffer', especially when used interactively. I intend to fix this soonish for Emacs 25 and also post a simple workaround you can use for Emacs 24.4. Kindly add your observations to this thread http://debbugs.gnu.org/cgi/bugreport.cgi?bug=20206 so we can discuss the solution there. And please use our conventional notation for key bindings. That is, write C-x C-b C-x o instead of ^X^B^Xo and RET instead of ENTER. Thanks, martin