unofficial mirror of notmuch@notmuchmail.org
 help / color / mirror / code / Atom feed
* [PATCH] Better folder name search strategy.
@ 2010-01-30  0:08 Servilio Afre Puentes
  0 siblings, 0 replies; only message in thread
From: Servilio Afre Puentes @ 2010-01-30  0:08 UTC (permalink / raw)
  To: notmuch

This allows the use non-word characters (e.g.: "/") as the folder name
in the notmuch-folders variable.
---
 notmuch.el |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/notmuch.el b/notmuch.el
index 97914f2..bdb0200 100644
--- a/notmuch.el
+++ b/notmuch.el
@@ -1467,7 +1467,9 @@ Currently available key bindings:
   (save-excursion
     (beginning-of-line)
     (let ((beg (point)))
-      (forward-word)
+      (save-match-data
+       (re-search-forward "[ \t]" nil t))
+      (backward-char)
       (filter-buffer-substring beg (point)))))

 (defun notmuch-folder-show-search (&optional folder)
-- 
1.6.5

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2010-01-30  0:08 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-01-30  0:08 [PATCH] Better folder name search strategy Servilio Afre Puentes

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).