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 638DB431FC0 for ; Sat, 28 Nov 2009 11:50:48 -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 wtjnTs3C6orW for ; Sat, 28 Nov 2009 11:50:47 -0800 (PST) Received: from mail-bw0-f224.google.com (mail-bw0-f224.google.com [209.85.218.224]) by olra.theworths.org (Postfix) with ESMTP id 97EEC431FAE for ; Sat, 28 Nov 2009 11:50:47 -0800 (PST) Received: by bwz24 with SMTP id 24so1781842bwz.30 for ; Sat, 28 Nov 2009 11:50:46 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:sender:from:to:cc:subject :date:message-id:x-mailer:in-reply-to:references; bh=O/KO2N8pYDsNJRAEYJtlIZMkg/5eNIiALAb3J8ZlHE0=; b=BfaU1PYsccE4gnT1i5WJQx1R1vt/2Ux/d5v9mr1msuLu2QvUQsB69e8NISuIXCEUAb GtKLgOx5isrwrG1Oh0AVmdZBR+MRHwhZxwWmcyDkiYXr+Nj63rebCU3K9I+DbgsidA7R XqhqtwQAMm78R37aqEMi0rZQUbNMDW/Ipbi+U= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=sender:from:to:cc:subject:date:message-id:x-mailer:in-reply-to :references; b=GUgMcv6R4MbaHyn0qRsvRmv6bp9w6sQFXdh6Tgl7xtEJXOJzla3RR5fQU+v7B8ry13 SIxNn4LR81gv5S0+wFE8sSx/w3TWN4igsufFFjZmpWBDc5OZLxR9FV1p7bQv0QfRZkcq umljMs3eqDVL7i5SDQAMgp+UZuvyFuEFbHmPI= Received: by 10.204.16.85 with SMTP id n21mr2567137bka.140.1259437846784; Sat, 28 Nov 2009 11:50:46 -0800 (PST) Received: from localhost.localdomain (vawpc43.ethz.ch [129.132.59.11]) by mx.google.com with ESMTPS id 13sm923514fxm.5.2009.11.28.11.50.45 (version=TLSv1/SSLv3 cipher=RC4-MD5); Sat, 28 Nov 2009 11:50:45 -0800 (PST) Sender: Jed Brown From: Jed Brown To: cworth@cworth.org Date: Sat, 28 Nov 2009 20:51:13 +0100 Message-Id: <1259437873-20197-1-git-send-email-jed@59A2.org> X-Mailer: git-send-email 1.6.5.3 In-Reply-To: <87fx80m5fe.fsf@yoom.home.cworth.org> References: <87fx80m5fe.fsf@yoom.home.cworth.org> Cc: notmuch@notmuchmail.org Subject: [notmuch] [PATCH] More portable and easier to read regex in notmuch-search-operate-all 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: Sat, 28 Nov 2009 19:50:48 -0000 The former one worked in 23.1.50.1 but not in 23.1.1. Signed-off-by: Jed Brown --- notmuch.el | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/notmuch.el b/notmuch.el index 96c5d96..65473ba 100644 --- a/notmuch.el +++ b/notmuch.el @@ -1152,7 +1152,7 @@ characters as well as `_.+-'. (let ((words action-split)) (when (null words) (error "No operation given")) (while words - (unless (string-match-p "^[\+\-][_\+\-\\w]+$" (car words)) + (unless (string-match-p "^[-+][-+_.[:word:]]+$" (car words)) (error "Action must be of the form `+thistag -that_tag'")) (setq words (cdr words)))) (apply 'notmuch-call-notmuch-process "tag" -- 1.6.5.3