Fix message format in org-notmuch-search-open
commit0e5069f1d36aa571c43e81479e3aafcc3216397c
authorChristopher League <league@contrapunctus.net>
Fri, 15 May 2015 16:11:45 +0000 (15 12:11 -0400)
committerNicolas Goaziou <mail@nicolasgoaziou.fr>
Sun, 17 May 2015 08:26:22 +0000 (17 10:26 +0200)
treeca09b811f384cec411ca714f24b753e78b54522c
parent6d88ee5ff0698af87f7debc9831e1bb33b059430
Fix message format in org-notmuch-search-open

* org-notmuch.el (org-notmuch-search-open): Bug fix
When opening a notmuch-search link, we use =message= to display the
path at the bottom of the screen.  This would signal "Not enough
arguments for format string" when the path contained %-signs, as it is
likely to when the query contains spaces:
[[notmuch-search:tag:inbox%2520not%2520tag:bulk%2520org]]

That query appears to be double-escaped, which also might contribute
to the problem, but either way: we should use =(message "%s" str)= to
print arbitrary strings, not =(message str)=.
contrib/lisp/org-notmuch.el