changeset 43908:40be45d9645d

Correct info on return values of switch-to-buffer and pop-to-buffer.
author Richard M. Stallman <rms@gnu.org>
date Thu, 14 Mar 2002 09:00:46 +0000
parents bfe50f90f666
children d885f1afc652
files lispref/windows.texi
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/lispref/windows.texi	Thu Mar 14 08:59:00 2002 +0000
+++ b/lispref/windows.texi	Thu Mar 14 09:00:46 2002 +0000
@@ -768,7 +768,7 @@
 
 The @code{switch-to-buffer} function is often used interactively, as
 the binding of @kbd{C-x b}.  It is also used frequently in programs.  It
-always returns @code{nil}.
+returns the buffer that it switched to.
 @end deffn
 
 @deffn Command switch-to-buffer-other-window buffer-or-name &optional norecord
@@ -791,7 +791,7 @@
 This function makes @var{buffer-or-name} the current buffer and
 switches to it in some window, preferably not the window previously
 selected.  The ``popped-to'' window becomes the selected window within
-its frame.
+its frame.  The return value is the buffer that was switched to.
 
 If the variable @code{pop-up-frames} is non-@code{nil},
 @code{pop-to-buffer} looks for a window in any visible frame already