[PATCH 1/2] emacs: add invisible dot instead of space at the end of notmuch-hello search box

Dmitry Kurochkin dmitry.kurochkin at gmail.com
Tue Jan 17 05:24:45 PST 2012


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



More information about the notmuch mailing list