summaryrefslogtreecommitdiff
path: root/lisp/org/org.el
diff options
context:
space:
mode:
authorPaul Eggert <eggert@cs.ucla.edu>2019-03-07 09:02:15 -0800
committerPaul Eggert <eggert@cs.ucla.edu>2019-03-07 09:05:56 -0800
commit3739d51ef3b935b30e40ba4534fe362bc685865f (patch)
treeada093c6c9464828035b59a9f56f90a367b57d3a /lisp/org/org.el
parent953cbce77be9a8da1cbf0ca5ee6442923478e186 (diff)
downloademacs-3739d51ef3b935b30e40ba4534fe362bc685865f.tar.gz
emacs-3739d51ef3b935b30e40ba4534fe362bc685865f.tar.bz2
emacs-3739d51ef3b935b30e40ba4534fe362bc685865f.zip
Be safer about "%" in message formats
* lisp/calc/calc-store.el (calc-copy-special-constant): * lisp/net/rcirc.el (rcirc-handler-PART, rcirc-handler-KICK): * lisp/org/org-agenda.el (org-agenda): * lisp/org/org-clock.el (org-clock-out, org-clock-display): * lisp/org/org.el (org-refile): * lisp/progmodes/ada-xref.el (ada-goto-declaration): * lisp/progmodes/idlwave.el (idlwave-scan-library-catalogs): Don’t trust arbitrary strings to not contain "%" or "`" in (message (concat STRING1 STRING2 ...)).
Diffstat (limited to 'lisp/org/org.el')
-rw-r--r--lisp/org/org.el3
1 files changed, 2 insertions, 1 deletions
diff --git a/lisp/org/org.el b/lisp/org/org.el
index 3a434d12dfd..e3c78ae90d4 100644
--- a/lisp/org/org.el
+++ b/lisp/org/org.el
@@ -11878,7 +11878,8 @@ prefix argument (`C-u C-u C-u C-c C-w')."
(when (featurep 'org-inlinetask)
(org-inlinetask-remove-END-maybe))
(setq org-markers-to-move nil)
- (message (concat actionmsg " to \"%s\" in file %s: done") (car it) file)))))))
+ (message "%s to \"%s\" in file %s: done" actionmsg
+ (car it) file)))))))
(defun org-refile-goto-last-stored ()
"Go to the location where the last refile was stored."