mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-04-19 04:21:45 -07:00
* lisp/window.el (switch-to-prev-buffer): Do not switch to a visible
window previous buffer, just like with the frame previous buffers.
This commit is contained in:
parent
1362203499
commit
087bbb4cac
2 changed files with 12 additions and 4 deletions
|
|
@ -1,3 +1,8 @@
|
|||
2012-03-21 Sam Steingold <sds@gnu.org>
|
||||
|
||||
* window.el (switch-to-prev-buffer): Do not switch to a visible
|
||||
window previous buffer, just like with the frame previous buffers.
|
||||
|
||||
2012-03-21 Chong Yidong <cyd@gnu.org>
|
||||
|
||||
* faces.el (make-face, make-empty-face, copy-face):
|
||||
|
|
|
|||
|
|
@ -2600,11 +2600,14 @@ shall not be switched to in future invocations of this command."
|
|||
(not (setq killed-buffers
|
||||
(cons new-buffer killed-buffers))))
|
||||
(not (eq new-buffer old-buffer))
|
||||
(or bury-or-kill
|
||||
(or bury-or-kill
|
||||
(not (memq new-buffer next-buffers))))
|
||||
(set-window-buffer-start-and-point
|
||||
window new-buffer (nth 1 entry) (nth 2 entry))
|
||||
(throw 'found t)))
|
||||
(if (get-buffer-window new-buffer)
|
||||
;; Try to avoid showing a buffer visible in some other window.
|
||||
(setq visible new-buffer)
|
||||
(set-window-buffer-start-and-point
|
||||
window new-buffer (nth 1 entry) (nth 2 entry))
|
||||
(throw 'found t))))
|
||||
;; Scan reverted buffer list of WINDOW's frame next, skipping
|
||||
;; entries of next buffers. Note that when we bury or kill a
|
||||
;; buffer we don't reverse the global buffer list to avoid showing
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue