summaryrefslogtreecommitdiff
path: root/elisp
diff options
context:
space:
mode:
authorJose Antonio Ortega Ruiz <jao@gnu.org>2010-09-07 05:58:05 +0200
committerJose Antonio Ortega Ruiz <jao@gnu.org>2010-09-07 05:58:05 +0200
commit1c4719e7267c88057e4272d40300e62416ab0235 (patch)
tree080e33dc36be49bd2193ee849c89d449b4ab37e0 /elisp
parent9d596fa6baed97d8ca57b76934c100d0f7fedcae (diff)
downloadgeiser-1c4719e7267c88057e4272d40300e62416ab0235.tar.gz
geiser-1c4719e7267c88057e4272d40300e62416ab0235.tar.bz2
Reuse soruce window when navigating errors
Diffstat (limited to 'elisp')
-rw-r--r--elisp/geiser-edit.el2
1 files changed, 1 insertions, 1 deletions
diff --git a/elisp/geiser-edit.el b/elisp/geiser-edit.el
index 8af56c8..08eab53 100644
--- a/elisp/geiser-edit.el
+++ b/elisp/geiser-edit.el
@@ -41,7 +41,7 @@ or following links in error buffers.")
;;; Auxiliar functions:
(defun geiser-edit--visit-file (file method)
- (cond ((eq method 'window) (find-file-other-window file))
+ (cond ((eq method 'window) (pop-to-buffer (find-file-noselect file t)))
((eq method 'frame) (find-file-other-frame file))
((eq method 'noselect) (find-file-noselect file t))
(t (find-file file))))