Look at whitespace to separate folder name from count
authorKeith Packard <keithp@keithp.com>
Sun, 27 Dec 2009 00:34:17 +0000 (16:34 -0800)
committerCarl Worth <cworth@cworth.org>
Mon, 8 Feb 2010 22:35:29 +0000 (14:35 -0800)
This allows folder names to contain any non-blank characters

Signed-off-by: Keith Packard <keithp@keithp.com>
notmuch.el

index af45a21a24b5c345682de16786b868f3b736c97b..065ea86f6f18efa8edf5075c4c29c1e21922afab 100644 (file)
@@ -1537,8 +1537,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."