]> git.notmuchmail.org Git - notmuch/commitdiff
notmuch.el: Switch from compilation-start to start-process
authorCarl Worth <cworth@cworth.org>
Sat, 31 Oct 2009 06:42:39 +0000 (23:42 -0700)
committerCarl Worth <cworth@cworth.org>
Sat, 31 Oct 2009 06:42:39 +0000 (23:42 -0700)
Compilation mode does a bunch of things that we don't want. Instead
of trying to tear it down to what we want, let's start at the other
end and build up only things that we really want.

notmuch.el

index 84152fbccfebb14d55511a50d8fa759873c32d08..4f4a7c9c9f7e0b2a6b7e9fe32068beea844203b5 100644 (file)
@@ -42,8 +42,8 @@
 
 (defun notmuch-search (query)
   "Run \"notmuch search\" with the given query string and display results."
-  (interactive "sNotmuch search:")
-  (compilation-start (concat "notmuch search " query) 'notmuch-search-mode))
+  (interactive "sNotmuch search: ")
+  (start-process "notmuch-search" (concat "*notmuch-search-" query) "notmuch" "search" query))
 
 (defun notmuch ()
   "Run notmuch to display all mail with tag of 'inbox'"