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