branch: elpa/xkcd
commit 2c538d41a9728939cc5e8292faa78ed50997877d
Merge: 8f0009f159 74b0dfe926
Author: Vibhav Pant <vibh...@gmail.com>
Commit: Vibhav Pant <vibh...@gmail.com>

    Merge pull request #18 from kaushalmodi/retain-quote-style-in-messages
    
    Retain the quote style when printing messages
---
 xkcd.el | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/xkcd.el b/xkcd.el
index 11ae401d85..20535203d1 100644
--- a/xkcd.el
+++ b/xkcd.el
@@ -172,7 +172,7 @@ If the image is a gif, animate it."
           (setq xkcd-cur num))
       (xkcd-cache-json num out)
       (setq xkcd-alt (cdr (assoc 'alt json-assoc)))
-      (message title))))
+      (message "%s" title))))
 
 (defun xkcd-next (arg)
   "Get next xkcd."
@@ -222,7 +222,7 @@ If the image is a gif, animate it."
 (defun xkcd-alt-text ()
   "View the alt text in the buffer."
   (interactive)
-  (message xkcd-alt))
+  (message "%s" xkcd-alt))
 
 (defun xkcd-kill-buffer ()
   "Kill the xkcd buffer."

Reply via email to