emacs-diffs
[Top][All Lists]
Advanced

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

Re: [Emacs-diffs] /srv/bzr/emacs/trunk r107639: * lisp/window.el (switch


From: martin rudalics
Subject: Re: [Emacs-diffs] /srv/bzr/emacs/trunk r107639: * lisp/window.el (switch-to-prev-buffer): Do not switch to a visible
Date: Thu, 22 Mar 2012 20:10:47 +0100

> I have been using this change for a few months and did not see any breakage.
> Could you please be more specific?

The Elisp manual states in section 28.14:


   The following commands can be used to cycle through the global buffer
list, much like `bury-buffer' and `unbury-buffer'.  However, they cycle
according to the specified window's history list, rather than the
global buffer list.  In addition, they restore window-specific window
start and point positions, and may show a buffer even if it is already
shown in another window.  The `switch-to-prev-buffer' command, in
particular, is used by `replace-buffer-in-windows', `bury-buffer' and
`quit-window' to find a replacement buffer for a window.

 -- Command: switch-to-prev-buffer &optional window bury-or-kill
[...]
 -- Command: switch-to-next-buffer &optional window


After your change this is no longer true when the same buffer is shown
in different windows.  As an example, with emacs -Q do C-x 2 and next
type C-h k RET.  Now in the lower window type C-x <C-left> and you will
see the buffer *Messages* instead of the previously shown buffer
*scratch*.  This makes working with two windows showing the same buffer
just as messy as it was before.  In fact, it makes the entire idea of
saving window start and point positions completely useless.

martin



reply via email to

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