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 571EB431FC7 for ; Mon, 2 Apr 2012 01:37:16 -0700 (PDT) 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 IVRBwOUrHRD5 for ; Mon, 2 Apr 2012 01:37:15 -0700 (PDT) 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 9025F431FC2 for ; Mon, 2 Apr 2012 01:37:15 -0700 (PDT) Received: by bkwj4 with SMTP id j4so2261070bkw.26 for ; Mon, 02 Apr 2012 01:37:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:subject:in-reply-to:references:date:message-id:mime-version :content-type; bh=z+V2GN2ft2cQjNlgRelP7CdLfvuJT3LqDg10Km6VkYc=; b=AGumeJuuAqXO4tegc5/D+2UWiHrKEaeD+W+9/3OONc+vVUNu6rrVHC9XAc0T9f/3pe 92VwXpbby59GQRxZQkIwCTpREevpl4gsdRZQGkxmci3GngDKmHssTvzxpS1gK2z04CLC UsZ2bjZK9TYKlKJCKTC12gkd+odHm9Z5Vl/iXROAqJXxtp76EQ1Hb62JCOCAiznhEJF1 9Ef/AWKJN9mGk/yNYXWblZDaHioV1APTlYiCVujSXlfeKvzRuX3DwYpIXMI9j9AWSrAd RDy+6Uu9TrJmeBjoByJ/duJjoJmdb5nIdgXyW+/G3q3fjCDY6pAXOgnq2ur/u6xqGJlt qbAg== Received: by 10.204.156.217 with SMTP id y25mr3139403bkw.36.1333355834049; Mon, 02 Apr 2012 01:37:14 -0700 (PDT) Received: from localhost ([91.144.186.21]) by mx.google.com with ESMTPS id zx16sm36495457bkb.13.2012.04.02.01.37.11 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 02 Apr 2012 01:37:12 -0700 (PDT) From: Dmitry Kurochkin To: Jameson Graef Rollins , Notmuch Mail Subject: Re: [PATCH 2/6] emacs: have tag-completion return all tags for nil input In-Reply-To: <1333354853-25729-3-git-send-email-jrollins@finestructure.net> References: <1333354853-25729-1-git-send-email-jrollins@finestructure.net> <1333354853-25729-2-git-send-email-jrollins@finestructure.net> <1333354853-25729-3-git-send-email-jrollins@finestructure.net>User-Agent: Notmuch/0.12+70~g06ecbeb (http://notmuchmail.org) Emacs/23.4.1 (x86_64-pc-linux-gnu) Date: Mon, 02 Apr 2012 12:35:31 +0400 Message-ID: <877gxyil9o.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: Mon, 02 Apr 2012 08:37:16 -0000 Jameson Graef Rollins writes: > Previously the function would fail if the initial input was nil. Now > it will return a list of all tags, which obviously makes much more > sense. > --- > emacs/notmuch.el | 2 ++ > 1 files changed, 2 insertions(+), 0 deletions(-) > > diff --git a/emacs/notmuch.el b/emacs/notmuch.el > index 38ae005..0ab8fc2 100644 > --- a/emacs/notmuch.el > +++ b/emacs/notmuch.el > @@ -85,6 +85,8 @@ For example: > `notmuch-read-tag-changes' function.") > > (defun notmuch-tag-completions (&optional search-terms) > + (if (eq search-terms nil) Please use `null'. Regards, Dmitry > + (setq search-terms (list "*"))) > (split-string > (with-output-to-string > (with-current-buffer standard-output > -- > 1.7.9.1 > > _______________________________________________ > notmuch mailing list > notmuch@notmuchmail.org > http://notmuchmail.org/mailman/listinfo/notmuch