[notmuch] [PATCH 2/3] Look at whitespace to separate folder name from count

Keith Packard keithp at keithp.com
Sat Dec 26 16:34:17 PST 2009


This allows folder names to contain any non-blank characters

Signed-off-by: Keith Packard <keithp at keithp.com>
---
 notmuch.el |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/notmuch.el b/notmuch.el
index 3dbb64a..c02adc6 100644
--- a/notmuch.el
+++ b/notmuch.el
@@ -1469,8 +1469,8 @@ Currently available key bindings:
   (save-excursion
     (beginning-of-line)
     (let ((beg (point)))
-      (forward-word)
-      (filter-buffer-substring beg (point)))))
+      (re-search-forward "\\([ \t]*[^ \t]+\\)")
+      (filter-buffer-substring (match-beginning 1) (match-end 1)))))
 
 (defun notmuch-folder-show-search (&optional folder)
   "Show a search window for the search related to the specified folder."
-- 
1.6.5.4



More information about the notmuch mailing list