From: Carl Worth Date: Tue, 27 Apr 2010 05:33:09 +0000 (-0700) Subject: emacs: Move declare-function from notmuch-lib.el to notmuch-hello.el. X-Git-Tag: 0.3~19 X-Git-Url: https://git.notmuchmail.org/git?p=notmuch;a=commitdiff_plain;h=4727eacb36245ccd2eabe22bfa408a099b574255;hp=f8e372ebeccff4e2cba323d75ac1278cb22828b9 emacs: Move declare-function from notmuch-lib.el to notmuch-hello.el. Apparently the declare-function macro doesn't work in a required file as I might like it too. Put it where it needs to go to avoid the warning. --- diff --git a/emacs/notmuch-hello.el b/emacs/notmuch-hello.el index 97db90e5..e3132a90 100644 --- a/emacs/notmuch-hello.el +++ b/emacs/notmuch-hello.el @@ -27,7 +27,7 @@ (require 'notmuch-mua) (declare-function notmuch-search "notmuch" (query &optional oldest-first target-thread target-line continuation)) -(declare-function notmuch-folder-count "notmuch" (search)) +(declare-function notmuch-poll "notmuch" ()) (defvar notmuch-hello-search-bar-marker nil "The position of the search bar within the notmuch-hello buffer.") diff --git a/emacs/notmuch-lib.el b/emacs/notmuch-lib.el index 3b26aca8..b64aeab9 100644 --- a/emacs/notmuch-lib.el +++ b/emacs/notmuch-lib.el @@ -40,8 +40,6 @@ ;; -(declare-function notmuch-poll ()) - (defun notmuch-version () "Return a string with the notmuch version number." (let ((long-string