aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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 1d9355aa928..e5742f97e50 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 Juri Linkov <juri@jurta.org> 62007-12-23 Juri Linkov <juri@jurta.org>
2 7
3 * term/mac-win.el (mac-apple-event-map): Bind About Emacs menu 8 * term/mac-win.el (mac-apple-event-map): Bind About Emacs menu
diff --git a/lisp/files.el b/lisp/files.el
index 423bc1eb804..d4b15324f94 100644
--- a/lisp/files.el
+++ b/lisp/files.el
@@ -1010,14 +1010,16 @@ documentation for additional customization information."
1010 "Switch to buffer BUFFER in another frame. 1010 "Switch to buffer BUFFER in another frame.
1011Optional second arg NORECORD non-nil means 1011Optional second arg NORECORD non-nil means
1012do not put this buffer at the front of the list of recently selected ones. 1012do not put this buffer at the front of the list of recently selected ones.
1013This function returns the buffer it switched to.
1013 1014
1014This uses the function `display-buffer' as a subroutine; see its 1015This uses the function `display-buffer' as a subroutine; see its
1015documentation for additional customization information." 1016documentation for additional customization information."
1016 (interactive "BSwitch to buffer in other frame: ") 1017 (interactive "BSwitch to buffer in other frame: ")
1017 (let ((pop-up-frames t) 1018 (let ((pop-up-frames t)
1018 same-window-buffer-names same-window-regexps) 1019 same-window-buffer-names same-window-regexps)
1019 (pop-to-buffer buffer t norecord) 1020 (prog1
1020 (raise-frame (window-frame (selected-window))))) 1021 (pop-to-buffer buffer t norecord)
1022 (raise-frame (window-frame (selected-window))))))
1021 1023
1022(defun display-buffer-other-frame (buffer) 1024(defun display-buffer-other-frame (buffer)
1023 "Switch to buffer BUFFER in another frame. 1025 "Switch to buffer BUFFER in another frame.