[PATCH 02/11] emacs: tree: remove unneeded declarations

Mark Walters markwalters1009 at gmail.com
Tue Oct 29 15:55:29 PDT 2013


There are some crufty declare-functions and requires in notmuch-tree:
since it requires notmuch.el itself this all works but in preparation
for the move to mainline tidy this up.
---
 contrib/notmuch-pick/notmuch-tree.el |   13 ++++---------
 1 files changed, 4 insertions(+), 9 deletions(-)

diff --git a/contrib/notmuch-pick/notmuch-tree.el b/contrib/notmuch-pick/notmuch-tree.el
index 512589f..d3330a0 100644
--- a/contrib/notmuch-pick/notmuch-tree.el
+++ b/contrib/notmuch-pick/notmuch-tree.el
@@ -27,20 +27,15 @@
 (require 'notmuch-lib)
 (require 'notmuch-query)
 (require 'notmuch-show)
+(require 'notmuch-tag)
+(require 'notmuch-parser)
 (require 'notmuch) ;; XXX ATM, as notmuch-search-mode-map is defined here
 
 (eval-when-compile (require 'cl))
-
+(declare-function notmuch-search "notmuch" (&optional query oldest-first target-thread target-line))
 (declare-function notmuch-call-notmuch-process "notmuch" (&rest args))
-(declare-function notmuch-show "notmuch-show" (&rest args))
-(declare-function notmuch-tag "notmuch" (query &rest tags))
-(declare-function notmuch-show-strip-re "notmuch-show" (subject))
-(declare-function notmuch-show-spaces-n "notmuch-show" (n))
 (declare-function notmuch-read-query "notmuch" (prompt))
-(declare-function notmuch-read-tag-changes "notmuch" (current-tags &optional prompt initial-input))
-(declare-function notmuch-update-tags "notmuch" (current-tags tag-changes))
-(declare-function notmuch-hello-trim "notmuch-hello" (search))
-(declare-function notmuch-search-find-thread-id "notmuch" ())
+(declare-function notmuch-search-find-thread-id "notmuch" (&optional bare))
 (declare-function notmuch-search-find-subject "notmuch" ())
 
 ;; the following variable is defined in notmuch.el
-- 
1.7.9.1



More information about the notmuch mailing list