Re: Hi all
[notmuch-archives.git] / 9c / ad065954c835309c1f5e7edb6a7dfa05a3df43
1 Return-Path: <dme@dme.org>\r
2 X-Original-To: notmuch@notmuchmail.org\r
3 Delivered-To: notmuch@notmuchmail.org\r
4 Received: from localhost (localhost [127.0.0.1])\r
5         by olra.theworths.org (Postfix) with ESMTP id AC6E44196F3\r
6         for <notmuch@notmuchmail.org>; Mon, 26 Apr 2010 08:08:05 -0700 (PDT)\r
7 X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
8 X-Spam-Flag: NO\r
9 X-Spam-Score: -1.9\r
10 X-Spam-Level: \r
11 X-Spam-Status: No, score=-1.9 tagged_above=-999 required=5\r
12         tests=[BAYES_00=-1.9, RCVD_IN_DNSWL_NONE=-0.0001] autolearn=ham\r
13 Received: from olra.theworths.org ([127.0.0.1])\r
14         by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)\r
15         with ESMTP id uAmsned+rLOn for <notmuch@notmuchmail.org>;\r
16         Mon, 26 Apr 2010 08:08:04 -0700 (PDT)\r
17 Received: from mail-bw0-f210.google.com (mail-bw0-f210.google.com\r
18         [209.85.218.210])\r
19         by olra.theworths.org (Postfix) with ESMTP id 30FCB431FC1\r
20         for <notmuch@notmuchmail.org>; Mon, 26 Apr 2010 08:08:04 -0700 (PDT)\r
21 Received: by bwz2 with SMTP id 2so11248351bwz.30\r
22         for <notmuch@notmuchmail.org>; Mon, 26 Apr 2010 08:08:03 -0700 (PDT)\r
23 Received: by 10.204.7.194 with SMTP id e2mr2666046bke.103.1272294482963;\r
24         Mon, 26 Apr 2010 08:08:02 -0700 (PDT)\r
25 Received: from ut.hh.sledj.net (host83-217-165-81.dsl.vispa.com\r
26         [83.217.165.81])\r
27         by mx.google.com with ESMTPS id 14sm1517920bwz.6.2010.04.26.08.07.45\r
28         (version=TLSv1/SSLv3 cipher=RC4-MD5);\r
29         Mon, 26 Apr 2010 08:08:02 -0700 (PDT)\r
30 Received: by ut.hh.sledj.net (Postfix, from userid 1000)\r
31         id E6FF459413B; Mon, 26 Apr 2010 16:07:07 +0100 (BST)\r
32 From: dme@dme.org\r
33 To: notmuch@notmuchmail.org\r
34 Subject: [PATCH] emacs: `notmuch' should display the `notmuch-hello' interface\r
35 Date: Mon, 26 Apr 2010 16:07:04 +0100\r
36 Message-Id: <1272294424-17363-1-git-send-email-dme@dme.org>\r
37 X-Mailer: git-send-email 1.7.0\r
38 X-BeenThere: notmuch@notmuchmail.org\r
39 X-Mailman-Version: 2.1.13\r
40 Precedence: list\r
41 List-Id: "Use and development of the notmuch mail system."\r
42         <notmuch.notmuchmail.org>\r
43 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
44         <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
45 List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
46 List-Post: <mailto:notmuch@notmuchmail.org>\r
47 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
48 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
49         <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
50 X-List-Received-Date: Mon, 26 Apr 2010 15:08:05 -0000\r
51 \r
52 From: David Edmondson <dme@dme.org>\r
53 \r
54 ---\r
55  emacs/notmuch-hello.el |    1 -\r
56  emacs/notmuch-lib.el   |    5 +++++\r
57  emacs/notmuch.el       |    7 +++----\r
58  3 files changed, 8 insertions(+), 5 deletions(-)\r
59 \r
60 diff --git a/emacs/notmuch-hello.el b/emacs/notmuch-hello.el\r
61 index 30b3a5e..bd882b8 100644\r
62 --- a/emacs/notmuch-hello.el\r
63 +++ b/emacs/notmuch-hello.el\r
64 @@ -24,7 +24,6 @@\r
65  (require 'cl)\r
66  \r
67  (require 'notmuch-lib)\r
68 -(require 'notmuch)\r
69  (require 'notmuch-mua)\r
70  \r
71  (declare-function notmuch-search "notmuch" (query &optional oldest-first target-thread target-line continuation))\r
72 diff --git a/emacs/notmuch-lib.el b/emacs/notmuch-lib.el\r
73 index 47c74b9..b64aeab 100644\r
74 --- a/emacs/notmuch-lib.el\r
75 +++ b/emacs/notmuch-lib.el\r
76 @@ -33,6 +33,11 @@\r
77    :type '(alist :key-type (string) :value-type (string))\r
78    :group 'notmuch)\r
79  \r
80 +(defcustom notmuch-search-oldest-first t\r
81 +  "Show the oldest mail first when searching."\r
82 +  :type 'boolean\r
83 +  :group 'notmuch)\r
84 +\r
85  ;;\r
86  \r
87  (defun notmuch-version ()\r
88 diff --git a/emacs/notmuch.el b/emacs/notmuch.el\r
89 index eecff23..428ae6c 100644\r
90 --- a/emacs/notmuch.el\r
91 +++ b/emacs/notmuch.el\r
92 @@ -54,6 +54,7 @@\r
93  (require 'notmuch-lib)\r
94  (require 'notmuch-show)\r
95  (require 'notmuch-mua)\r
96 +(require 'notmuch-hello)\r
97  \r
98  (defcustom notmuch-search-result-format\r
99    `(("date" . "%s ")\r
100 @@ -221,8 +222,6 @@ For a mouse binding, return nil."\r
101  (defvar notmuch-search-query-string)\r
102  (defvar notmuch-search-target-thread)\r
103  (defvar notmuch-search-target-line)\r
104 -(defvar notmuch-search-oldest-first t\r
105 -  "Show the oldest mail first in the search-mode")\r
106  (defvar notmuch-search-continuation)\r
107  \r
108  (defvar notmuch-search-disjunctive-regexp      "\\<[oO][rR]\\>")\r
109 @@ -811,9 +810,9 @@ current search results AND that are tagged with the given tag."\r
110  \r
111  ;;;###autoload\r
112  (defun notmuch ()\r
113 -  "Run notmuch to display all mail with tag of 'inbox'"\r
114 +  "Run notmuch and display saved searches, known tags, etc."\r
115    (interactive)\r
116 -  (notmuch-search "tag:inbox" notmuch-search-oldest-first))\r
117 +  (notmuch-hello))\r
118  \r
119  (setq mail-user-agent 'notmuch-user-agent)\r
120  \r
121 -- \r
122 1.7.0\r
123 \r