From eebeecdd9d3df01334e6ba7faaf00ccdf7cbc95b Mon Sep 17 00:00:00 2001 From: David Edmondson Date: Tue, 6 May 2014 07:35:12 +0100 Subject: [PATCH] Re: [PATCH] emacs: put current query as default value in notmuch-read-query --- 7c/3576a7acb65825f95ca70f44df2d2b95fc8e0f | 95 +++++++++++++++++++++++ 1 file changed, 95 insertions(+) create mode 100644 7c/3576a7acb65825f95ca70f44df2d2b95fc8e0f diff --git a/7c/3576a7acb65825f95ca70f44df2d2b95fc8e0f b/7c/3576a7acb65825f95ca70f44df2d2b95fc8e0f new file mode 100644 index 000000000..370b915f5 --- /dev/null +++ b/7c/3576a7acb65825f95ca70f44df2d2b95fc8e0f @@ -0,0 +1,95 @@ +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 BB9B0431FAF + for ; Mon, 5 May 2014 23:35:30 -0700 (PDT) +X-Virus-Scanned: Debian amavisd-new at olra.theworths.org +X-Spam-Flag: NO +X-Spam-Score: -0.7 +X-Spam-Level: +X-Spam-Status: No, score=-0.7 tagged_above=-999 required=5 + tests=[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 2QizQbQrqAMM for ; + Mon, 5 May 2014 23:35:25 -0700 (PDT) +Received: from mail-we0-f180.google.com (mail-we0-f180.google.com + [74.125.82.180]) (using TLSv1 with cipher RC4-SHA (128/128 bits)) + (No client certificate requested) + by olra.theworths.org (Postfix) with ESMTPS id 165AC431FAE + for ; Mon, 5 May 2014 23:35:24 -0700 (PDT) +Received: by mail-we0-f180.google.com with SMTP id t61so3148568wes.25 + for ; Mon, 05 May 2014 23:35:21 -0700 (PDT) +X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; + d=1e100.net; s=20130820; + h=x-gm-message-state:to:subject:in-reply-to:references:user-agent + :from:date:message-id:mime-version:content-type; + bh=K80DhN+DGpUCwomNI7xnqvb4cRF1e3kJmTrzc4dX710=; + b=I4RS+OMi/ZUAcCSnsGKDIY8pmmR3l7zXqOIW6h8fasKQO/YpLV34K6ODaubXwiObeZ + +ewzZ2jm5J1FL3LK1NKz/WWsdopZ2pB1bxNQBcchSIx19iXsXnmgFQEpa44+FsOylo/4 + R2mD769rUbvD+0n5jznptZJU96qpTeY6Y4SbgtbjjtZizuVM+c7KxuM/VjZnzh83F4X3 + YiXMbf+feqs+rxzlgkPutz/JKYq3Rv2QHirT61RQ1U+Gtkbj8ZnguEK7QjLYyA9sk9Zc + oyVQnXWl09w/qHNb0UlWfdZkfM3eBP6RAbbn5YwCd8lxVhIFB2zQOnwPm2nnyrcuhME3 + XMYg== +X-Gm-Message-State: + ALoCoQm5hVT/BEP/zT7q0VEUN6L8Me9mQp84Y5mugXiCkNIte2vm4F50L5o9PzwOgQB+J7uKNng7 +X-Received: by 10.194.20.65 with SMTP id l1mr6689968wje.39.1399358120516; + Mon, 05 May 2014 23:35:20 -0700 (PDT) +Received: from localhost (disaster-area.hh.sledj.net. [81.149.164.25]) + by mx.google.com with ESMTPSA id l4sm22607834wiy.0.2014.05.05.23.35.17 + for + (version=TLSv1.2 cipher=RC4-SHA bits=128/128); + Mon, 05 May 2014 23:35:18 -0700 (PDT) +To: Mark Walters , notmuch@notmuchmail.org +Subject: Re: [PATCH] emacs: put current query as default value + in notmuch-read-query +In-Reply-To: <1399133579-9106-1-git-send-email-markwalters1009@gmail.com> +References: <1399133579-9106-1-git-send-email-markwalters1009@gmail.com> +User-Agent: Notmuch/0.18~rc0 (http://notmuchmail.org) Emacs/24.3.1 + (x86_64-pc-linux-gnu) +From: David Edmondson +Date: Tue, 06 May 2014 07:35:12 +0100 +Message-ID: +MIME-Version: 1.0 +Content-Type: multipart/signed; boundary="=-=-="; + micalg=pgp-sha1; protocol="application/pgp-signature" +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: Tue, 06 May 2014 06:35:31 -0000 + +--=-=-= +Content-Type: text/plain + +On Sat, May 03 2014, Mark Walters wrote: +> An alternative to putting the logic in notmuch-read-query would be to +> store the query in a consistently named buffer local variable in all +> the modes. If we want to show the actually run query in notmuch-show +> above then this is probably the neatest solution. + +Could per-mode query functions not simply pass the default as an +optional second argument to `notmuch-read-query'? + +--=-=-= +Content-Type: application/pgp-signature; name="signature.asc" + +-----BEGIN PGP SIGNATURE----- +Version: GnuPG v1 + +iKYEARECAGYFAlNogqBfFIAAAAAALgAoaXNzdWVyLWZwckBub3RhdGlvbnMub3Bl +bnBncC5maWZ0aGhvcnNlbWFuLm5ldDc1M0Y5NDJDMEExNjc3MDE4OURGMUYyMDY5 +RUNEMEFCRjA0OTY1MTYACgkQaezQq/BJZRbouwCgiVhEQ+rYtjooaZL5wr81Lxr6 +ssQAn3RYQ739p9hJ3XveQKEHuPg2BgA0 +=TQHX +-----END PGP SIGNATURE----- +--=-=-=-- -- 2.26.2