changeset 56395:8fc5472a5271

(switch-to-buffer-other-window): Doc fix.
author Luc Teirlinck <teirllm@auburn.edu>
date Sun, 11 Jul 2004 02:18:15 +0000
parents 245f03d9697f
children f1ddf2e65cd3
files lisp/files.el
diffstat 1 files changed, 7 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/files.el	Sun Jul 11 01:35:37 2004 +0000
+++ b/lisp/files.el	Sun Jul 11 02:18:15 2004 +0000
@@ -869,8 +869,15 @@
 
 (defun switch-to-buffer-other-window (buffer &optional norecord)
   "Select buffer BUFFER in another window.
+If BUFFER does not identify an existing buffer, then this function
+creates a buffer with that name.
+
+When called from Lisp, BUFFER can be a buffer, a string \(a buffer name),
+or nil.  If BUFFER is nil, then this function chooses a buffer
+using `other-buffer'.
 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."