aboutsummaryrefslogtreecommitdiffstats
path: root/lisp/progmodes
diff options
context:
space:
mode:
authorStefan Monnier2011-07-05 11:31:22 -0400
committerStefan Monnier2011-07-05 11:31:22 -0400
commit2dcdbdd97db0f414a2f11421e9d8001ea6178517 (patch)
treebe3264dba0659172179eaf2b03a163e4555c9982 /lisp/progmodes
parent73fed7aeda408ab0e9d67ca3c44a4c7711e5b490 (diff)
downloademacs-2dcdbdd97db0f414a2f11421e9d8001ea6178517.tar.gz
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/progmodes')
-rw-r--r--lisp/progmodes/compile.el4
1 files changed, 1 insertions, 3 deletions
diff --git a/lisp/progmodes/compile.el b/lisp/progmodes/compile.el
index 0b9390af6c9..3a9463f0f97 100644
--- a/lisp/progmodes/compile.el
+++ b/lisp/progmodes/compile.el
@@ -2410,9 +2410,7 @@ and overlay is highlighted between MK and END-MK."
2410 ;; display the source in another window. 2410 ;; display the source in another window.
2411 (let ((pop-up-windows t)) 2411 (let ((pop-up-windows t))
2412 (pop-to-buffer (marker-buffer mk) 'other-window)) 2412 (pop-to-buffer (marker-buffer mk) 'other-window))
2413 (if (window-dedicated-p (selected-window)) 2413 (pop-to-buffer-same-window (marker-buffer mk)))
2414 (pop-to-buffer (marker-buffer mk))
2415 (switch-to-buffer (marker-buffer mk))))
2416 (unless (eq (goto-char mk) (point)) 2414 (unless (eq (goto-char mk) (point))
2417 ;; If narrowing gets in the way of going to the right place, widen. 2415 ;; If narrowing gets in the way of going to the right place, widen.
2418 (widen) 2416 (widen)