ttn pushed a commit to branch master in repository elpa. commit 92aa999a53843e707923efccbcbc45c9c9a60e42 Author: Thien-Thi Nguyen <t...@gnu.org> Date: Wed Feb 5 11:19:10 2014 +0100
[gnugo int] Avoid variable FORMAT for ‘message’. We don't want weirdness should the variable value include ‘?%’. * packages/gnugo/gnugo.el (gnugo-command): Don't use var as ‘message’ first arg; instead say ‘(message "%s" ...)’. --- packages/gnugo/gnugo.el | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/gnugo/gnugo.el b/packages/gnugo/gnugo.el index f69078b..7d82e29 100644 --- a/packages/gnugo/gnugo.el +++ b/packages/gnugo/gnugo.el @@ -1528,12 +1528,12 @@ NOTE: At this time, GTP command handling specification is still (let* ((ans (cdr (gnugo-synchronous-send/return command))) (where (plist-get spec :output))) (if (string-match "unknown.command" ans) - (message ans) + (message "%s" ans) (cond ((functionp where) (funcall where ans)) ((eq :discard where) (message "")) ((or (eq :message where) (not (string-match "\n" ans))) - (message ans)) + (message "%s" ans)) (t (switch-to-buffer "*gnugo command output*") (erase-buffer) (insert ans)