branch: elpa/xkcd commit 74b0dfe9266453a00162b8234eeb209b39529693 Author: Kaushal Modi <kaushal.m...@gmail.com> Commit: Kaushal Modi <kaushal.m...@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."