From: Eli Zaretskii Date: Sat, 13 May 2006 10:52:20 +0000 (+0000) Subject: (Current Buffer): Document that with-temp-buffer disables undo. X-Git-Tag: emacs-pretest-22.0.90~2575 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=41103f87ba849119d817efdf3895d90495a95235;p=emacs.git (Current Buffer): Document that with-temp-buffer disables undo. --- diff --git a/lispref/buffers.texi b/lispref/buffers.texi index 9257fb54fba..8e680f07088 100644 --- a/lispref/buffers.texi +++ b/lispref/buffers.texi @@ -233,7 +233,9 @@ The @code{with-temp-buffer} macro evaluates the @var{body} forms with a temporary buffer as the current buffer. It saves the identity of the current buffer, creates a temporary buffer and makes it current, evaluates the @var{body} forms, and finally restores the previous -current buffer while killing the temporary buffer. +current buffer while killing the temporary buffer. By default, undo +information (@pxref{Undo}) is not recorded in the buffer created by +this macro (but @var{body} can enable that, if needed). The return value is the value of the last form in @var{body}. You can return the contents of the temporary buffer by using