Re: [PATCH v7.1 11/11] NEWS: news for reply enhancements
[notmuch-archives.git] / 86 / 65377b7044d51d9bc7b9074d4ab42abfc96371
1 Return-Path: <dmitry.kurochkin@gmail.com>\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 83C7F429E29\r
6         for <notmuch@notmuchmail.org>; Sat, 24 Dec 2011 20:15:54 -0800 (PST)\r
7 X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
8 X-Spam-Flag: NO\r
9 X-Spam-Score: -0.799\r
10 X-Spam-Level: \r
11 X-Spam-Status: No, score=-0.799 tagged_above=-999 required=5\r
12         tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1,\r
13         FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7] autolearn=disabled\r
14 Received: from olra.theworths.org ([127.0.0.1])\r
15         by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)\r
16         with ESMTP id ENAmbnGZBVhP for <notmuch@notmuchmail.org>;\r
17         Sat, 24 Dec 2011 20:15:52 -0800 (PST)\r
18 Received: from mail-we0-f181.google.com (mail-we0-f181.google.com\r
19         [74.125.82.181]) (using TLSv1 with cipher RC4-SHA (128/128 bits))\r
20         (No client certificate requested)\r
21         by olra.theworths.org (Postfix) with ESMTPS id 226F3429E2E\r
22         for <notmuch@notmuchmail.org>; Sat, 24 Dec 2011 20:15:47 -0800 (PST)\r
23 Received: by werm12 with SMTP id m12so5693068wer.26\r
24         for <notmuch@notmuchmail.org>; Sat, 24 Dec 2011 20:15:45 -0800 (PST)\r
25 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma;\r
26         h=from:to:subject:date:message-id:x-mailer:in-reply-to:references;\r
27         bh=n+IsRB/Xe6g6IY25Y8DSHJvLZ/G++7iQLdqTuRmynlI=;\r
28         b=ZxsXSsx75YhXVMSg+1GgZC6sEgmtPL6Rhdvrby1YXAwCH6NGD9c735xTCbs6+wUL+m\r
29         26+hUKmEJ+PQmWX63qpRvP0I0DFp4wJ9nWo0h9d+14pAK9cDbQXBsMqWB4LrnCg0CSQe\r
30         KOR/zYvGlN678HRI93P78VdZgXKWhNfe8N8WM=\r
31 Received: by 10.216.54.212 with SMTP id i62mr16949118wec.22.1324786545863;\r
32         Sat, 24 Dec 2011 20:15:45 -0800 (PST)\r
33 Received: from localhost ([91.144.186.21])\r
34         by mx.google.com with ESMTPS id fi6sm38471272wib.2.2011.12.24.20.15.45\r
35         (version=TLSv1/SSLv3 cipher=OTHER);\r
36         Sat, 24 Dec 2011 20:15:45 -0800 (PST)\r
37 From: Dmitry Kurochkin <dmitry.kurochkin@gmail.com>\r
38 To: notmuch@notmuchmail.org\r
39 Subject: [PATCH 3/4] emacs: hide recent searches if\r
40         `notmuch-hello-recent-searches-max' is zero\r
41 Date: Sun, 25 Dec 2011 08:14:54 +0400\r
42 Message-Id: <1324786495-14221-3-git-send-email-dmitry.kurochkin@gmail.com>\r
43 X-Mailer: git-send-email 1.7.7.3\r
44 In-Reply-To: <1324786495-14221-1-git-send-email-dmitry.kurochkin@gmail.com>\r
45 References: <1324786495-14221-1-git-send-email-dmitry.kurochkin@gmail.com>\r
46 X-BeenThere: notmuch@notmuchmail.org\r
47 X-Mailman-Version: 2.1.13\r
48 Precedence: list\r
49 List-Id: "Use and development of the notmuch mail system."\r
50         <notmuch.notmuchmail.org>\r
51 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
52         <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
53 List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
54 List-Post: <mailto:notmuch@notmuchmail.org>\r
55 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
56 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
57         <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
58 X-List-Received-Date: Sun, 25 Dec 2011 04:15:55 -0000\r
59 \r
60 ---\r
61  emacs/notmuch-hello.el |   13 ++++++++++---\r
62  1 files changed, 10 insertions(+), 3 deletions(-)\r
63 \r
64 diff --git a/emacs/notmuch-hello.el b/emacs/notmuch-hello.el\r
65 index fa33500..6015af4 100644\r
66 --- a/emacs/notmuch-hello.el\r
67 +++ b/emacs/notmuch-hello.el\r
68 @@ -30,7 +30,10 @@\r
69  (declare-function notmuch-poll "notmuch" ())\r
70  \r
71  (defcustom notmuch-hello-recent-searches-max 10\r
72 -  "The number of recent searches to display."\r
73 +  "The number of recent searches to display.\r
74 +\r
75 +Recent searches section is not shown if\r
76 +`notmuch-hello-recent-searches-max' is set to 0."\r
77    :type 'integer\r
78    :group 'notmuch)\r
79  \r
80 @@ -151,6 +154,10 @@ International Bureau of Weights and Measures."\r
81  (defvar notmuch-hello-url "http://notmuchmail.org"\r
82    "The `notmuch' web site.")\r
83  \r
84 +(defun notmuch-hello-show-recent-searches ()\r
85 +  (and (> notmuch-hello-recent-searches-max 0)\r
86 +       notmuch-search-history))\r
87 +\r
88  (defun notmuch-hello-nice-number (n)\r
89    (let (result)\r
90      (while (> n 0)\r
91 @@ -482,7 +489,7 @@ Complete list of currently available key bindings:\r
92                        " Search! ")\r
93         (widget-insert "\n")\r
94  \r
95 -       (when notmuch-search-history\r
96 +       (when (notmuch-hello-show-recent-searches)\r
97           (widget-insert "\nRecent searches: ")\r
98           (widget-create 'push-button\r
99                          :notify (lambda (&rest ignore)\r
100 @@ -549,7 +556,7 @@ Complete list of currently available key bindings:\r
101        (let ((start (point)))\r
102         (widget-insert "\n\n")\r
103         (widget-insert "Use the `search' button or hit `s' to enter search query.\n")\r
104 -       (when notmuch-search-history\r
105 +       (when (notmuch-hello-show-recent-searches)\r
106           (widget-insert "Hit RET to re-submit a previous search. Edit it first if you like.\n")\r
107           (widget-insert "Save recent searches with the `save' button.\n"))\r
108         (when notmuch-saved-searches\r
109 -- \r
110 1.7.7.3\r
111 \r