all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: help-gnu-emacs@gnu.org
Subject: Re: Change in list-buffers behavior in 24.4
Date: Mon, 13 Apr 2015 17:31:07 +0300	[thread overview]
Message-ID: <83zj6ccd78.fsf@gnu.org> (raw)
In-Reply-To: <cone.1428897239.195461.31778.1004@monster.email-scan.com>

> From: Sam Varshavchik <mrsam@courier-mta.com>
> 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.



      parent reply	other threads:[~2015-04-13 14:31 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-04-12 16:00 Change in list-buffers behavior in 24.4 Sam Varshavchik
2015-04-13  2:44 ` Eli Zaretskii
2015-04-13  3:53   ` Sam Varshavchik
2015-04-13 12:14     ` martin rudalics
2015-04-13 14:34       ` bug#20206: 25.0.50; [PATCH] keep diff-mode's window visible when we visit sources from diff-mode Eli Zaretskii
2015-04-14 15:51         ` martin rudalics
2015-04-14 12:43       ` Change in list-buffers behavior in 24.4 Sam Varshavchik
2015-04-14 14:43         ` Eli Zaretskii
2015-04-13 14:31     ` Eli Zaretskii [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=83zj6ccd78.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.