From: Juanma Barranquero Date: Sat, 15 Mar 2014 11:16:12 +0000 (+0100) Subject: src/buffer.c (Fset_buffer): Document return value (bug#17015). X-Git-Tag: emacs-24.3.90~183 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=b6d8543cd590fee31ecdef84a625a1e1d06e61c8;p=emacs.git src/buffer.c (Fset_buffer): Document return value (bug#17015). --- diff --git a/src/ChangeLog b/src/ChangeLog index 0512b0d9b68..424416398e8 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,7 @@ +2014-03-15 Juanma Barranquero + + * buffer.c (Fset_buffer): Document return value (bug#17015). + 2014-03-14 Martin Rudalics * w32term.c (x_set_window_size): When frame-resize-pixelwise is diff --git a/src/buffer.c b/src/buffer.c index 028ef76ff71..daafbcef0e4 100644 --- a/src/buffer.c +++ b/src/buffer.c @@ -2187,11 +2187,12 @@ set_buffer_temp (struct buffer *b) DEFUN ("set-buffer", Fset_buffer, Sset_buffer, 1, 1, 0, doc: /* Make buffer BUFFER-OR-NAME current for editing operations. -BUFFER-OR-NAME may be a buffer or the name of an existing buffer. See -also `with-current-buffer' when you want to make a buffer current +BUFFER-OR-NAME may be a buffer or the name of an existing buffer. +See also `with-current-buffer' when you want to make a buffer current temporarily. This function does not display the buffer, so its effect ends when the current command terminates. Use `switch-to-buffer' or -`pop-to-buffer' to switch buffers permanently. */) +`pop-to-buffer' to switch buffers permanently. +The return value is the buffer made current. */) (register Lisp_Object buffer_or_name) { register Lisp_Object buffer;