Adapt 2011-07-05 switch-to-buffer changes to new switch-to-buffer
* lisp/bindings.el (mode-line-other-buffer): * lisp/bookmark.el (bookmark-bmenu-2-window): * lisp/bs.el (bs-cycle-next, bs-cycle-previous): * lisp/net/tramp-cmds.el (tramp-append-tramp-buffers): Revert to using switch-to-buffer. * lisp/net/tramp-compat.el (tramp-compat-pop-to-buffer-same-window): Deleted.
This commit is contained in:
parent
5eba16a37c
commit
8bdfa0649b
6 changed files with 17 additions and 19 deletions
|
@ -1215,8 +1215,7 @@ by buffer configuration `bs-cycle-configuration-name'."
|
|||
;; We don't want the frame iconified if the only window in the frame
|
||||
;; happens to be dedicated.
|
||||
(bury-buffer (current-buffer))
|
||||
(with-no-warnings ; We really do want to call `switch-to-buffer' here.
|
||||
(switch-to-buffer next))
|
||||
(switch-to-buffer next nil t)
|
||||
(setq bs--cycle-list (append (cdr cycle-list)
|
||||
(list (car cycle-list))))
|
||||
(bs-message-without-log "Next buffers: %s"
|
||||
|
@ -1245,8 +1244,7 @@ by buffer configuration `bs-cycle-configuration-name'."
|
|||
bs--cycle-list)))
|
||||
(prev-buffer (car tupel))
|
||||
(cycle-list (cdr tupel)))
|
||||
(with-no-warnings ; We really do want to call `switch-to-buffer' here.
|
||||
(switch-to-buffer prev-buffer))
|
||||
(switch-to-buffer prev-buffer nil t)
|
||||
(setq bs--cycle-list (append (last cycle-list)
|
||||
(reverse (cdr (reverse cycle-list)))))
|
||||
(bs-message-without-log "Previous buffers: %s"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue