emacs: tree: remove unneeded declarations
authorMark Walters <markwalters1009@gmail.com>
Tue, 29 Oct 2013 22:55:29 +0000 (22:55 +0000)
committerDavid Bremner <david@tethera.net>
Thu, 7 Nov 2013 11:31:24 +0000 (07:31 -0400)
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

index 512589f11210dab754393fe41d94abbb340275df..d3330a0657d2b0c7a772a87586136402d0ca8018 100644 (file)
 (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