emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] Changes to emacs/lisp/files.el,v


From: Andreas Schwab
Subject: [Emacs-diffs] Changes to emacs/lisp/files.el,v
Date: Sun, 23 Dec 2007 16:07:34 +0000

CVSROOT:        /sources/emacs
Module name:    emacs
Changes by:     Andreas Schwab <schwab> 07/12/23 16:07:34

Index: files.el
===================================================================
RCS file: /sources/emacs/emacs/lisp/files.el,v
retrieving revision 1.951
retrieving revision 1.952
diff -u -b -r1.951 -r1.952
--- files.el    18 Dec 2007 21:02:53 -0000      1.951
+++ files.el    23 Dec 2007 16:07:34 -0000      1.952
@@ -1050,14 +1050,16 @@
   "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)
+    (prog1
     (pop-to-buffer buffer t norecord)
-    (raise-frame (window-frame (selected-window)))))
+      (raise-frame (window-frame (selected-window))))))
 
 (defun display-buffer-other-frame (buffer)
   "Switch to buffer BUFFER in another frame.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]