From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id V+16GRz3xl7OdQAA0tVLHw (envelope-from ) for ; Thu, 21 May 2020 21:48:12 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id wFLsFBz3xl5bTAAA1q6Kng (envelope-from ) for ; Thu, 21 May 2020 21:48:12 +0000 Received: from arlo.cworth.org (arlo.cworth.org [50.126.95.6]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id E61BB9400C3 for ; Thu, 21 May 2020 21:48:11 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by arlo.cworth.org (Postfix) with ESMTP id E497E6DE138C; Thu, 21 May 2020 14:48:00 -0700 (PDT) X-Virus-Scanned: Debian amavisd-new at cworth.org Received: from arlo.cworth.org ([127.0.0.1]) by localhost (arlo.cworth.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id EyC1EGFJRwLo; Thu, 21 May 2020 14:48:00 -0700 (PDT) Received: from arlo.cworth.org (localhost [IPv6:::1]) by arlo.cworth.org (Postfix) with ESMTP id BFA426DE1373; Thu, 21 May 2020 14:47:55 -0700 (PDT) Received: from localhost (localhost [127.0.0.1]) by arlo.cworth.org (Postfix) with ESMTP id 8F07F6DE10AD for ; Thu, 21 May 2020 14:47:53 -0700 (PDT) X-Virus-Scanned: Debian amavisd-new at cworth.org Received: from arlo.cworth.org ([127.0.0.1]) by localhost (arlo.cworth.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 8Vqc01LfrVrQ for ; Thu, 21 May 2020 14:47:50 -0700 (PDT) Received: from che.mayfirst.org (unknown [162.247.75.117]) by arlo.cworth.org (Postfix) with ESMTPS id BB9756DE1028 for ; Thu, 21 May 2020 14:47:50 -0700 (PDT) DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/simple; d=fifthhorseman.net; i=@fifthhorseman.net; q=dns/txt; s=2019; t=1590097669; h=from : to : cc : subject : in-reply-to : references : date : message-id : mime-version : content-type : from; bh=1bzVZsCBlQvI8dmskmc7o/WpjJey99MSObs8Nyz8LQA=; b=D7717vFTjAEskzZt4gMLv6u8uXrtmjrSrBWSWgS3zR06aVV0bXSz5ZrMsPcZ2KlgrUuHQ q9wNoN4ZxTTrBkODA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=fifthhorseman.net; i=@fifthhorseman.net; q=dns/txt; s=2019rsa; t=1590097669; h=from : to : cc : subject : in-reply-to : references : date : message-id : mime-version : content-type : from; bh=1bzVZsCBlQvI8dmskmc7o/WpjJey99MSObs8Nyz8LQA=; b=dLgJIvRKOjNB2veqUYSuhFK03rPX0OjpavwOBXQUnFdvhFRvJuuC1wfKolq0YKNrX5698 9viKTR7uFhfZj2zqUp+YWvfVFPm1qOHJOpdSTEPZliqZarfK2kOAzGLLC0HL4eE9ofyV6o7 Z4yEXnjeXi3a5OBlP5Yy30isXMWJVZorvzcqwNjybBEFYqt/tR95Ez3dXwnTVwlRFMpYK8z nOn9GeCkRxLDXapw8mTgRYJdU/JHAi3vQcIrwVG+Z/SlLuFT9ly41nQJwJnxpU4pnz/zpjV CPV4y9boJNquDG+ho7OEWD+KIuXolHupve7wygZMaP4irLVEua7wPN5+9hbw== Received: from fifthhorseman.net (unknown [108.58.6.98]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by che.mayfirst.org (Postfix) with ESMTPSA id B5DECF9A5; Thu, 21 May 2020 17:47:48 -0400 (EDT) Received: by fifthhorseman.net (Postfix, from userid 1000) id CA13920207; Thu, 21 May 2020 17:32:22 -0400 (EDT) From: Daniel Kahn Gillmor To: Tom Fitzhenry , notmuch@notmuchmail.org Subject: Re: [PATCH] emacs: add notmuch-expr, sexp-style queries In-Reply-To: <20200513100024.8474-1-tom@tom-fitzhenry.me.uk> References: <20200513100024.8474-1-tom@tom-fitzhenry.me.uk> Autocrypt: addr=dkg@fifthhorseman.net; prefer-encrypt=mutual; keydata= mDMEXEK/AhYJKwYBBAHaRw8BAQdAr/gSROcn+6m8ijTN0DV9AahoHGafy52RRkhCZVwxhEe0K0Rh bmllbCBLYWhuIEdpbGxtb3IgPGRrZ0BmaWZ0aGhvcnNlbWFuLm5ldD6ImQQTFggAQQIbAQULCQgH AgYVCgkICwIEFgIDAQIeAQIXgAIZARYhBMS8Lds4zOlkhevpwvIGkReQOOXGBQJd5Hw3BQkFpJWB AAoJEPIGkReQOOXGDYEA/j0ERjPxDleKMZ2LDcWc/3o5cLFwAVzBKQHppu0Be5IWAP0aeTnyEqlp RTE7M8zugwkhYeUYfYu0BjecDUMnYz6iDLgzBF3kewUWCSsGAQQB2kcPAQEHQK1IuW0GZmcrs2mx CYMl8IHse0tMF8cP7eBNXevrlx2ZiPUEGBYIACYCGwIWIQTEvC3bOMzpZIXr6cLyBpEXkDjlxgUC XeR7TwUJAiGl/gCBdiAEGRYIAB0WIQQsv6x2UaqQJzY+dXHEDyVUMvKBDwUCXeR7BQAKCRDEDyVU MvKBD7KmAQCHs+7588C4jto6fMje0Nu97zzoppjJM7lrGF2rVnbHvwD+MgmGUbHzPSUrTWnZBQDi /QM595bxNrBA4N1CiXhs2AMJEPIGkReQOOXGpp0BAM7YeBnt/UNvxJAGm4DidSfHU7RDMWe6Tgux HrH21cDkAQC9leNFXJsQ7F2ZniRPHa8CkictcQEKPL8VCWpfe8LbArg4BF3ke5wSCisGAQQBl1UB BQEBB0Cf+EiAXtntQMf51xpqb6uZ5O0eCLAZtkg0SXHjA1JlEwMBCAeIfgQYFggAJhYhBMS8Lds4 zOlkhevpwvIGkReQOOXGBQJd5HucAhsMBQkCIaVkAAoJEPIGkReQOOXGdYcBANYnW7VyL2CncKH1 iO4Zr0IwfdIv6rai1PUHL98pVi3cAP9tMh85CKGDa0Xi/fptQH41meollLW5tLb/bEWMuUNuBQ== Date: Thu, 21 May 2020 17:32:22 -0400 Message-ID: <87blmhj7o9.fsf@fifthhorseman.net> MIME-Version: 1.0 X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Use and development of the notmuch mail system." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Tom Fitzhenry Content-Type: multipart/mixed; boundary="===============6678634690571426827==" Errors-To: notmuch-bounces@notmuchmail.org Sender: "notmuch" X-Scanner: scn0 Authentication-Results: aspmx1.migadu.com; dkim=fail (body hash did not verify) header.d=fifthhorseman.net header.s=2019 header.b=D7717vFT; dkim=fail (body hash did not verify) header.d=fifthhorseman.net header.s=2019rsa header.b=dLgJIvRK; dmarc=fail reason="SPF not aligned (relaxed)" header.from=fifthhorseman.net (policy=none); spf=pass (aspmx1.migadu.com: domain of notmuch-bounces@notmuchmail.org designates 50.126.95.6 as permitted sender) smtp.mailfrom=notmuch-bounces@notmuchmail.org X-Spam-Score: -0.51 X-TUID: 4jj5e+y6FL09 --===============6678634690571426827== Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" --=-=-= Content-Type: text/plain On Wed 2020-05-13 20:00:24 +1000, Tom Fitzhenry wrote: > notmuch-expr allows you to write notmuch search queries in sexp style like: > > (notmuch-expr > '(and > (to "emacs-devel") > "info manual" > (or > (not (is "spam")) > (is "important")))) > > which will generate the textual query: > > "to:emacs-devel AND (NOT is:spam OR is:important) AND \"info manual\"" I like this idea! > +(defun notmuch-expr--quote (s) > + ;; FIXME Escape s. > + (concat "\"" s "\"")) Shouldn't this FIXME be resolved before we consider merging? --dkg --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEARYIAB0WIQQsv6x2UaqQJzY+dXHEDyVUMvKBDwUCXsbzZgAKCRDEDyVUMvKB D+k8AP9R3Ju0N+Lf2DUkG70MvXaD6+ZCcmuYy8mA4Ic5ON6+pQD+O0EbwLcS9doA iuYT4YcvGXVkvXkm1NkMvPyPLSbT8AA= =qtnN -----END PGP SIGNATURE----- --=-=-=-- --===============6678634690571426827== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline --===============6678634690571426827==--