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 A1F12431FB6 for ; Thu, 26 Jan 2012 09:40:32 -0800 (PST) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org X-Spam-Flag: NO X-Spam-Score: -0.799 X-Spam-Level: X-Spam-Status: No, score=-0.799 tagged_above=-999 required=5 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7] autolearn=disabled 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 LLSpunNzAM9A for ; Thu, 26 Jan 2012 09:40:32 -0800 (PST) Received: from mail-bk0-f53.google.com (mail-bk0-f53.google.com [209.85.214.53]) (using TLSv1 with cipher RC4-SHA (128/128 bits)) (No client certificate requested) by olra.theworths.org (Postfix) with ESMTPS id E8366431FAF for ; Thu, 26 Jan 2012 09:40:31 -0800 (PST) Received: by bkbzt19 with SMTP id zt19so784439bkb.26 for ; Thu, 26 Jan 2012 09:40:30 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=from:to:subject:in-reply-to:references:user-agent:date:message-id :mime-version:content-type; bh=nkRWmzCxro2zig2RaplwG+o5cxOt+tO95syZr6VdtNc=; b=mUwjsFplTv/D2SpiufUdFXVn6ZGqlNSwsAuOujQzcH0SEY3XP9DEVHsBa2AYpLMR6o kctyuRVPOb8q3YJNNc2k/V2L6LujZOr+e4EM2xS+YnUYoWB2FlCXWmZfGZLMEfbsxlHx 0Sh7TH+8l4WRgA7iFu22NCLoYEVJoeOtlpodM= Received: by 10.204.157.17 with SMTP id z17mr1458271bkw.37.1327599630662; Thu, 26 Jan 2012 09:40:30 -0800 (PST) Received: from localhost ([91.144.186.21]) by mx.google.com with ESMTPS id ek9sm10331568bkb.10.2012.01.26.09.40.29 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 26 Jan 2012 09:40:29 -0800 (PST) From: Dmitry Kurochkin To: David Edmondson , Austin Clements , notmuch@notmuchmail.org Subject: Re: [PATCH] emacs: add completion to "tag all" operation ("*" binding) In-Reply-To: References: <1327540351-5249-1-git-send-email-dmitry.kurochkin@gmail.com> <20120126013727.GB1176@mit.edu> <87wr8fqlpg.fsf@gmail.com> User-Agent: Notmuch/0.11+116~ge6e10b8 (http://notmuchmail.org) Emacs/23.3.1 (x86_64-pc-linux-gnu) Date: Thu, 26 Jan 2012 21:39:22 +0400 Message-ID: <87vcny8it1.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii 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: Thu, 26 Jan 2012 17:40:32 -0000 On Thu, 26 Jan 2012 08:46:00 +0000, David Edmondson wrote: > On Thu, 26 Jan 2012 05:47:07 +0400, Dmitry Kurochkin wrote: > > > > + ;; Perform some validation > > > > + (let ((words action)) > > > > + (when (null words) (error "No operation given")) > > > > + (while words > > > > + (unless (string-match-p "^[-+][-+_.[:word:]]+$" (car words)) > > > > + (error "Action must be of the form `+thistag -that_tag'")) > > > > + (setq words (cdr words)))) > > > > > > This should really be a mapc or a dolist, but maybe that's for another > > > patch. > > > > Yes, I changed "this_tag" spelling in v2, but would prefer to leave > > non-trivial changes in this code for another patch. > > If you were going to submit another patch then fine, but the chances are > it will just get forgotten. No worries, v5 has a cleanup patch added :) Regards, Dmitry