changeset 24385:92817fedff02

(with-temp-message): Use %s so % in old msg won't fool us.
author Karl Heuer <kwzh@gnu.org>
date Tue, 23 Feb 1999 22:09:03 +0000
parents e075b0cbd57a
children fe2294e5627d
files lisp/subr.el
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/subr.el	Mon Feb 22 20:56:34 1999 +0000
+++ b/lisp/subr.el	Tue Feb 23 22:09:03 1999 +0000
@@ -976,8 +976,8 @@
 	       (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'.