Commit 75545902 authored by Karl Heuer's avatar Karl Heuer

(with-temp-message): Use %s so % in old msg won't fool us.

parent bf7ce021
......@@ -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'.
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment