[notmuch] [PATCH 2/3] Look at whitespace to separate folder name from count
authorKeith Packard <keithp@keithp.com>
Sun, 27 Dec 2009 00:34:17 +0000 (16:34 +1600)
committerW. Trevor King <wking@tremily.us>
Fri, 7 Nov 2014 17:35:56 +0000 (09:35 -0800)
11/284edebea0a89bcc807a8ac21b00efd00edd7d [new file with mode: 0644]

diff --git a/11/284edebea0a89bcc807a8ac21b00efd00edd7d b/11/284edebea0a89bcc807a8ac21b00efd00edd7d
new file mode 100644 (file)
index 0000000..0e71c4e
--- /dev/null
@@ -0,0 +1,76 @@
+Return-Path: <keithp@keithp.com>\r
+X-Original-To: notmuch@notmuchmail.org\r
+Delivered-To: notmuch@notmuchmail.org\r
+Received: from localhost (localhost [127.0.0.1])\r
+       by olra.theworths.org (Postfix) with ESMTP id F3064431FBC\r
+       for <notmuch@notmuchmail.org>; Sat, 26 Dec 2009 16:34:34 -0800 (PST)\r
+X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
+Received: from olra.theworths.org ([127.0.0.1])\r
+       by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)\r
+       with ESMTP id WeeLRYKvYQTG for <notmuch@notmuchmail.org>;\r
+       Sat, 26 Dec 2009 16:34:34 -0800 (PST)\r
+Received: from keithp.com (home.keithp.com [63.227.221.253])\r
+       by olra.theworths.org (Postfix) with ESMTP id E74A8431FAE\r
+       for <notmuch@notmuchmail.org>; Sat, 26 Dec 2009 16:34:33 -0800 (PST)\r
+Received: from localhost (localhost [127.0.0.1])\r
+       by keithp.com (Postfix) with ESMTP id 28A45760145\r
+       for <notmuch@notmuchmail.org>; Sat, 26 Dec 2009 16:34:33 -0800 (PST)\r
+X-Virus-Scanned: Debian amavisd-new at keithp.com\r
+Received: from keithp.com ([127.0.0.1])\r
+       by localhost (keithp.com [127.0.0.1]) (amavisd-new, port 10024)\r
+       with LMTP id XVcWXPkXgBYn; Sat, 26 Dec 2009 16:34:30 -0800 (PST)\r
+Received: by keithp.com (Postfix, from userid 1033)\r
+       id 439EA760116; Sat, 26 Dec 2009 16:34:30 -0800 (PST)\r
+Received: from koto.keithp.com (localhost [127.0.0.1])\r
+       by keithp.com (Postfix) with ESMTP id 2ADC2760142;\r
+       Sat, 26 Dec 2009 16:34:29 -0800 (PST)\r
+Received: by koto.keithp.com (Postfix, from userid 1488)\r
+       id 8874B1381DE; Sat, 26 Dec 2009 16:34:20 -0800 (PST)\r
+From: Keith Packard <keithp@keithp.com>\r
+To: notmuch@notmuchmail.org\r
+Date: Sat, 26 Dec 2009 16:34:17 -0800\r
+Message-Id: <1261874058-13820-2-git-send-email-keithp@keithp.com>\r
+X-Mailer: git-send-email 1.6.5.4\r
+In-Reply-To: <1261874058-13820-1-git-send-email-keithp@keithp.com>\r
+References: <1261874058-13820-1-git-send-email-keithp@keithp.com>\r
+Subject: [notmuch] [PATCH 2/3] Look at whitespace to separate folder name\r
+       from count\r
+X-BeenThere: notmuch@notmuchmail.org\r
+X-Mailman-Version: 2.1.12\r
+Precedence: list\r
+List-Id: "Use and development of the notmuch mail system."\r
+       <notmuch.notmuchmail.org>\r
+List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
+       <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
+List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
+List-Post: <mailto:notmuch@notmuchmail.org>\r
+List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
+List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
+       <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
+X-List-Received-Date: Sun, 27 Dec 2009 00:34:35 -0000\r
+\r
+This allows folder names to contain any non-blank characters\r
+\r
+Signed-off-by: Keith Packard <keithp@keithp.com>\r
+---\r
+ notmuch.el |    4 ++--\r
+ 1 files changed, 2 insertions(+), 2 deletions(-)\r
+\r
+diff --git a/notmuch.el b/notmuch.el\r
+index 3dbb64a..c02adc6 100644\r
+--- a/notmuch.el\r
++++ b/notmuch.el\r
+@@ -1469,8 +1469,8 @@ Currently available key bindings:\r
+   (save-excursion\r
+     (beginning-of-line)\r
+     (let ((beg (point)))\r
+-      (forward-word)\r
+-      (filter-buffer-substring beg (point)))))\r
++      (re-search-forward "\\([ \t]*[^ \t]+\\)")\r
++      (filter-buffer-substring (match-beginning 1) (match-end 1)))))\r
\r
+ (defun notmuch-folder-show-search (&optional folder)\r
+   "Show a search window for the search related to the specified folder."\r
+-- \r
+1.6.5.4\r
+\r