X-Git-Url: https://git.notmuchmail.org/git?p=notmuch;a=blobdiff_plain;f=notmuch.el;h=551048adf03e6910428696582585c1ce13111316;hp=9a2095458878be35211e48c7e0a94567b0342bfc;hb=651b215f0f6d4f220ff67941dbecd54692382472;hpb=93af7b574598637c2766dd1f8ef343962c9a8efb diff --git a/notmuch.el b/notmuch.el index 9a209545..551048ad 100644 --- a/notmuch.el +++ b/notmuch.el @@ -1033,7 +1033,7 @@ This function advances point to the next line when finished." (let ((proc (start-process-shell-command "notmuch-search" buffer notmuch-command "search" (if oldest-first "--sort=oldest-first" "--sort=newest-first") - query))) + (shell-quote-argument query)))) (set-process-sentinel proc 'notmuch-search-process-sentinel) (set-process-filter proc 'notmuch-search-process-filter)))) (run-hooks 'notmuch-search-hook)))