unofficial mirror of notmuch@notmuchmail.org
 help / color / mirror / code / Atom feed
* [PATCH 1/2] emacs: add invisible dot instead of space at the end of notmuch-hello search box
@ 2012-01-17 13:24 Dmitry Kurochkin
  2012-01-17 13:24 ` [PATCH 2/2] emacs: fix typo in notmuch-hello Dmitry Kurochkin
                   ` (2 more replies)
  0 siblings, 3 replies; 16+ messages in thread
From: Dmitry Kurochkin @ 2012-01-17 13:24 UTC (permalink / raw)
  To: notmuch

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

^ permalink raw reply related	[flat|nested] 16+ messages in thread

end of thread, other threads:[~2012-01-21 13:12 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-01-17 13:24 [PATCH 1/2] emacs: add invisible dot instead of space at the end of notmuch-hello search box Dmitry Kurochkin
2012-01-17 13:24 ` [PATCH 2/2] emacs: fix typo in notmuch-hello Dmitry Kurochkin
2012-01-17 14:08 ` [PATCH 1/2] emacs: add invisible dot instead of space at the end of notmuch-hello search box David Edmondson
2012-01-17 14:13   ` Dmitry Kurochkin
2012-01-17 14:25     ` David Edmondson
2012-01-17 15:55 ` [PATCH v2] " Dmitry Kurochkin
2012-01-17 16:04   ` David Edmondson
2012-01-18 13:49   ` Pieter Praet
2012-01-18 15:02   ` Tomi Ollila
2012-01-19 21:31   ` [PATCH] emacs: fix tests wrt notmuch-hello invisible dot Pieter Praet
2012-01-19 22:37     ` Dmitry Kurochkin
2012-01-19 23:50       ` Pieter Praet
2012-01-19 23:52         ` [PATCH v3] emacs: add invisible dot instead of space at the end of notmuch-hello search box Pieter Praet
2012-01-20 11:08           ` Tomi Ollila
2012-01-21 13:12           ` David Bremner
2012-01-20  6:35         ` [PATCH] emacs: fix tests wrt notmuch-hello invisible dot Dmitry Kurochkin

Code repositories for project(s) associated with this public inbox

	https://yhetil.org/notmuch.git/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).