From mboxrd@z Thu Jan 1 00:00:00 1970 From: Christopher League Subject: [PATCH] Fix message format in org-notmuch-search-open Date: Fri, 15 May 2015 12:11:45 -0400 Message-ID: <1431706305-4320-1-git-send-email-league@contrapunctus.net> Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:46056) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YtIEB-0002Ju-U7 for emacs-orgmode@gnu.org; Fri, 15 May 2015 12:12:48 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YtIE8-0000Jj-OM for emacs-orgmode@gnu.org; Fri, 15 May 2015 12:12:47 -0400 Received: from contrapunctus.net ([174.136.110.10]:49079 helo=liucs.net) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YtIE8-0008Pl-JO for emacs-orgmode@gnu.org; Fri, 15 May 2015 12:12:44 -0400 List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org Cc: Christopher League * 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 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contrib/lisp/org-notmuch.el b/contrib/lisp/org-notmuch.el index ae9b50b..712ec5a 100644 --- a/contrib/lisp/org-notmuch.el +++ b/contrib/lisp/org-notmuch.el @@ -113,7 +113,7 @@ Can link to more than one message, if so all matching messages are shown." (defun org-notmuch-search-open (path) "Follow a notmuch message link specified by PATH." - (message path) + (message "%s" path) (funcall org-notmuch-search-open-function path)) (defun org-notmuch-search-follow-link (search) -- 2.4.0