Mercurial > emacs
changeset 24011:f36caedebd5f
Doc fix.
author | Simon Marshall <simon@gnu.org> |
---|---|
date | Wed, 06 Jan 1999 15:23:46 +0000 |
parents | 9eb02fa0c314 |
children | c41f8acc111c |
files | lisp/subr.el |
diffstat | 1 files changed, 4 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/lisp/subr.el Wed Jan 06 14:57:58 1999 +0000 +++ b/lisp/subr.el Wed Jan 06 15:23:46 1999 +0000 @@ -960,10 +960,12 @@ (kill-buffer ,temp-buffer)))))) (defmacro with-temp-message (message &rest body) - "Display MESSAGE temporarily while BODY is evaluated. + "Display MESSAGE temporarily if non-nil while BODY is evaluated. The original message is restored to the echo area after BODY has finished. The value returned is the value of the last form in BODY. -MESSAGE is written to the message log buffer if `message-log-max' is non-nil." +MESSAGE is written to the message log buffer if `message-log-max' is non-nil. +If MESSAGE is nil, the echo area and message log buffer are unchanged. +Use a MESSAGE of \"\" to temporarily clear the echo area." (let ((current-message (make-symbol "current-message")) (temp-message (make-symbol "with-temp-message"))) `(let ((,temp-message ,message)