aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndreas Schwab2007-12-23 16:07:54 +0000
committerAndreas Schwab2007-12-23 16:07:54 +0000
commita769e627ec3990b2d85cc919756f79939acc67e0 (patch)
tree8942bf8e81402ea50a1e2a13b0d10897039cb1ab
parent5492f5caf9d7afef3b2bbe8db6ea287d186f1067 (diff)
downloademacs-a769e627ec3990b2d85cc919756f79939acc67e0.tar.gz
emacs-a769e627ec3990b2d85cc919756f79939acc67e0.zip
(switch-to-buffer-other-frame): Return the buffer
switched to.
-rw-r--r--lisp/ChangeLog5
-rw-r--r--lisp/files.el6
2 files changed, 9 insertions, 2 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 365f904a556..3318099623a 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,8 @@
12007-12-23 Andreas Schwab <schwab@suse.de>
2
3 * files.el (switch-to-buffer-other-frame): Return the buffer
4 switched to.
5
12007-12-23 Michael Albinus <michael.albinus@gmx.de> 62007-12-23 Michael Albinus <michael.albinus@gmx.de>
2 7
3 Sync with Tramp 2.1.12. 8 Sync with Tramp 2.1.12.
diff --git a/lisp/files.el b/lisp/files.el
index 0aec833445d..e475f4350ba 100644
--- a/lisp/files.el
+++ b/lisp/files.el
@@ -1050,14 +1050,16 @@ documentation for additional customization information."
1050 "Switch to buffer BUFFER in another frame. 1050 "Switch to buffer BUFFER in another frame.
1051Optional second arg NORECORD non-nil means 1051Optional second arg NORECORD non-nil means
1052do not put this buffer at the front of the list of recently selected ones. 1052do not put this buffer at the front of the list of recently selected ones.
1053This function returns the buffer it switched to.
1053 1054
1054This uses the function `display-buffer' as a subroutine; see its 1055This uses the function `display-buffer' as a subroutine; see its
1055documentation for additional customization information." 1056documentation for additional customization information."
1056 (interactive "BSwitch to buffer in other frame: ") 1057 (interactive "BSwitch to buffer in other frame: ")
1057 (let ((pop-up-frames t) 1058 (let ((pop-up-frames t)
1058 same-window-buffer-names same-window-regexps) 1059 same-window-buffer-names same-window-regexps)
1059 (pop-to-buffer buffer t norecord) 1060 (prog1
1060 (raise-frame (window-frame (selected-window))))) 1061 (pop-to-buffer buffer t norecord)
1062 (raise-frame (window-frame (selected-window))))))
1061 1063
1062(defun display-buffer-other-frame (buffer) 1064(defun display-buffer-other-frame (buffer)
1063 "Switch to buffer BUFFER in another frame. 1065 "Switch to buffer BUFFER in another frame.