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 E5F044196F6 for ; Fri, 29 Jan 2010 16:08:49 -0800 (PST) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org X-Spam-Flag: NO X-Spam-Score: -0.742 X-Spam-Level: X-Spam-Status: No, score=-0.742 tagged_above=-999 required=5 tests=[AWL=-0.743, BAYES_50=0.001] autolearn=ham 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 UVGMXvubJx19 for ; Fri, 29 Jan 2010 16:08:49 -0800 (PST) Received: from mail-ew0-f220.google.com (mail-ew0-f220.google.com [209.85.219.220]) by olra.theworths.org (Postfix) with ESMTP id 2C7AE431FDA for ; Fri, 29 Jan 2010 16:08:49 -0800 (PST) Received: by ewy20 with SMTP id 20so2613916ewy.0 for ; Fri, 29 Jan 2010 16:08:47 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:date:message-id:subject :from:to:content-type; bh=14C2nQTIWYylkBHS0oZszqK+MmCeO7WjfGJCAKSdfvk=; b=dEcstuBBy4Vhz6xQZ0ejZyCk+y8RPQCrrcy+vTdJSQdnxlAs/GKvMAurqWxsdH4igI NIesDaWxXPKEK4AV8wkR8nZRcqipxDfJRTzF7mk7uqaVSUVAB1jJ40WiClet4N0b57lN jW/ts2P5f6tCBihu1iEF/09RTWCpjC/SZYbXM= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=MVM7EjiY1EPj2X9f+IaffKyq677Z9eF0+SQmunwX9lqCONhgPIl+9RH5VopeazHmlb V7+qc1xTluaIPnCiHjtG2MSZOg+Xa7p9c6NyAzAJlndnHUbysduWCDZWTvpBZnZFjMk3 o71dJNC8/5yDQ+k0XI1XSGegXUVJ8KysfqS28= MIME-Version: 1.0 Received: by 10.216.87.81 with SMTP id x59mr777165wee.147.1264810126641; Fri, 29 Jan 2010 16:08:46 -0800 (PST) Date: Fri, 29 Jan 2010 19:08:46 -0500 Message-ID: From: Servilio Afre Puentes To: notmuch@notmuchmail.org Content-Type: text/plain; charset=ISO-8859-1 Subject: [notmuch] [PATCH] Better folder name search strategy. X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.13 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: Sat, 30 Jan 2010 00:08:50 -0000 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