Return-Path: X-Original-To: notmuch@notmuchmail.org Delivered-To: notmuch@notmuchmail.org Received: from localhost (localhost [127.0.0.1]) by olra.theworths.org (Postfix) with ESMTP id F3064431FBC for ; Sat, 26 Dec 2009 16:34:34 -0800 (PST) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org Received: from olra.theworths.org ([127.0.0.1]) by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id WeeLRYKvYQTG for ; Sat, 26 Dec 2009 16:34:34 -0800 (PST) Received: from keithp.com (home.keithp.com [63.227.221.253]) by olra.theworths.org (Postfix) with ESMTP id E74A8431FAE for ; Sat, 26 Dec 2009 16:34:33 -0800 (PST) Received: from localhost (localhost [127.0.0.1]) by keithp.com (Postfix) with ESMTP id 28A45760145 for ; Sat, 26 Dec 2009 16:34:33 -0800 (PST) X-Virus-Scanned: Debian amavisd-new at keithp.com Received: from keithp.com ([127.0.0.1]) by localhost (keithp.com [127.0.0.1]) (amavisd-new, port 10024) with LMTP id XVcWXPkXgBYn; Sat, 26 Dec 2009 16:34:30 -0800 (PST) Received: by keithp.com (Postfix, from userid 1033) id 439EA760116; Sat, 26 Dec 2009 16:34:30 -0800 (PST) Received: from koto.keithp.com (localhost [127.0.0.1]) by keithp.com (Postfix) with ESMTP id 2ADC2760142; Sat, 26 Dec 2009 16:34:29 -0800 (PST) Received: by koto.keithp.com (Postfix, from userid 1488) id 8874B1381DE; Sat, 26 Dec 2009 16:34:20 -0800 (PST) From: Keith Packard To: notmuch@notmuchmail.org Date: Sat, 26 Dec 2009 16:34:17 -0800 Message-Id: <1261874058-13820-2-git-send-email-keithp@keithp.com> X-Mailer: git-send-email 1.6.5.4 In-Reply-To: <1261874058-13820-1-git-send-email-keithp@keithp.com> References: <1261874058-13820-1-git-send-email-keithp@keithp.com> Subject: [notmuch] [PATCH 2/3] Look at whitespace to separate folder name from count X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: "Use and development of the notmuch mail system." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 27 Dec 2009 00:34:35 -0000 This allows folder names to contain any non-blank characters Signed-off-by: Keith Packard --- 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