Skip to content

Commit

Permalink
Avoid interpretation of `%' in message text as format specifier
Browse files Browse the repository at this point in the history
  • Loading branch information
pcrama authored and Philippe Crama committed Aug 24, 2016
1 parent aa5938a commit d34f9ad
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion alert.el
Expand Up @@ -569,7 +569,9 @@ fringe gets colored whenever people chat on BitlBee:
)

(defun alert-message-notify (info)
(message (plist-get info :message))
;; the message text might contain `%' and we don't want them to be
;; interpreted as format specifiers:
(message "%s" (plist-get info :message))
;;(if (memq (plist-get info :severity) '(high urgency))
;; (ding))
)
Expand Down

0 comments on commit d34f9ad

Please sign in to comment.