From: Karl Heuer Date: Tue, 23 Feb 1999 22:09:03 +0000 (+0000) Subject: (with-temp-message): Use %s so % in old msg won't fool us. X-Git-Tag: emacs-20.4~564 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=7554590250aba22de37722ac7c8dba11414de400;p=emacs.git (with-temp-message): Use %s so % in old msg won't fool us. --- diff --git a/lisp/subr.el b/lisp/subr.el index 8954dff55e3..738b8994c3f 100644 --- a/lisp/subr.el +++ b/lisp/subr.el @@ -976,8 +976,8 @@ Use a MESSAGE of \"\" to temporarily clear the echo area." (setq ,current-message (current-message)) (message ,temp-message)) ,@body) - (when ,temp-message - (message ,current-message)))))) + (and ,temp-message ,current-message + (message "%s" ,current-message)))))) (defmacro with-temp-buffer (&rest body) "Create a temporary buffer, and evaluate BODY there like `progn'.