emacs-diffs
[Top][All Lists]
Advanced

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

[Emacs-diffs] Changes to emacs/doc/lispref/buffers.texi,v


From: Martin Rudalics
Subject: [Emacs-diffs] Changes to emacs/doc/lispref/buffers.texi,v
Date: Sat, 25 Oct 2008 09:57:49 +0000

CVSROOT:        /sources/emacs
Module name:    emacs
Changes by:     Martin Rudalics <m061211>       08/10/25 09:57:49

Index: buffers.texi
===================================================================
RCS file: /sources/emacs/emacs/doc/lispref/buffers.texi,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -b -r1.8 -r1.9
--- buffers.texi        23 Oct 2008 09:20:00 -0000      1.8
+++ buffers.texi        25 Oct 2008 09:57:49 -0000      1.9
@@ -194,10 +194,9 @@
 @end defun
 
 @defun set-buffer buffer-or-name
-This function makes @var{buffer-or-name} the current buffer.  An error
-is signaled if @var{buffer-or-name} is not an existing buffer or the
-name of an existing buffer.  The return value is the buffer made
-current.
+This function makes @var{buffer-or-name} the current buffer.
address@hidden must be an existing buffer or the name of an
+existing buffer.  The return value is the buffer made current.
 
 This function does not display the buffer in any window, so the user
 cannot necessarily see the buffer.  But Lisp programs will now operate
@@ -220,13 +219,12 @@
 @defmac with-current-buffer buffer-or-name address@hidden
 The @code{with-current-buffer} macro saves the identity of the current
 buffer, makes @var{buffer-or-name} current, evaluates the @var{body}
-forms, and finally restores the buffer.  The return value is the value
-of the last form in @var{body}.  The current buffer is restored even
-in case of an abnormal exit via @code{throw} or error (@pxref{Nonlocal
-Exits}).
+forms, and finally restores the current buffer.  @var{buffer-or-name}
+must specify an existing buffer or the name of an existing buffer.
 
-An error is signaled if @var{buffer-or-name} does not identify an
-existing buffer.
+The return value is the value of the last form in @var{body}.  The
+current buffer is restored even in case of an abnormal exit via
address@hidden or error (@pxref{Nonlocal Exits}).
 @end defmac
 
 @defmac with-temp-buffer address@hidden
@@ -911,15 +909,15 @@
 subprocess can also create a buffer (@pxref{Processes}).
 
 @defun get-buffer-create buffer-or-name
-This function returns a buffer named @var{buffer-or-name}.  An error is
-signaled if @var{buffer-or-name} is neither a string nor a buffer.  The
-buffer returned does not become the current buffer---this function does
-not change which buffer is current.
-
-If @var{buffer-or-name} is a string and a live buffer with that name
-exists, it returns that buffer.  If no such buffer exists, it creates a
-new buffer.  If @var{buffer-or-name} is a buffer instead of a string, it
-is returned as given, even if it is dead.
+This function returns a buffer named @var{buffer-or-name}.  The buffer
+returned does not become the current buffer---this function does not
+change which buffer is current.
+
address@hidden must be either a string or an existing buffer.  If
+it is a string and a live buffer with that name already exists,
address@hidden returns that buffer.  If no such buffer exists,
+it creates a new buffer.  If @var{buffer-or-name} is a buffer instead of
+a string, it is returned as given, even if it is dead.
 
 @example
 @group




reply via email to

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