From 0228f35ec5bcf7f6fdde2244bac0c6937475f3d7 Mon Sep 17 00:00:00 2001 From: djcb Date: Wed, 27 Dec 2017 12:51:44 +0200 Subject: [PATCH] simplify mu4e~docid-msgid-param It was using an ununed `format', which caused trouble when the msgid contained format characters. --- mu4e/mu4e-proc.el | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/mu4e/mu4e-proc.el b/mu4e/mu4e-proc.el index 69dd796c..34534906 100644 --- a/mu4e/mu4e-proc.el +++ b/mu4e/mu4e-proc.el @@ -310,13 +310,11 @@ Start the process if needed." (t (error "Something bad happened to the mu server process"))))) -(defsubst mu4e~docid-msgid-param (docid-or-msgid) +(defun mu4e~docid-msgid-param (docid-or-msgid) "Construct a backend parameter based on DOCID-OR-MSGID." - (format - (if (stringp docid-or-msgid) - (concat "msgid:"(mu4e~escape (format "%s" docid-or-msgid))) - "docid:%d") - docid-or-msgid)) + (if (stringp docid-or-msgid) + (concat "msgid:" (mu4e~escape docid-or-msgid)) + (format "docid:%d" docid-or-msgid))) (defun mu4e~proc-find (query threads sortfield sortdir maxnum skip-dups include-related)