diff options
| author | Andreas Schwab <schwab@suse.de> | 2007-12-23 16:07:54 +0000 |
|---|---|---|
| committer | Andreas Schwab <schwab@suse.de> | 2007-12-23 16:07:54 +0000 |
| commit | a769e627ec3990b2d85cc919756f79939acc67e0 (patch) | |
| tree | 8942bf8e81402ea50a1e2a13b0d10897039cb1ab /lisp/files.el | |
| parent | 5492f5caf9d7afef3b2bbe8db6ea287d186f1067 (diff) | |
| download | emacs-a769e627ec3990b2d85cc919756f79939acc67e0.tar.gz | |
(switch-to-buffer-other-frame): Return the buffer
switched to.
Diffstat (limited to 'lisp/files.el')
| -rw-r--r-- | lisp/files.el | 6 |
1 files changed, 4 insertions, 2 deletions
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." "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. +This function returns the buffer it switched to. This uses the function `display-buffer' as a subroutine; see its documentation for additional customization information." (interactive "BSwitch to buffer in other frame: ") (let ((pop-up-frames t) same-window-buffer-names same-window-regexps) - (pop-to-buffer buffer t norecord) - (raise-frame (window-frame (selected-window))))) + (prog1 + (pop-to-buffer buffer t norecord) + (raise-frame (window-frame (selected-window)))))) (defun display-buffer-other-frame (buffer) "Switch to buffer BUFFER in another frame. |
