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 CB016431FBC
\r
6 for <notmuch@notmuchmail.org>; Thu, 8 Mar 2012 23:36:27 -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 hzpoRtlagdTV for <notmuch@notmuchmail.org>;
\r
17 Thu, 8 Mar 2012 23:36:27 -0800 (PST)
\r
18 Received: from mail-bk0-f53.google.com (mail-bk0-f53.google.com
\r
19 [209.85.214.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 233B3431FAE
\r
22 for <notmuch@notmuchmail.org>; Thu, 8 Mar 2012 23:36:26 -0800 (PST)
\r
23 Received: by mail-bk0-f53.google.com with SMTP id j4so1103545bkw.26
\r
24 for <notmuch@notmuchmail.org>; Thu, 08 Mar 2012 23:36:26 -0800 (PST)
\r
25 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;
\r
26 h=from:to:subject:date:message-id:x-mailer:in-reply-to:references;
\r
27 bh=+RQYjmMnB/9+q0O5IZ7OOca/RVo5yq/l1IAdZedn7oU=;
\r
28 b=ovuggsm2lRa3BKU5UdcKDB9CK268Q7H5nKIlRkCLTFb5InhE37fbz7X103+23les2M
\r
29 0GUOSobfAo9c6FNa9pWm8dm5/y1RP3QpNYURG6cZyjeLnTM5Gz9VZAV4e4FK3zk/C3jy
\r
30 zYenm3hDW0pWHGtAybp3IFONzaB4TCsr3uIPDdGtcmqi1flfQFCHSPqrtYHuwl1KIJQw
\r
31 HD/ryBHIz7Nnb9VhhQR6wqvYNcVmfK87DcmFISR7/Yuyz5RMSl/r5mBuVMm4j9HVJXmG
\r
32 K/nEBJF02HhwZwe8ehHgewZxJ+Gz6C5kO3yQwa09uxcdi77N9jkz2QzuHs/AyBWmWLHr
\r
34 Received: by 10.204.130.76 with SMTP id r12mr454490bks.80.1331278586775;
\r
35 Thu, 08 Mar 2012 23:36:26 -0800 (PST)
\r
36 Received: from localhost ([91.144.186.21])
\r
37 by mx.google.com with ESMTPS id jc4sm7572092bkc.7.2012.03.08.23.36.25
\r
38 (version=TLSv1/SSLv3 cipher=OTHER);
\r
39 Thu, 08 Mar 2012 23:36:26 -0800 (PST)
\r
40 From: Dmitry Kurochkin <dmitry.kurochkin@gmail.com>
\r
41 To: notmuch@notmuchmail.org
\r
42 Subject: [PATCH 2/2] emacs: fix off-by-one error in notmuch-hello column
\r
44 Date: Fri, 9 Mar 2012 11:34:53 +0400
\r
45 Message-Id: <1331278493-16996-2-git-send-email-dmitry.kurochkin@gmail.com>
\r
46 X-Mailer: git-send-email 1.7.9.1
\r
47 In-Reply-To: <1331278493-16996-1-git-send-email-dmitry.kurochkin@gmail.com>
\r
48 References: <1331278493-16996-1-git-send-email-dmitry.kurochkin@gmail.com>
\r
49 X-BeenThere: notmuch@notmuchmail.org
\r
50 X-Mailman-Version: 2.1.13
\r
52 List-Id: "Use and development of the notmuch mail system."
\r
53 <notmuch.notmuchmail.org>
\r
54 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,
\r
55 <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>
\r
56 List-Archive: <http://notmuchmail.org/pipermail/notmuch>
\r
57 List-Post: <mailto:notmuch@notmuchmail.org>
\r
58 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>
\r
59 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,
\r
60 <mailto:notmuch-request@notmuchmail.org?subject=subscribe>
\r
61 X-List-Received-Date: Fri, 09 Mar 2012 07:36:27 -0000
\r
63 Expected results for few tests are fixed, the relevant test is
\r
66 emacs/notmuch-hello.el | 2 +-
\r
67 test/emacs-hello | 1 -
\r
68 .../notmuch-hello-new-section | 2 +-
\r
69 .../notmuch-hello-section-with-empty | 2 +-
\r
70 4 files changed, 3 insertions(+), 4 deletions(-)
\r
72 diff --git a/emacs/notmuch-hello.el b/emacs/notmuch-hello.el
\r
73 index e9caade..28f39f1 100644
\r
74 --- a/emacs/notmuch-hello.el
\r
75 +++ b/emacs/notmuch-hello.el
\r
76 @@ -461,7 +461,7 @@ Such a list can be computed with `notmuch-hello-query-counts'."
\r
77 ;; just insert `(- widest (length name))' spaces - the
\r
78 ;; column separator is included in the button if
\r
79 ;; `(equal widest (length name)'.
\r
80 - (widget-insert (make-string (max 1
\r
81 + (widget-insert (make-string (max 0
\r
82 (- widest (length name)))
\r
84 (setq count (1+ count))
\r
85 diff --git a/test/emacs-hello b/test/emacs-hello
\r
86 index 9e5d045..be66ba4 100755
\r
87 --- a/test/emacs-hello
\r
88 +++ b/test/emacs-hello
\r
89 @@ -45,7 +45,6 @@ test_emacs "(let ((notmuch-hello-sections
\r
90 test_expect_equal_file OUTPUT $EXPECTED/notmuch-hello-section-counts
\r
92 test_begin_subtest "Column alignment for tag/queries with long names"
\r
93 -test_subtest_known_broken
\r
94 tag=a-very-long-tag # length carefully calculated for 80 characters window width
\r
95 notmuch tag +$tag '*'
\r
96 test_emacs '(notmuch-hello)
\r
97 diff --git a/test/emacs.expected-output/notmuch-hello-new-section b/test/emacs.expected-output/notmuch-hello-new-section
\r
98 index c64d712..6a339aa 100644
\r
99 --- a/test/emacs.expected-output/notmuch-hello-new-section
\r
100 +++ b/test/emacs.expected-output/notmuch-hello-new-section
\r
107 diff --git a/test/emacs.expected-output/notmuch-hello-section-with-empty b/test/emacs.expected-output/notmuch-hello-section-with-empty
\r
108 index 8209fed..dc2568d 100644
\r
109 --- a/test/emacs.expected-output/notmuch-hello-section-with-empty
\r
110 +++ b/test/emacs.expected-output/notmuch-hello-section-with-empty
\r
112 Test-with-empty: [hide]
\r