emacs/notmuch-show.el: Avoid passing unintended format strings to `message'
authorDavid Edmondson <dme@dme.org>
Mon, 22 Mar 2010 14:50:20 +0000 (14:50 +0000)
committerCarl Worth <cworth@cworth.org>
Mon, 19 Apr 2010 17:15:09 +0000 (10:15 -0700)
If the text being stashed included %, `message' was unhappy and
complained.

emacs/notmuch-show.el

index 81276d90f32eb2104939afd73c8f6bd5b1ed991c..31f9cfb0ed613a45cfb8fd94aeb3e4f216c1eb44 100644 (file)
@@ -917,8 +917,8 @@ All currently available key bindings:
   :group 'notmuch)
 
 (defun notmuch-show-do-stash (text)
-    (kill-new text)
-    (message (concat "Saved: " text)))
+  (kill-new text)
+  (message "Saved: %s" text))
 
 (defun notmuch-show-stash-cc ()
   "Copy CC field of current message to kill-ring."