aboutsummaryrefslogtreecommitdiffstats
path: root/lisp/erc
diff options
context:
space:
mode:
authorPaul Eggert2015-08-05 19:06:57 -0700
committerPaul Eggert2015-08-05 19:07:28 -0700
commit0c856a2c459016f1f9cce173f5b2b49be36e3452 (patch)
treebbc837053a7255b7e392109fb5680abb8c4513b9 /lisp/erc
parentec044fd2bfd6257742418d621685017325cb24cc (diff)
downloademacs-0c856a2c459016f1f9cce173f5b2b49be36e3452.tar.gz
emacs-0c856a2c459016f1f9cce173f5b2b49be36e3452.zip
Fix some confusion with ‘format’
* lisp/allout-widgets.el (allout-widgets-before-change-handler) (allout-graphics-modification-handler): Protect arbitrary string in a format context with "%s" format. * lisp/avoid.el: * lisp/cedet/semantic/bovine/scm.el: Fix comment. * lisp/calendar/icalendar.el (icalendar--convert-sexp-to-ical): * lisp/erc/erc-button.el (erc-button-beats-to-time): * lisp/gnus/message.el (message-send-form-letter): * lisp/org/ob-core.el (org-babel-check-evaluate) (org-babel-confirm-evaluate): * lisp/org/ob-fortran.el (org-babel-fortran-var-to-fortran): * lisp/org/ox-latex.el (org-latex-compile): * lisp/org/ox-man.el (org-man-compile): * lisp/org/ox-odt.el (org-odt-template): * lisp/org/ox-texinfo.el (org-texinfo-compile): * lisp/progmodes/prolog.el (prolog-help-info) (prolog-view-predspec): * lisp/progmodes/ruby-mode.el (ruby-parse-partial): * lisp/progmodes/verilog-mode.el (verilog-showscopes): * lisp/textmodes/rst.el (rst-replace-lines): Change (message (format ...)) to (message ...), and likewise for ‘error’. This lessens the probability of confusion when the output of ‘format’ contains ‘%’.
Diffstat (limited to 'lisp/erc')
-rw-r--r--lisp/erc/erc-button.el5
1 files changed, 2 insertions, 3 deletions
diff --git a/lisp/erc/erc-button.el b/lisp/erc/erc-button.el
index 380ea7c3d8c..3530a31ea05 100644
--- a/lisp/erc/erc-button.el
+++ b/lisp/erc/erc-button.el
@@ -537,8 +537,8 @@ and `apropos' for other symbols."
537 (- (car (current-time-zone))))) 537 (- (car (current-time-zone)))))
538 (hours (mod (floor seconds 3600) 24)) 538 (hours (mod (floor seconds 3600) 24))
539 (minutes (mod (round seconds 60) 60))) 539 (minutes (mod (round seconds 60) 60)))
540 (message (format "@%s is %d:%02d local time" 540 (message "@%s is %d:%02d local time"
541 beats hours minutes)))) 541 beats hours minutes)))
542 542
543(provide 'erc-button) 543(provide 'erc-button)
544 544
@@ -546,4 +546,3 @@ and `apropos' for other symbols."
546;; Local Variables: 546;; Local Variables:
547;; indent-tabs-mode: nil 547;; indent-tabs-mode: nil
548;; End: 548;; End:
549