emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[nongnu] elpa/xkcd 74b0dfe926 78/82: Retain the quote style when printin


From: ELPA Syncer
Subject: [nongnu] elpa/xkcd 74b0dfe926 78/82: Retain the quote style when printing messages
Date: Mon, 12 Dec 2022 21:59:58 -0500 (EST)

branch: elpa/xkcd
commit 74b0dfe9266453a00162b8234eeb209b39529693
Author: Kaushal Modi <kaushal.modi@gmail.com>
Commit: Kaushal Modi <kaushal.modi@gmail.com>

    Retain the quote style when printing messages
    
    From emacs 25.x onwards,
    
    (message "'Hi'")
    
    gets printed as
    
    ’Hi’
    
    In order to print "'Hi'", we need to do
    
    (message "%s" "'Hi'")
---
 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

[Prev in Thread] Current Thread [Next in Thread]