[PATCH 1/2] emacs: add invisible dot instead of space at the end of notmuch-hello...
authorDmitry Kurochkin <dmitry.kurochkin@gmail.com>
Tue, 17 Jan 2012 13:24:45 +0000 (17:24 +0400)
committerW. Trevor King <wking@tremily.us>
Fri, 7 Nov 2014 17:42:25 +0000 (09:42 -0800)
f8/be64122db4bcd2fc9a74bb1bfd660a306816f4 [new file with mode: 0644]

diff --git a/f8/be64122db4bcd2fc9a74bb1bfd660a306816f4 b/f8/be64122db4bcd2fc9a74bb1bfd660a306816f4
new file mode 100644 (file)
index 0000000..72a3803
--- /dev/null
@@ -0,0 +1,85 @@
+Return-Path: <dmitry.kurochkin@gmail.com>\r
+X-Original-To: notmuch@notmuchmail.org\r
+Delivered-To: notmuch@notmuchmail.org\r
+Received: from localhost (localhost [127.0.0.1])\r
+       by olra.theworths.org (Postfix) with ESMTP id 79EBC429E35\r
+       for <notmuch@notmuchmail.org>; Tue, 17 Jan 2012 05:25:44 -0800 (PST)\r
+X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
+X-Spam-Flag: NO\r
+X-Spam-Score: -0.799\r
+X-Spam-Level: \r
+X-Spam-Status: No, score=-0.799 tagged_above=-999 required=5\r
+       tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1,\r
+       FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7] autolearn=disabled\r
+Received: from olra.theworths.org ([127.0.0.1])\r
+       by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)\r
+       with ESMTP id rTAXZcVMJiud for <notmuch@notmuchmail.org>;\r
+       Tue, 17 Jan 2012 05:25:44 -0800 (PST)\r
+Received: from mail-bk0-f53.google.com (mail-bk0-f53.google.com\r
+       [209.85.214.53]) (using TLSv1 with cipher RC4-SHA (128/128 bits))\r
+       (No client certificate requested)\r
+       by olra.theworths.org (Postfix) with ESMTPS id 8EB7C429E3B\r
+       for <notmuch@notmuchmail.org>; Tue, 17 Jan 2012 05:25:43 -0800 (PST)\r
+Received: by bkty12 with SMTP id y12so530137bkt.26\r
+       for <notmuch@notmuchmail.org>; Tue, 17 Jan 2012 05:25:42 -0800 (PST)\r
+DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma;\r
+       h=from:to:subject:date:message-id:x-mailer;\r
+       bh=JpuvGMcroWzL7xgSRy9pOsptK1LIP7mYlOxdniGtB9U=;\r
+       b=MIEoYEopqRx9yyq/Tr7dD4C1Ugxa3OJ/h5MmpDI0u2ebp/0MU0mp5+zTfkkT4qxp3y\r
+       LJCg+VOezd+g6EFUwnw02rN/TYaJ0CuJoJP6baVWg/i7PLA44e7LNvmsrBWsCvnNT1Ox\r
+       WRXHY/F2sFMbNCP6d8f34mThf9E5f3DUNugZg=\r
+Received: by 10.205.120.148 with SMTP id fy20mr6663230bkc.125.1326806742237;\r
+       Tue, 17 Jan 2012 05:25:42 -0800 (PST)\r
+Received: from localhost ([91.144.186.21])\r
+       by mx.google.com with ESMTPS id sp6sm23332392bkb.2.2012.01.17.05.25.41\r
+       (version=TLSv1/SSLv3 cipher=OTHER);\r
+       Tue, 17 Jan 2012 05:25:41 -0800 (PST)\r
+From: Dmitry Kurochkin <dmitry.kurochkin@gmail.com>\r
+To: notmuch@notmuchmail.org\r
+Subject: [PATCH 1/2] emacs: add invisible dot instead of space at the end of\r
+       notmuch-hello search box\r
+Date: Tue, 17 Jan 2012 17:24:45 +0400\r
+Message-Id: <1326806686-30642-1-git-send-email-dmitry.kurochkin@gmail.com>\r
+X-Mailer: git-send-email 1.7.8.3\r
+X-BeenThere: notmuch@notmuchmail.org\r
+X-Mailman-Version: 2.1.13\r
+Precedence: list\r
+List-Id: "Use and development of the notmuch mail system."\r
+       <notmuch.notmuchmail.org>\r
+List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
+       <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
+List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
+List-Post: <mailto:notmuch@notmuchmail.org>\r
+List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
+List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
+       <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
+X-List-Received-Date: Tue, 17 Jan 2012 13:25:44 -0000\r
+\r
+This makes `show-trailing-whitespace' happy, i.e. it does not mark the\r
+whole search box line as trailing spaces.\r
+\r
+Since the dot is invisible, this change makes no visible difference\r
+for `notmuch-hello'.\r
+---\r
+ emacs/notmuch-hello.el |    4 ++--\r
+ 1 files changed, 2 insertions(+), 2 deletions(-)\r
+\r
+diff --git a/emacs/notmuch-hello.el b/emacs/notmuch-hello.el\r
+index 02017ce..a71f3ce 100644\r
+--- a/emacs/notmuch-hello.el\r
++++ b/emacs/notmuch-hello.el\r
+@@ -508,9 +508,9 @@ Complete list of currently available key bindings:\r
+                                      (length "Search: ")))\r
+                      :action (lambda (widget &rest ignore)\r
+                                (notmuch-hello-search (widget-value widget))))\r
+-      ;; add an invisible space to make `widget-end-of-line' ignore\r
++      ;; add an invisible dot to make `widget-end-of-line' ignore\r
+       ;; trailine spaces in the search widget field\r
+-      (widget-insert " ")\r
++      (widget-insert ".")\r
+       (put-text-property (1- (point)) (point) 'invisible t)\r
+       (widget-insert "\n")\r
\r
+-- \r
+1.7.8.3\r
+\r