Re: [WIP PATCH] emacs: query: completion for from: in searches
[notmuch-archives.git] / 1c / bdfb7b69b9c63dcbcadc6f11b37ff44ae4e84c
1 Return-Path: <BATV+822af461729d84aba39a+2482+infradead.org+hohndel@bombadil.srs.infradead.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 736354196F0\r
6         for <notmuch@notmuchmail.org>; Thu, 10 Jun 2010 07:03:13 -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: -4.2\r
10 X-Spam-Level: \r
11 X-Spam-Status: No, score=-4.2 tagged_above=-999 required=5\r
12         tests=[BAYES_00=-1.9, RCVD_IN_DNSWL_MED=-2.3] 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 G4bJTpAHzsg0 for <notmuch@notmuchmail.org>;\r
16         Thu, 10 Jun 2010 07:03:01 -0700 (PDT)\r
17 Received: from bombadil.infradead.org (bombadil.infradead.org [18.85.46.34])\r
18         by olra.theworths.org (Postfix) with ESMTP id C8284431FC1\r
19         for <notmuch@notmuchmail.org>; Thu, 10 Jun 2010 07:03:01 -0700 (PDT)\r
20 Received: from localhost ([::1] helo=x201s.gr8dns.org)\r
21         by bombadil.infradead.org with esmtp (Exim 4.72 #1 (Red Hat Linux))\r
22         id 1OMiLU-0006nG-1J; Thu, 10 Jun 2010 14:03:00 +0000\r
23 Received: by x201s.gr8dns.org (Postfix, from userid 500)\r
24         id 151B8253915; Thu, 10 Jun 2010 07:00:57 -0700 (PDT)\r
25 From: Dirk Hohndel <hohndel@infradead.org>\r
26 To: David Edmondson <dme@dme.org>, notmuch <notmuch@notmuchmail.org>\r
27 Subject: Re: fix problem with notmuch-hello-nice-number\r
28 In-Reply-To: <87mxv3s6za.fsf@ut.hh.sledj.net>\r
29 References: <m37hm8fehu.fsf@x201s.gr8dns.org> <87mxv3s6za.fsf@ut.hh.sledj.net>\r
30 User-Agent: Notmuch/0.3.1-70-g259d48b (http://notmuchmail.org) Emacs/23.2.1\r
31         (x86_64-redhat-linux-gnu)\r
32 Date: Thu, 10 Jun 2010 07:00:57 -0700\r
33 Message-ID: <m3aar3c7hi.fsf@x201s.gr8dns.org>\r
34 MIME-Version: 1.0\r
35 Content-Type: text/plain; charset=us-ascii\r
36 X-SRS-Rewrite: SMTP reverse-path rewritten from <hohndel@infradead.org> by\r
37         bombadil.infradead.org See http://www.infradead.org/rpr.html\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: Thu, 10 Jun 2010 14:03:13 -0000\r
51 \r
52 On Thu, 10 Jun 2010 08:05:13 +0100, David Edmondson <dme@dme.org> wrote:\r
53 > On Wed, 09 Jun 2010 07:49:01 -0700, Dirk Hohndel <hohndel@infradead.org> wrote:\r
54 > > Without this little patch notmuch fails with current git if there's a\r
55 > > saved search that has zero results\r
56\r
57 > How about:\r
58\r
59 > diff --git a/emacs/notmuch-hello.el b/emacs/notmuch-hello.el\r
60 > index a6e8a47..48bb6e3 100644\r
61 > --- a/emacs/notmuch-hello.el\r
62 > +++ b/emacs/notmuch-hello.el\r
63 > @@ -115,6 +115,7 @@ Typically \",\" in the US and UK and \".\" in Europe."\r
64 >      (while (> n 0)\r
65 >        (push (% n 1000) result)\r
66 >        (setq n (/ n 1000)))\r
67 > +    (setq result (or result '(0)))\r
68 >      (apply #'concat\r
69 >       (number-to-string (car result))\r
70 >       (mapcar (lambda (elem)\r
71\r
72 \r
73 Much better. Mine made sense when you looked at it - this one has a much\r
74 more emacs-y feel to it in that I need to stare at it for 30 seconds\r
75 before I can grasp what it does :-)\r
76 \r
77 /D\r
78 \r
79 -- \r
80 Dirk Hohndel\r
81 Intel Open Source Technology Center\r