]> rtime.felk.cvut.cz Git - notmuch.git/blobdiff - emacs/notmuch-company.el
emacs: address completion, allow sender/recipient and filters
[notmuch.git] / emacs / notmuch-company.el
index add3161b790d6a490c7994ad0c1aad2632d803e8..dcb59cd64bfa707a4c86de463bb4b600a0498010 100644 (file)
@@ -1,4 +1,4 @@
-;; notmuch-company.el --- Mail address completion for notmuch via company-mode  -*- lexical-binding: t -*-
+;;; notmuch-company.el --- Mail address completion for notmuch via company-mode  -*- lexical-binding: t -*-
 
 ;; Authors: Trevor Jim <tjim@mac.com>
 ;;         Michal Sojka <sojkam1@fel.cvut.cz>
@@ -72,7 +72,7 @@
                          (lambda (callback)
                            ;; First run quick asynchronous harvest based on what the user entered so far
                            (notmuch-address-harvest
-                            (format "to:%s*" arg) nil
+                            arg nil
                             (lambda (_proc _event)
                               (funcall callback (notmuch-address-matching arg))
                               ;; Then start the (potentially long-running) full asynchronous harvest if necessary
@@ -84,3 +84,5 @@
 
 
 (provide 'notmuch-company)
+
+;;; notmuch-company.el ends here