all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Sam Varshavchik <mrsam@courier-mta.com>
To: help-gnu-emacs@gnu.org
Subject: Re: Change in list-buffers behavior in 24.4
Date: Sun, 12 Apr 2015 23:53:59 -0400	[thread overview]
Message-ID: <cone.1428897239.195461.31778.1004@monster.email-scan.com> (raw)
In-Reply-To: 831tjoeohf.fsf@gnu.org

[-- Attachment #1: Type: text/plain, Size: 2616 bytes --]

Eli Zaretskii writes:

> > From: Sam Varshavchik <mrsam@courier-mta.com>
> > Date: Sun, 12 Apr 2015 12:00:16 -0400
> >
> > I typically have only one buffer window open, and my programmed muscle
> > memory includes the sequence ^X-2-^X-^B.
> >
> > This used to result in the cursor ending up in one window, and the buffer
> > list in the other window.
> >
> > After upgrading to 24.4, it seems that the cursor now winds up in the  
> buffer
> > list's window.
>
> I don't see it here, I still see the behavior you are used to.
>
> Please try in "emacs -Q".  If the problem disappears there, then the
> culprit is one of your customizations, or maybe some init file brought
> by whoever packaged Emacs 24 on your platform.

I reviewed my muscle memory again :-)

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.

[-- Attachment #2: Type: application/pgp-signature, Size: 819 bytes --]

  reply	other threads:[~2015-04-13  3:53 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 [this message]
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

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=cone.1428897239.195461.31778.1004@monster.email-scan.com \
    --to=mrsam@courier-mta.com \
    --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.