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 ...)).
This commit is contained in:
parent
953cbce77b
commit
3739d51ef3
7 changed files with 28 additions and 28 deletions
|
@ -405,8 +405,8 @@
|
|||
sconst))))
|
||||
(if var
|
||||
(let ((msg (calc-store-value var value "")))
|
||||
(message (concat "Special constant \"%s\" copied to \"%s\"" msg)
|
||||
sconst (calc-var-name var)))))))))
|
||||
(message "Special constant \"%s\" copied to \"%s\"%s"
|
||||
sconst (calc-var-name var) msg))))))))
|
||||
|
||||
(defun calc-copy-variable (&optional var1 var2)
|
||||
(interactive)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue