From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.help Subject: Re: Change in list-buffers behavior in 24.4 Date: Mon, 13 Apr 2015 17:31:07 +0300 Message-ID: <83zj6ccd78.fsf@gnu.org> References: <831tjoeohf.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1428935495 29855 80.91.229.3 (13 Apr 2015 14:31:35 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 13 Apr 2015 14:31:35 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Apr 13 16:31:21 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 1YhfOM-00039i-L9 for geh-help-gnu-emacs@m.gmane.org; Mon, 13 Apr 2015 16:31:14 +0200 Original-Received: from localhost ([::1]:52152 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YhfOM-0006dr-1V for geh-help-gnu-emacs@m.gmane.org; Mon, 13 Apr 2015 10:31:14 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:57198) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YhfOB-0006dK-TR for help-gnu-emacs@gnu.org; Mon, 13 Apr 2015 10:31:04 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YhfO7-0000I4-NW for help-gnu-emacs@gnu.org; Mon, 13 Apr 2015 10:31:03 -0400 Original-Received: from mtaout26.012.net.il ([80.179.55.182]:33957) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YhfO7-0000Hi-Ek for help-gnu-emacs@gnu.org; Mon, 13 Apr 2015 10:30:59 -0400 Original-Received: from conversion-daemon.mtaout26.012.net.il by mtaout26.012.net.il (HyperSendmail v2007.08) id <0NMR00P001MK3R00@mtaout26.012.net.il> for help-gnu-emacs@gnu.org; Mon, 13 Apr 2015 17:32:21 +0300 (IDT) Original-Received: from HOME-C4E4A596F7 ([87.69.4.28]) by mtaout26.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0NMR00GIV1PXS390@mtaout26.012.net.il> for help-gnu-emacs@gnu.org; Mon, 13 Apr 2015 17:32:21 +0300 (IDT) In-reply-to: X-012-Sender: halo1@inter.net.il X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 80.179.55.182 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:103688 Archived-At: > From: Sam Varshavchik > Date: Sun, 12 Apr 2015 23:53:59 -0400 > > 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). That's a far cry from your original story. > 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. Yes, the default behavior changed, so you need to customize display-buffer's strategy to get what you want. Since Martin requested to continue this discussion on the bug tracker, I will reply there with a recipe that I think will do what you want.