1 Return-Path: <pieter@praet.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 D5FD9431FAF
\r
6 for <notmuch@notmuchmail.org>; Wed, 18 Jan 2012 05:51:12 -0800 (PST)
\r
7 X-Virus-Scanned: Debian amavisd-new at olra.theworths.org
\r
11 X-Spam-Status: No, score=-0.7 tagged_above=-999 required=5
\r
12 tests=[RCVD_IN_DNSWL_LOW=-0.7] autolearn=disabled
\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 v24q-bMKcu6E for <notmuch@notmuchmail.org>;
\r
16 Wed, 18 Jan 2012 05:51:12 -0800 (PST)
\r
17 Received: from mail-wi0-f181.google.com (mail-wi0-f181.google.com
\r
18 [209.85.212.181]) (using TLSv1 with cipher RC4-SHA (128/128 bits))
\r
19 (No client certificate requested)
\r
20 by olra.theworths.org (Postfix) with ESMTPS id 4B1B1431FAE
\r
21 for <notmuch@notmuchmail.org>; Wed, 18 Jan 2012 05:51:12 -0800 (PST)
\r
22 Received: by wibhr12 with SMTP id hr12so4428456wib.26
\r
23 for <notmuch@notmuchmail.org>; Wed, 18 Jan 2012 05:51:11 -0800 (PST)
\r
24 Received: by 10.180.94.102 with SMTP id db6mr36556814wib.0.1326894671176;
\r
25 Wed, 18 Jan 2012 05:51:11 -0800 (PST)
\r
26 Received: from localhost ([109.131.97.13])
\r
27 by mx.google.com with ESMTPS id q7sm22567271wix.5.2012.01.18.05.51.10
\r
28 (version=TLSv1/SSLv3 cipher=OTHER);
\r
29 Wed, 18 Jan 2012 05:51:10 -0800 (PST)
\r
30 From: Pieter Praet <pieter@praet.org>
\r
31 To: Dmitry Kurochkin <dmitry.kurochkin@gmail.com>, notmuch@notmuchmail.org
\r
32 Subject: Re: [PATCH v2] emacs: add invisible dot instead of space at the end
\r
33 of notmuch-hello search box
\r
34 In-Reply-To: <1326815734-20421-1-git-send-email-dmitry.kurochkin@gmail.com>
\r
35 References: <1326806686-30642-1-git-send-email-dmitry.kurochkin@gmail.com>
\r
36 <1326815734-20421-1-git-send-email-dmitry.kurochkin@gmail.com>
\r
37 User-Agent: Notmuch/0.11+86~g67f4140 (http://notmuchmail.org) Emacs/23.3.1
\r
38 (x86_64-unknown-linux-gnu)
\r
39 Date: Wed, 18 Jan 2012 14:49:27 +0100
\r
40 Message-ID: <87mx9lp1co.fsf@praet.org>
\r
42 Content-Type: text/plain; charset=us-ascii
\r
43 X-BeenThere: notmuch@notmuchmail.org
\r
44 X-Mailman-Version: 2.1.13
\r
46 List-Id: "Use and development of the notmuch mail system."
\r
47 <notmuch.notmuchmail.org>
\r
48 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,
\r
49 <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>
\r
50 List-Archive: <http://notmuchmail.org/pipermail/notmuch>
\r
51 List-Post: <mailto:notmuch@notmuchmail.org>
\r
52 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>
\r
53 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,
\r
54 <mailto:notmuch-request@notmuchmail.org?subject=subscribe>
\r
55 X-List-Received-Date: Wed, 18 Jan 2012 13:51:13 -0000
\r
57 On Tue, 17 Jan 2012 19:55:34 +0400, Dmitry Kurochkin <dmitry.kurochkin@gmail.com> wrote:
\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 | 9 ++++++---
\r
65 > 1 files changed, 6 insertions(+), 3 deletions(-)
\r
67 > diff --git a/emacs/notmuch-hello.el b/emacs/notmuch-hello.el
\r
68 > index 02017ce..38846ef 100644
\r
69 > --- a/emacs/notmuch-hello.el
\r
70 > +++ b/emacs/notmuch-hello.el
\r
71 > @@ -508,9 +508,12 @@ 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 > - ;; trailine spaces in the search widget field
\r
77 > - (widget-insert " ")
\r
78 > + ;; Add an invisible dot to make `widget-end-of-line' ignore
\r
79 > + ;; trailing spaces in the search widget field. A dot is used
\r
80 > + ;; instead of a space to make `show-trailing-whitespace'
\r
81 > + ;; happy, i.e. avoid it marking the whole line as trailing
\r
83 > + (widget-insert ".")
\r
84 > (put-text-property (1- (point)) (point) 'invisible t)
\r
85 > (widget-insert "\n")
\r
90 > _______________________________________________
\r
91 > notmuch mailing list
\r
92 > notmuch@notmuchmail.org
\r
93 > http://notmuchmail.org/mailman/listinfo/notmuch
\r