From: Keith Packard Date: Sun, 27 Dec 2009 00:34:17 +0000 (-0800) Subject: Look at whitespace to separate folder name from count X-Git-Tag: 0.1~100 X-Git-Url: https://git.notmuchmail.org/git?p=notmuch;a=commitdiff_plain;h=b16a767f51441471178eebeeef8496843cee59e5;hp=b58dcfb7026e7bc5dbc9c2333d07dcb11a9975aa Look at whitespace to separate folder name from count This allows folder names to contain any non-blank characters Signed-off-by: Keith Packard --- diff --git a/notmuch.el b/notmuch.el index af45a21a..065ea86f 100644 --- a/notmuch.el +++ b/notmuch.el @@ -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."