help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Change in list-buffers behavior in 24.4


From: Sam Varshavchik
Subject: Re: Change in list-buffers behavior in 24.4
Date: Sun, 12 Apr 2015 23:53:59 -0400

Eli Zaretskii writes:

> From: Sam Varshavchik <address@hidden>
> 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: pgpi_u0AE2wYA.pgp
Description: PGP signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]