Re: notmuch-vim doesn't respect notmuch config defaults
[notmuch-archives.git] / 90 / a4db0d9874b4ae79fb4dbf6e0485ecc899ae90
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 B0BC7429E43\r
6         for <notmuch@notmuchmail.org>; Fri, 23 Dec 2011 19:48:06 -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 PnTLfQ0T7UBT for <notmuch@notmuchmail.org>;\r
17         Fri, 23 Dec 2011 19:48:05 -0800 (PST)\r
18 Received: from mail-ww0-f45.google.com (mail-ww0-f45.google.com\r
19  [74.125.82.45])        (using TLSv1 with cipher RC4-SHA (128/128 bits))        (No client\r
20  certificate requested) by olra.theworths.org (Postfix) with ESMTPS id\r
21  87765429E3D    for <notmuch@notmuchmail.org>; Fri, 23 Dec 2011 19:48:03 -0800\r
22  (PST)\r
23 Received: by wgbds13 with SMTP id ds13so14931710wgb.2\r
24         for <notmuch@notmuchmail.org>; Fri, 23 Dec 2011 19:48:02 -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=zeRY411+RfvF/iQyQ1YKbWQWXtx6KuXM6QqUJ3L1bgk=;\r
28         b=dxFEfJGApmhokYXsIKv0pseYakCBrBhRxvbfsUtJZ8GFDGwUbb4ilFwEUPSlrcUZWR\r
29         Pmr2UQKK31jyck9eq8G2MIIOnmcbL+sMmKYzm+BsBEfwvZgJUmeUtVdGlaXJS1cgf4xb\r
30         PVKT4hAKn2bc4gmxSzpCoRRaf3TaqWYR1N36I=\r
31 Received: by 10.227.198.19 with SMTP id em19mr20697737wbb.14.1324698482349;\r
32         Fri, 23 Dec 2011 19:48:02 -0800 (PST)\r
33 Received: from localhost ([91.144.186.21])\r
34         by mx.google.com with ESMTPS id fy5sm36936302wib.7.2011.12.23.19.48.01\r
35         (version=TLSv1/SSLv3 cipher=OTHER);\r
36         Fri, 23 Dec 2011 19:48:01 -0800 (PST)\r
37 From: Dmitry Kurochkin <dmitry.kurochkin@gmail.com>\r
38 To: notmuch@notmuchmail.org\r
39 Subject: [PATCH 2/3] emacs: reindent `notmuch-hello' function\r
40 Date: Sat, 24 Dec 2011 07:47:15 +0400\r
41 Message-Id: <1324698436-8532-2-git-send-email-dmitry.kurochkin@gmail.com>\r
42 X-Mailer: git-send-email 1.7.7.3\r
43 In-Reply-To: <1324698436-8532-1-git-send-email-dmitry.kurochkin@gmail.com>\r
44 References: <1324698436-8532-1-git-send-email-dmitry.kurochkin@gmail.com>\r
45 X-BeenThere: notmuch@notmuchmail.org\r
46 X-Mailman-Version: 2.1.13\r
47 Precedence: list\r
48 List-Id: "Use and development of the notmuch mail system."\r
49         <notmuch.notmuchmail.org>\r
50 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
51         <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
52 List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
53 List-Post: <mailto:notmuch@notmuchmail.org>\r
54 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
55 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
56         <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
57 X-List-Received-Date: Sat, 24 Dec 2011 03:48:07 -0000\r
58 \r
59 Reindent `notmuch-hello' function after the search history changes.\r
60 ---\r
61  emacs/notmuch-hello.el |   56 ++++++++++++++++++++++++------------------------\r
62  1 files changed, 28 insertions(+), 28 deletions(-)\r
63 \r
64 diff --git a/emacs/notmuch-hello.el b/emacs/notmuch-hello.el\r
65 index ba34ac5..0922821 100644\r
66 --- a/emacs/notmuch-hello.el\r
67 +++ b/emacs/notmuch-hello.el\r
68 @@ -520,34 +520,34 @@ Complete list of currently available key bindings:\r
69           (let ((start (point)))\r
70             (loop for i from 1 to notmuch-hello-recent-searches-max\r
71                   for search in notmuch-query-history do\r
72 -                   (let ((widget-symbol (intern (format "notmuch-hello-search-%d" i))))\r
73 -                     (set widget-symbol\r
74 -                          (widget-create 'editable-field\r
75 -                                         ;; Don't let the search boxes be\r
76 -                                         ;; less than 8 characters wide.\r
77 -                                         :size (max 8\r
78 -                                                    (- (window-width)\r
79 -                                                       ;; Leave some space\r
80 -                                                       ;; at the start and\r
81 -                                                       ;; end of the\r
82 -                                                       ;; boxes.\r
83 -                                                       (* 2 notmuch-hello-indent)\r
84 -                                                       ;; 1 for the space\r
85 -                                                       ;; before the\r
86 -                                                       ;; `[save]' button. 6\r
87 -                                                       ;; for the `[save]'\r
88 -                                                       ;; button.\r
89 -                                                       1 6))\r
90 -                                         :action (lambda (widget &rest ignore)\r
91 -                                                   (notmuch-hello-search (widget-value widget)))\r
92 -                                         search))\r
93 -                     (widget-insert " ")\r
94 -                     (widget-create 'push-button\r
95 -                                    :notify (lambda (widget &rest ignore)\r
96 -                                              (notmuch-hello-add-saved-search widget))\r
97 -                                    :notmuch-saved-search-widget widget-symbol\r
98 -                                    "save"))\r
99 -                   (widget-insert "\n"))\r
100 +                 (let ((widget-symbol (intern (format "notmuch-hello-search-%d" i))))\r
101 +                   (set widget-symbol\r
102 +                        (widget-create 'editable-field\r
103 +                                       ;; Don't let the search boxes be\r
104 +                                       ;; less than 8 characters wide.\r
105 +                                       :size (max 8\r
106 +                                                  (- (window-width)\r
107 +                                                     ;; Leave some space\r
108 +                                                     ;; at the start and\r
109 +                                                     ;; end of the\r
110 +                                                     ;; boxes.\r
111 +                                                     (* 2 notmuch-hello-indent)\r
112 +                                                     ;; 1 for the space\r
113 +                                                     ;; before the\r
114 +                                                     ;; `[save]' button. 6\r
115 +                                                     ;; for the `[save]'\r
116 +                                                     ;; button.\r
117 +                                                     1 6))\r
118 +                                       :action (lambda (widget &rest ignore)\r
119 +                                                 (notmuch-hello-search (widget-value widget)))\r
120 +                                       search))\r
121 +                   (widget-insert " ")\r
122 +                   (widget-create 'push-button\r
123 +                                  :notify (lambda (widget &rest ignore)\r
124 +                                            (notmuch-hello-add-saved-search widget))\r
125 +                                  :notmuch-saved-search-widget widget-symbol\r
126 +                                  "save"))\r
127 +                 (widget-insert "\n"))\r
128             (indent-rigidly start (point) notmuch-hello-indent)))\r
129  \r
130         (when alltags-alist\r
131 -- \r
132 1.7.7.3\r
133 \r