From 2dcdbdd97db0f414a2f11421e9d8001ea6178517 Mon Sep 17 00:00:00 2001 From: Stefan Monnier Date: Tue, 5 Jul 2011 11:31:22 -0400 Subject: 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. --- lisp/autoinsert.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lisp/autoinsert.el') diff --git a/lisp/autoinsert.el b/lisp/autoinsert.el index 5793c3180be..3b849cece22 100644 --- a/lisp/autoinsert.el +++ b/lisp/autoinsert.el @@ -360,7 +360,7 @@ Matches the visited file name against the elements of `auto-insert-alist'." (save-window-excursion ;; make buffer visible before skeleton or function ;; which might ask the user for something - (switch-to-buffer (current-buffer)) + (pop-to-buffer-same-window (current-buffer)) (if (and (consp action) (not (eq (car action) 'lambda))) (skeleton-insert action) -- cgit v1.2.1