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 EDF38429E27
\r
6 for <notmuch@notmuchmail.org>; Sat, 24 Dec 2011 20:15:53 -0800 (PST)
\r
7 X-Virus-Scanned: Debian amavisd-new at olra.theworths.org
\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 sayqKsXTXeui for <notmuch@notmuchmail.org>;
\r
17 Sat, 24 Dec 2011 20:15:52 -0800 (PST)
\r
18 Received: from mail-wi0-f181.google.com (mail-wi0-f181.google.com
\r
19 [209.85.212.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 49C22429E29
\r
22 for <notmuch@notmuchmail.org>; Sat, 24 Dec 2011 20:15:46 -0800 (PST)
\r
23 Received: by wibhq2 with SMTP id hq2so4722824wib.26
\r
24 for <notmuch@notmuchmail.org>; Sat, 24 Dec 2011 20:15:43 -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=L55ejy2cluWKfrpItMtg/es2ayDSjsw3HY4JqyMVGJU=;
\r
28 b=eXiW+AXpZr0LHH8pKEHlYA+oyD4cB7JL5KGZgmk2OBFrDzZOhQnZ6B60s1lG+z75U0
\r
29 MZsrAamwwFnC/PRjLm09o0K0ESW8Gddups0dWpiQNUY/etQbqgRNrVvsuQCjccsYdSOM
\r
30 ZQjS9MNcCId3Y6VaDIkpdRChI5ss/PMLCq+j8=
\r
31 Received: by 10.180.107.134 with SMTP id hc6mr41615869wib.21.1324786543802;
\r
32 Sat, 24 Dec 2011 20:15:43 -0800 (PST)
\r
33 Received: from localhost ([91.144.186.21])
\r
34 by mx.google.com with ESMTPS id fk3sm19522077wbb.10.2011.12.24.20.15.42
\r
35 (version=TLSv1/SSLv3 cipher=OTHER);
\r
36 Sat, 24 Dec 2011 20:15:43 -0800 (PST)
\r
37 From: Dmitry Kurochkin <dmitry.kurochkin@gmail.com>
\r
38 To: notmuch@notmuchmail.org
\r
39 Subject: [PATCH 2/4] emacs: reindent `notmuch-hello' function
\r
40 Date: Sun, 25 Dec 2011 08:14:53 +0400
\r
41 Message-Id: <1324786495-14221-2-git-send-email-dmitry.kurochkin@gmail.com>
\r
42 X-Mailer: git-send-email 1.7.7.3
\r
43 In-Reply-To: <1324786495-14221-1-git-send-email-dmitry.kurochkin@gmail.com>
\r
44 References: <1324786495-14221-1-git-send-email-dmitry.kurochkin@gmail.com>
\r
45 X-BeenThere: notmuch@notmuchmail.org
\r
46 X-Mailman-Version: 2.1.13
\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: Sun, 25 Dec 2011 04:15:54 -0000
\r
59 Reindent `notmuch-hello' function after the search history changes.
\r
61 emacs/notmuch-hello.el | 56 ++++++++++++++++++++++++------------------------
\r
62 1 files changed, 28 insertions(+), 28 deletions(-)
\r
64 diff --git a/emacs/notmuch-hello.el b/emacs/notmuch-hello.el
\r
65 index eb08a09..fa33500 100644
\r
66 --- a/emacs/notmuch-hello.el
\r
67 +++ b/emacs/notmuch-hello.el
\r
68 @@ -493,34 +493,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-search-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
79 - ;; Leave some space
\r
80 - ;; at the start and
\r
83 - (* 2 notmuch-hello-indent)
\r
84 - ;; 1 for the space
\r
86 - ;; `[save]' button. 6
\r
87 - ;; for the `[save]'
\r
90 - :action (lambda (widget &rest ignore)
\r
91 - (notmuch-hello-search (widget-value widget)))
\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
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
106 + (- (window-width)
\r
107 + ;; Leave some space
\r
108 + ;; at the start and
\r
111 + (* 2 notmuch-hello-indent)
\r
112 + ;; 1 for the space
\r
114 + ;; `[save]' button. 6
\r
115 + ;; for the `[save]'
\r
118 + :action (lambda (widget &rest ignore)
\r
119 + (notmuch-hello-search (widget-value widget)))
\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
127 + (widget-insert "\n"))
\r
128 (indent-rigidly start (point) notmuch-hello-indent)))
\r
130 (when alltags-alist
\r