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 79EBC429E35
\r
6 for <notmuch@notmuchmail.org>; Tue, 17 Jan 2012 05:25:44 -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 rTAXZcVMJiud for <notmuch@notmuchmail.org>;
\r
17 Tue, 17 Jan 2012 05:25:44 -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 8EB7C429E3B
\r
22 for <notmuch@notmuchmail.org>; Tue, 17 Jan 2012 05:25:43 -0800 (PST)
\r
23 Received: by bkty12 with SMTP id y12so530137bkt.26
\r
24 for <notmuch@notmuchmail.org>; Tue, 17 Jan 2012 05:25:42 -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;
\r
27 bh=JpuvGMcroWzL7xgSRy9pOsptK1LIP7mYlOxdniGtB9U=;
\r
28 b=MIEoYEopqRx9yyq/Tr7dD4C1Ugxa3OJ/h5MmpDI0u2ebp/0MU0mp5+zTfkkT4qxp3y
\r
29 LJCg+VOezd+g6EFUwnw02rN/TYaJ0CuJoJP6baVWg/i7PLA44e7LNvmsrBWsCvnNT1Ox
\r
30 WRXHY/F2sFMbNCP6d8f34mThf9E5f3DUNugZg=
\r
31 Received: by 10.205.120.148 with SMTP id fy20mr6663230bkc.125.1326806742237;
\r
32 Tue, 17 Jan 2012 05:25:42 -0800 (PST)
\r
33 Received: from localhost ([91.144.186.21])
\r
34 by mx.google.com with ESMTPS id sp6sm23332392bkb.2.2012.01.17.05.25.41
\r
35 (version=TLSv1/SSLv3 cipher=OTHER);
\r
36 Tue, 17 Jan 2012 05:25:41 -0800 (PST)
\r
37 From: Dmitry Kurochkin <dmitry.kurochkin@gmail.com>
\r
38 To: notmuch@notmuchmail.org
\r
39 Subject: [PATCH 1/2] emacs: add invisible dot instead of space at the end of
\r
40 notmuch-hello search box
\r
41 Date: Tue, 17 Jan 2012 17:24:45 +0400
\r
42 Message-Id: <1326806686-30642-1-git-send-email-dmitry.kurochkin@gmail.com>
\r
43 X-Mailer: git-send-email 1.7.8.3
\r
44 X-BeenThere: notmuch@notmuchmail.org
\r
45 X-Mailman-Version: 2.1.13
\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, 17 Jan 2012 13:25:44 -0000
\r
58 This makes `show-trailing-whitespace' happy, i.e. it does not mark the
\r
59 whole search box line as trailing spaces.
\r
61 Since the dot is invisible, this change makes no visible difference
\r
62 for `notmuch-hello'.
\r
64 emacs/notmuch-hello.el | 4 ++--
\r
65 1 files changed, 2 insertions(+), 2 deletions(-)
\r
67 diff --git a/emacs/notmuch-hello.el b/emacs/notmuch-hello.el
\r
68 index 02017ce..a71f3ce 100644
\r
69 --- a/emacs/notmuch-hello.el
\r
70 +++ b/emacs/notmuch-hello.el
\r
71 @@ -508,9 +508,9 @@ Complete list of currently available key bindings:
\r
72 (length "Search: ")))
\r
73 :action (lambda (widget &rest ignore)
\r
74 (notmuch-hello-search (widget-value widget))))
\r
75 - ;; add an invisible space to make `widget-end-of-line' ignore
\r
76 + ;; add an invisible dot to make `widget-end-of-line' ignore
\r
77 ;; trailine spaces in the search widget field
\r
78 - (widget-insert " ")
\r
79 + (widget-insert ".")
\r
80 (put-text-property (1- (point)) (point) 'invisible t)
\r
81 (widget-insert "\n")
\r