[PATCH 4/4] Update NEWS for user.other_name
[notmuch-archives.git] / 44 / 6b9804c633c38401be57b0e9b8721c490ee870
1 Return-Path: <jani@nikula.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 C2D84429E54\r
6         for <notmuch@notmuchmail.org>; Tue, 28 Jun 2011 00:31:47 -0700 (PDT)\r
7 X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
8 X-Amavis-Alert: BAD HEADER SECTION, Duplicate header field: "References"\r
9 X-Spam-Flag: NO\r
10 X-Spam-Score: -0.7\r
11 X-Spam-Level: \r
12 X-Spam-Status: No, score=-0.7 tagged_above=-999 required=5\r
13         tests=[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 YKWC-XBdIzNI for <notmuch@notmuchmail.org>;\r
17         Tue, 28 Jun 2011 00:31:47 -0700 (PDT)\r
18 Received: from mail-qw0-f53.google.com (mail-qw0-f53.google.com\r
19         [209.85.216.53]) (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 3D976429E4E\r
22         for <notmuch@notmuchmail.org>; Tue, 28 Jun 2011 00:31:47 -0700 (PDT)\r
23 Received: by mail-qw0-f53.google.com with SMTP id 7so3266915qwb.26\r
24         for <notmuch@notmuchmail.org>; Tue, 28 Jun 2011 00:31:47 -0700 (PDT)\r
25 Received: by 10.224.190.130 with SMTP id di2mr5754220qab.177.1309246307047;\r
26         Tue, 28 Jun 2011 00:31:47 -0700 (PDT)\r
27 Received: from localhost (nikula.org [92.243.24.172])\r
28         by mx.google.com with ESMTPS id t21sm4631103qcs.26.2011.06.28.00.31.45\r
29         (version=TLSv1/SSLv3 cipher=OTHER);\r
30         Tue, 28 Jun 2011 00:31:46 -0700 (PDT)\r
31 From: Jani Nikula <jani@nikula.org>\r
32 To: notmuch@notmuchmail.org\r
33 Subject: [PATCH 2/4] emacs: Add option to make adding saved searches append,\r
34         not prepend\r
35 Date: Tue, 28 Jun 2011 07:31:30 +0000\r
36 Message-Id:\r
37  <98912bf031b0a23a703db4be82b24d3d83d5ee9e.1309244829.git.jani@nikula.org>\r
38 X-Mailer: git-send-email 1.7.1\r
39 In-Reply-To: <cover.1309244829.git.jani@nikula.org>\r
40 References: <cover.1309244829.git.jani@nikula.org>\r
41 In-Reply-To: <cover.1309244829.git.jani@nikula.org>\r
42 References: <cover.1309244829.git.jani@nikula.org>\r
43 X-Mailman-Approved-At: Tue, 28 Jun 2011 10:59:27 -0700\r
44 X-BeenThere: notmuch@notmuchmail.org\r
45 X-Mailman-Version: 2.1.13\r
46 Precedence: list\r
47 List-Id: "Use and development of the notmuch mail system."\r
48         <notmuch.notmuchmail.org>\r
49 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
50         <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
51 List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
52 List-Post: <mailto:notmuch@notmuchmail.org>\r
53 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
54 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
55         <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
56 X-List-Received-Date: Tue, 28 Jun 2011 07:31:47 -0000\r
57 \r
58 Add new customization option notmuch-add-saved-search-appends to determine\r
59 whether new saved searches should be appended to or inserted in front of\r
60 saved searches. The default remains insert in front.\r
61 ---\r
62  emacs/notmuch-hello.el |   10 ++++++++--\r
63  1 files changed, 8 insertions(+), 2 deletions(-)\r
64 \r
65 diff --git a/emacs/notmuch-hello.el b/emacs/notmuch-hello.el\r
66 index 65fde75..84bce3a 100644\r
67 --- a/emacs/notmuch-hello.el\r
68 +++ b/emacs/notmuch-hello.el\r
69 @@ -42,6 +42,11 @@\r
70    :type 'boolean\r
71    :group 'notmuch)\r
72  \r
73 +(defcustom notmuch-add-saved-search-appends nil\r
74 +  "Should new saved searches be appended instead of inserted to saved searches?"\r
75 +  :type 'boolean\r
76 +  :group 'notmuch)\r
77 +\r
78  (defvar notmuch-hello-indent 4\r
79    "How much to indent non-headers.")\r
80  \r
81 @@ -168,8 +173,9 @@ Typically \",\" in the US and UK and \".\" in Europe."\r
82                 collect elem))\r
83      ;; Add the new one.\r
84      (customize-save-variable 'notmuch-saved-searches\r
85 -                            (push (cons name search)\r
86 -                                  notmuch-saved-searches))\r
87 +                            (add-to-list 'notmuch-saved-searches\r
88 +                                         (cons name search)\r
89 +                                         notmuch-add-saved-search-appends))\r
90      (message "Saved '%s' as '%s'." search name)\r
91      (notmuch-hello-update)))\r
92  \r
93 -- \r
94 1.7.1\r
95 \r