diff options
author | Eli Zaretskii <eliz@gnu.org> | 2006-05-13 10:52:20 +0000 |
---|---|---|
committer | Eli Zaretskii <eliz@gnu.org> | 2006-05-13 10:52:20 +0000 |
commit | 41103f87ba849119d817efdf3895d90495a95235 (patch) | |
tree | 6dbdf647ef53bc3fe50a95e24b8d60bbddc4319b | |
parent | 1299a5a43817ed1f8170879c951dbdf05c447e6e (diff) |
(Current Buffer): Document that with-temp-buffer disables undo.
-rw-r--r-- | lispref/buffers.texi | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lispref/buffers.texi b/lispref/buffers.texi index 9257fb54fb..8e680f0708 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 |