summaryrefslogtreecommitdiff
path: root/lisp/files.el
diff options
context:
space:
mode:
authorMartin Rudalics <rudalics@gmx.at>2008-09-16 08:28:18 +0000
committerMartin Rudalics <rudalics@gmx.at>2008-09-16 08:28:18 +0000
commit1676807bc710c812ae303294ef88501e13453134 (patch)
tree712ca887e6c550ebfe391b2f1af0931f68b314b8 /lisp/files.el
parentbbca16d8d14cd70b45dffeea59a17033ed4df8b4 (diff)
downloademacs-1676807bc710c812ae303294ef88501e13453134.tar.gz
(switch-to-buffer-other-frame): Don't raise frame since
pop-to-buffer already does it. (display-buffer-other-frame): Fix doc-string.
Diffstat (limited to 'lisp/files.el')
-rw-r--r--lisp/files.el18
1 files changed, 8 insertions, 10 deletions
diff --git a/lisp/files.el b/lisp/files.el
index 2773c9f14b0..df060e4f9f9 100644
--- a/lisp/files.el
+++ b/lisp/files.el
@@ -1074,24 +1074,22 @@ documentation for additional customization information."
(defun switch-to-buffer-other-frame (buffer &optional norecord)
"Switch to buffer BUFFER in another frame.
-Optional second arg NORECORD non-nil means
-do not put this buffer at the front of the list of recently selected ones.
+Optional second arg NORECORD non-nil means do not put this
+buffer at the front of the list of recently selected ones.
This function returns the buffer it switched to.
-This uses the function `display-buffer' as a subroutine; see its
-documentation for additional customization information."
+This uses the function `display-buffer' as a subroutine; see
+its documentation for additional customization information."
(interactive
(list (read-buffer-to-switch "Switch to buffer in other frame: ")))
(let ((pop-up-frames t)
same-window-buffer-names same-window-regexps)
- (prog1
- (pop-to-buffer buffer t norecord)
- (raise-frame (window-frame (selected-window))))))
+ (pop-to-buffer buffer t norecord)))
(defun display-buffer-other-frame (buffer)
- "Switch to buffer BUFFER in another frame.
-This uses the function `display-buffer' as a subroutine; see its
-documentation for additional customization information."
+ "Display buffer BUFFER in another frame.
+This uses the function `display-buffer' as a subroutine; see
+its documentation for additional customization information."
(interactive "BDisplay buffer in other frame: ")
(let ((pop-up-frames t)
same-window-buffer-names same-window-regexps