Re: [PATCH] dump: make dump take Xapian write lock
[notmuch-archives.git] / 49 / 235b5d42fd69e2d5981c7d47b675b023a17df6
1 Return-Path: <dme@dme.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 04E1C409DF8\r
6         for <notmuch@notmuchmail.org>; Wed, 19 May 2010 01:53:55 -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: -1.9\r
10 X-Spam-Level: \r
11 X-Spam-Status: No, score=-1.9 tagged_above=-999 required=5\r
12         tests=[BAYES_00=-1.9, RCVD_IN_DNSWL_NONE=-0.0001] 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 iFpGc1beXrQB for <notmuch@notmuchmail.org>;\r
16         Wed, 19 May 2010 01:53:43 -0700 (PDT)\r
17 Received: from mail-ew0-f213.google.com (mail-ew0-f213.google.com\r
18         [209.85.219.213])\r
19         by olra.theworths.org (Postfix) with ESMTP id DEA914196F2\r
20         for <notmuch@notmuchmail.org>; Wed, 19 May 2010 01:53:42 -0700 (PDT)\r
21 Received: by ewy5 with SMTP id 5so1814149ewy.0\r
22         for <notmuch@notmuchmail.org>; Wed, 19 May 2010 01:53:41 -0700 (PDT)\r
23 Received: by 10.213.57.136 with SMTP id c8mr3261408ebh.5.1274259221225;\r
24         Wed, 19 May 2010 01:53:41 -0700 (PDT)\r
25 Received: from ut.hh.sledj.net (host83-217-165-81.dsl.vispa.com\r
26         [83.217.165.81])\r
27         by mx.google.com with ESMTPS id 16sm3523041ewy.3.2010.05.19.01.53.38\r
28         (version=TLSv1/SSLv3 cipher=RC4-MD5);\r
29         Wed, 19 May 2010 01:53:39 -0700 (PDT)\r
30 Received: by ut.hh.sledj.net (Postfix, from userid 1000)\r
31         id 3F675594099; Wed, 19 May 2010 08:03:45 +0100 (BST)\r
32 From: David Edmondson <dme@dme.org>\r
33 To: notmuch@notmuchmail.org\r
34 Subject: [PATCH 01/13] emacs: Usability improvements for `notmuch-hello'.\r
35 Date: Wed, 19 May 2010 08:03:28 +0100\r
36 Message-Id: <1274252620-1249-2-git-send-email-dme@dme.org>\r
37 X-Mailer: git-send-email 1.7.1\r
38 In-Reply-To: <1274252620-1249-1-git-send-email-dme@dme.org>\r
39 References: <1274252620-1249-1-git-send-email-dme@dme.org>\r
40 X-BeenThere: notmuch@notmuchmail.org\r
41 X-Mailman-Version: 2.1.13\r
42 Precedence: list\r
43 List-Id: "Use and development of the notmuch mail system."\r
44         <notmuch.notmuchmail.org>\r
45 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
46         <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
47 List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
48 List-Post: <mailto:notmuch@notmuchmail.org>\r
49 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
50 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
51         <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
52 X-List-Received-Date: Wed, 19 May 2010 08:53:55 -0000\r
53 \r
54 - If no saved searches exist or are displayed, don't signal an error,\r
55 - If no saved searches exist or are displayed, leave the cursor in the\r
56   search bar,\r
57 - Minor layout improvements.\r
58 ---\r
59  emacs/notmuch-hello.el |   36 +++++++++++++++++++-----------------\r
60  1 files changed, 19 insertions(+), 17 deletions(-)\r
61 \r
62 diff --git a/emacs/notmuch-hello.el b/emacs/notmuch-hello.el\r
63 index 6a1c56e..1358387 100644\r
64 --- a/emacs/notmuch-hello.el\r
65 +++ b/emacs/notmuch-hello.el\r
66 @@ -273,7 +273,7 @@ diagonal."\r
67                                (notmuch-hello-update))\r
68                      :help-echo "Refresh"\r
69                      (car (process-lines notmuch-command "count")))\r
70 -      (widget-insert " messages (that's not much mail).\n\n"))\r
71 +      (widget-insert " messages (that's not much mail).\n"))\r
72  \r
73      (let ((found-target-pos nil)\r
74           (final-target-pos nil))\r
75 @@ -292,7 +292,7 @@ diagonal."\r
76              (widest (max saved-widest alltags-widest)))\r
77  \r
78         (when saved-alist\r
79 -         (widget-insert "Saved searches: ")\r
80 +         (widget-insert "\nSaved searches: ")\r
81           (widget-create 'push-button\r
82                          :notify (lambda (&rest ignore)\r
83                                    (customize-variable 'notmuch-saved-searches))\r
84 @@ -305,18 +305,16 @@ diagonal."\r
85                 (setq final-target-pos found-target-pos))\r
86             (indent-rigidly start (point) notmuch-hello-indent)))\r
87  \r
88 -       (let ((start (point)))\r
89 -         (widget-insert "\nSearch: ")\r
90 -         (setq notmuch-hello-search-bar-marker (point-marker))\r
91 -         (widget-create 'editable-field\r
92 -                        ;; Leave some space at the start and end of the\r
93 -                        ;; search boxes.\r
94 -                        :size (max 8 (- (window-width) (* 2 notmuch-hello-indent)\r
95 -                                        (length "Search: ")))\r
96 -                        :action (lambda (widget &rest ignore)\r
97 -                                  (notmuch-hello-search (widget-value widget))))\r
98 -         (widget-insert "\n")\r
99 -         (indent-rigidly start (point) notmuch-hello-indent))\r
100 +       (widget-insert "\nSearch: ")\r
101 +       (setq notmuch-hello-search-bar-marker (point-marker))\r
102 +       (widget-create 'editable-field\r
103 +                      ;; Leave some space at the start and end of the\r
104 +                      ;; search boxes.\r
105 +                      :size (max 8 (- (window-width) notmuch-hello-indent\r
106 +                                      (length "Search: ")))\r
107 +                      :action (lambda (widget &rest ignore)\r
108 +                                (notmuch-hello-search (widget-value widget))))\r
109 +       (widget-insert "\n")\r
110  \r
111         (when notmuch-hello-recent-searches\r
112           (widget-insert "\nRecent searches: ")\r
113 @@ -408,9 +406,13 @@ diagonal."\r
114  \r
115        (widget-setup)\r
116  \r
117 -      (goto-char final-target-pos)\r
118 -      (if (not (widget-at))\r
119 -         (widget-forward 1)))))\r
120 +      (when final-target-pos\r
121 +       (goto-char final-target-pos)\r
122 +       (unless (widget-at)\r
123 +         (widget-forward 1)))\r
124 +\r
125 +      (unless (widget-at)\r
126 +       (notmuch-hello-goto-search)))))\r
127  \r
128  ;;;###autoload\r
129  (defun notmuch-folder ()\r
130 -- \r
131 1.7.1\r
132 \r