aboutsummaryrefslogtreecommitdiffhomepage
path: root/emacs
diff options
context:
space:
mode:
authorGravatar Carl Worth <cworth@cworth.org>2010-04-26 20:15:45 -0700
committerGravatar Carl Worth <cworth@cworth.org>2010-04-26 20:15:45 -0700
commitca5ae54cb1aa91dc2c3ba9372d70d6fa080851d8 (patch)
treee9b4ff942e2921d460bf094540b0d0daf9780fd1 /emacs
parent7df0e611df9275bf2330bc73895e2d729a157adc (diff)
notmuch-hello: Fix ability to isearch to a saved-search and press RET
After isearching for an entire saved-search name, the point will be immediately after that name in the buffer. Before commit c9ba61bebef7733c4bf12adf94222e57621fdcf6 the space right after the name was part of the widget so the user could press RET right after the isearch to activate the saved search. The above commit broke that functionality. Restore it by including a single space after each name as part of the widget.
Diffstat (limited to 'emacs')
-rw-r--r--emacs/notmuch-hello.el9
1 files changed, 4 insertions, 5 deletions
diff --git a/emacs/notmuch-hello.el b/emacs/notmuch-hello.el
index 936d5466..5d601acf 100644
--- a/emacs/notmuch-hello.el
+++ b/emacs/notmuch-hello.el
@@ -168,14 +168,13 @@ diagonal."
;; (not elem) indicates an empty slot in the matrix.
(when elem
(widget-insert (format "%6s " (notmuch-folder-count (cdr elem))))
- (if (string= (car elem) target)
- (progn
- (setq found-target-pos (point-marker))))
+ (if (string= (format "%s " (car elem)) target)
+ (setq found-target-pos (point-marker)))
(widget-create 'push-button
:notify #'notmuch-hello-widget-search
:notmuch-search-terms (cdr elem)
- (car elem))
- (insert (make-string (- widest (length (car elem))) ? )))
+ (format "%s " (car elem)))
+ (insert (make-string (1- (- widest (length (car elem)))) ? )))
(setq count (1+ count))
(if (eq (% count tags-per-line) 0)
(widget-insert "\n"))))