[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."
- [nongnu] elpa/xkcd b637a2aa84 13/82: Update README.md, (continued)
- [nongnu] elpa/xkcd b637a2aa84 13/82: Update README.md, ELPA Syncer, 2022/12/12
- [nongnu] elpa/xkcd b9095c5aae 16/82: Make xkcd-get-latest work., ELPA Syncer, 2022/12/12
- [nongnu] elpa/xkcd 2da77a12e2 29/82: Provide xkcd instead of emacs-xkcd, ELPA Syncer, 2022/12/12
- [nongnu] elpa/xkcd e8bb80c4a0 30/82: Make comments work with Melpa., ELPA Syncer, 2022/12/12
- [nongnu] elpa/xkcd b303669b33 39/82: Merge pull request #7 from rafoo/master, ELPA Syncer, 2022/12/12
- [nongnu] elpa/xkcd ef6e51ade7 43/82: Code simplification, ELPA Syncer, 2022/12/12
- [nongnu] elpa/xkcd f2650dc392 46/82: Retrieve correct substring, ELPA Syncer, 2022/12/12
- [nongnu] elpa/xkcd 3304f05265 59/82: Autoload xkcd-handle-links., ELPA Syncer, 2022/12/12
- [nongnu] elpa/xkcd 60de549e25 63/82: Merge pull request #10 from heikkil/master, ELPA Syncer, 2022/12/12
- [nongnu] elpa/xkcd 0310d572b7 68/82: * images/screenshot.png: Add screenshot., ELPA Syncer, 2022/12/12
- [nongnu] elpa/xkcd 74b0dfe926 78/82: Retain the quote style when printing messages,
ELPA Syncer <=
- [nongnu] elpa/xkcd 2c796bcd0f 81/82: Merge pull request #25 from skangas/prefer-https, ELPA Syncer, 2022/12/12
- [nongnu] elpa/xkcd 296aa18259 47/82: Merge branch 'master' of https://github.com/vibhavp/emacs-xkcd, ELPA Syncer, 2022/12/12
- [nongnu] elpa/xkcd c2be5c6a08 50/82: Merge pull request #8 from rafoo/master, ELPA Syncer, 2022/12/12
- [nongnu] elpa/xkcd 9f77f0422f 64/82: Require browse-url for external-browser functions to work., ELPA Syncer, 2022/12/12
- [nongnu] elpa/xkcd 6166a690b5 73/82: Add MELPA badge., ELPA Syncer, 2022/12/12
- [nongnu] elpa/xkcd 91be72384e 61/82: Open current xkcd in external browser, ELPA Syncer, 2022/12/12
- [nongnu] elpa/xkcd e0b7938714 54/82: Add docs for xkcd-handle-links., ELPA Syncer, 2022/12/12
- [nongnu] elpa/xkcd 7148c2c135 57/82: Add (require 'image) to supress build warnings., ELPA Syncer, 2022/12/12
- [nongnu] elpa/xkcd 97235a9fbd 58/82: Add autoloads., ELPA Syncer, 2022/12/12
- [nongnu] elpa/xkcd 763b73d6de 69/82: * README.md: Remove feature from customize table which is still to be added., ELPA Syncer, 2022/12/12