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:
parent
8c94a4c070
commit
471c244866
@ -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.
|
||||
|
||||
|
@ -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'.
|
||||
|
Loading…
Reference in New Issue
Block a user