1
0
mirror of https://git.savannah.gnu.org/git/emacs/org-mode.git synced 2025-01-01 11:15:00 +00:00

Handle notifications with percent characters

`message' accepts a printf format string, and that can go wrong if you
want to show a string, but the string contains a percent character!
This commit is contained in:
Carsten Dominik 2009-11-07 00:43:27 +01:00
parent 8c94a4c070
commit 471c244866
2 changed files with 4 additions and 1 deletions

View File

@ -1,5 +1,8 @@
2009-11-06 Carsten Dominik <carsten.dominik@gmail.com>
* org-clock.el (org-show-notification): Handle messages that
contain a percent character.
* org-remember.el (org-remember-apply-template): Turn of partial
completion.

View File

@ -491,7 +491,7 @@ use libnotify if available, or fall back on a message."
"notify-send" notification))
;; Maybe the handler will send a message, so only use message as
;; a fall back option
(t (message notification))))
(t (message "%s" notification))))
(defun org-clock-play-sound ()
"Play sound as configured by `org-clock-sound'.