summaryrefslogtreecommitdiff
path: root/lisp/net/tramp-cmds.el
diff options
context:
space:
mode:
authorStefan Monnier <monnier@iro.umontreal.ca>2011-07-05 11:31:22 -0400
committerStefan Monnier <monnier@iro.umontreal.ca>2011-07-05 11:31:22 -0400
commit2dcdbdd97db0f414a2f11421e9d8001ea6178517 (patch)
treebe3264dba0659172179eaf2b03a163e4555c9982 /lisp/net/tramp-cmds.el
parent73fed7aeda408ab0e9d67ca3c44a4c7711e5b490 (diff)
downloademacs-2dcdbdd97db0f414a2f11421e9d8001ea6178517.tar.gz
emacs-2dcdbdd97db0f414a2f11421e9d8001ea6178517.tar.bz2
emacs-2dcdbdd97db0f414a2f11421e9d8001ea6178517.zip
Fix some uses of switch-to-buffer.
* lisp/progmodes/compile.el (compilation-goto-locus): * lisp/net/tramp-cmds.el (tramp-append-tramp-buffers): * lisp/bs.el (bs-cycle-next, bs-cycle-previous): * lisp/bookmark.el (bookmark-bmenu-list, bookmark-bmenu-2-window): * lisp/bindings.el (mode-line-other-buffer): * lisp/autoinsert.el (auto-insert): * lisp/arc-mode.el (archive-extract): * lisp/abbrev.el (edit-abbrevs): Fix some uses of switch-to-buffer.
Diffstat (limited to 'lisp/net/tramp-cmds.el')
-rw-r--r--lisp/net/tramp-cmds.el4
1 files changed, 2 insertions, 2 deletions
diff --git a/lisp/net/tramp-cmds.el b/lisp/net/tramp-cmds.el
index fcf523a7068..307ce5368ce 100644
--- a/lisp/net/tramp-cmds.el
+++ b/lisp/net/tramp-cmds.el
@@ -308,7 +308,7 @@ buffer in your bug report.
;; There is at least one Tramp buffer.
(when buffer-list
- (switch-to-buffer (list-buffers-noselect nil))
+ (pop-to-buffer-same-window (list-buffers-noselect nil))
(delete-other-windows)
(setq buffer-read-only nil)
(goto-char (point-min))
@@ -343,7 +343,7 @@ the debug buffer(s).")
;; OK, let's send. First we delete the buffer list.
(progn
(kill-buffer nil)
- (switch-to-buffer curbuf)
+ (pop-to-buffer-same-window curbuf)
(goto-char (point-max))
(insert "\n\
This is a special notion of the `gnus/message' package. If you