Return-Path: X-Original-To: notmuch@notmuchmail.org Delivered-To: notmuch@notmuchmail.org Received: from localhost (localhost [127.0.0.1]) by olra.theworths.org (Postfix) with ESMTP id 64F8B431FCB for ; Fri, 27 Nov 2009 05:30:37 -0800 (PST) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org Received: from olra.theworths.org ([127.0.0.1]) by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id jkFxwBGlMvnp for ; Fri, 27 Nov 2009 05:30:36 -0800 (PST) Received: from mout.perfora.net (mout.perfora.net [74.208.4.194]) by olra.theworths.org (Postfix) with ESMTP id 2B469431FC9 for ; Fri, 27 Nov 2009 05:30:35 -0800 (PST) Received: from vps.nicira.com (66.7.219.28.static.dimenoc.com [66.7.219.28]) by mx.perfora.net (node=mxus2) with ESMTP (Nemesis) id 0MN2aO-1NGCl00cAK-0071wo for notmuch@notmuchmail.org; Fri, 27 Nov 2009 08:30:34 -0500 Received: from [76.210.240.177] (port=36287 helo=kea-nicira-lt) by vps.nicira.com with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.69) (envelope-from ) id 1NE0u8-00044U-44; Fri, 27 Nov 2009 08:30:33 -0500 Received: by kea-nicira-lt (sSMTP sendmail emulation); Fri, 27 Nov 2009 05:30:30 -0800 From: camalot@picnicpark.org To: notmuch@notmuchmail.org Date: Fri, 27 Nov 2009 05:30:08 -0800 Message-Id: <1259328615-1445-3-git-send-email-camalot@picnicpark.org> X-Mailer: git-send-email 1.6.5.3 In-Reply-To: <1259328615-1445-2-git-send-email-camalot@picnicpark.org> References: <1259328615-1445-1-git-send-email-camalot@picnicpark.org> <1259328615-1445-2-git-send-email-camalot@picnicpark.org> X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - vps.nicira.com X-AntiAbuse: Original Domain - notmuchmail.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - picnicpark.org X-Source: X-Source-Args: X-Source-Dir: Cc: Keith Amidon Subject: [notmuch] [PATCH 2/9] Adjust autoload comments X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: "Use and development of the notmuch mail system." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 27 Nov 2009 13:30:37 -0000 From: Keith Amidon The previous location of autoload comments didn't seem to correspond with the functions most likely to be the entry points for using notmuch. This change adjusts them to match those likely entry points. --- notmuch.el | 6 ++++-- 1 files changed, 4 insertions(+), 2 deletions(-) diff --git a/notmuch.el b/notmuch.el index a1efa4f..6400199 100644 --- a/notmuch.el +++ b/notmuch.el @@ -707,8 +707,6 @@ view, (remove the \"inbox\" tag from each), with mode-name "notmuch-show") (setq buffer-read-only t)) -;;;###autoload - (defgroup notmuch nil "Notmuch mail reader for Emacs." :group 'mail) @@ -1002,6 +1000,7 @@ This function advances point to the next line when finished." (set 'more nil)))))) (delete-process proc)))) +;;;###autoload (defun notmuch-search (query &optional oldest-first) "Run \"notmuch search\" with the given query string and display results." (interactive "sNotmuch search: ") @@ -1081,6 +1080,8 @@ current search results AND that are tagged with the given tag." (list (notmuch-select-tag-with-completion "Filter by tag: "))) (notmuch-search (concat notmuch-search-query-string " and tag:" tag) notmuch-search-oldest-first)) + +;;;###autoload (defun notmuch () "Run notmuch to display all mail with tag of 'inbox'" (interactive) @@ -1156,6 +1157,7 @@ results for the search terms in that line. (if search (notmuch-search (cdr search) notmuch-search-oldest-first)))) +;;;###autoload (defun notmuch-folder () "Show the notmuch folder view and update the displayed counts." (interactive) -- 1.6.5.3