From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id mEETDvsDp2JTBwAAbAwnHQ (envelope-from ) for ; Mon, 13 Jun 2022 11:31:39 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id WJoFDfsDp2L6AQAAG6o9tA (envelope-from ) for ; Mon, 13 Jun 2022 11:31:39 +0200 Received: from mail.notmuchmail.org (yantan.tethera.net [135.181.149.255]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id F03EC383C2 for ; Mon, 13 Jun 2022 11:31:38 +0200 (CEST) Received: from yantan.tethera.net (localhost [127.0.0.1]) by mail.notmuchmail.org (Postfix) with ESMTP id BA71E5F6E8; Mon, 13 Jun 2022 09:31:36 +0000 (UTC) Received: from wout2-smtp.messagingengine.com (wout2-smtp.messagingengine.com [64.147.123.25]) by mail.notmuchmail.org (Postfix) with ESMTPS id AFED75F6B8 for ; Mon, 13 Jun 2022 09:31:34 +0000 (UTC) Received: from compute2.internal (compute2.nyi.internal [10.202.2.46]) by mailout.west.internal (Postfix) with ESMTP id 54F043200901; Mon, 13 Jun 2022 05:31:30 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute2.internal (MEProxy); Mon, 13 Jun 2022 05:31:30 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ecocode.net; h= cc:cc:content-type:date:date:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:sender:subject :subject:to:to; s=fm1; t=1655112689; x=1655199089; bh=E4jfZniAnI I4popChp4Wz/DsTvzMFXV5p7ywSn6rQRM=; b=BcFOKirhWjyuRWxBQJv3utLfto RllgwYsz9wTMfafAUuKZn/CPjRHUli1yOJepTm4oK25eo60texHm41V50AgTcgqY hWDZ43zyHrrtwmKotlm2XckChSb4KL1FC8VQBfn0ekLPyV863mPC+lho9BhBioCN rGA6ZHVRDIFNh62udjFb6oVaGAFZUjF5g6w3i/TEdnBgh+glZS1P14XU61rcgzK0 psKZs/tQiSKoRT6q23yR1/AgUDKSch6yt4Hcp+l/YH2aFUKZEucN0kAS0zZ+BuAO ++14fl58XCyiEVHTMK4mzrPiTcPnCKP3lESh7P4xkPW8wZEW8U40ymh40w/w== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-type:date:date:feedback-id :feedback-id:from:from:in-reply-to:in-reply-to:message-id :mime-version:references:reply-to:sender:subject:subject:to:to :x-me-proxy:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s= fm2; t=1655112689; x=1655199089; bh=E4jfZniAnII4popChp4Wz/DsTvzM FXV5p7ywSn6rQRM=; b=jg7kVZMYoJSUBu8ws1rZULCs5Dp/1p7Xz9xqMm1xOwFO xUAwVzvFMqPRk59LM4wjbRut6aeft+fpiZIlksjcCCKMuyHiuIq42l1lJ32inEc5 xJo3su4MhwYMTC6k6MPQ8D7R1/ATU76u8YbqwQkNqjiVZ4DorgDgaPRrVbFcBHqG WFfP79D5qLWb/VGDEleAxpMHDJ5iVTPZACgQneVfkj8HKkfpRe4I/ZEqfeerOvxM FebEr5KWOwrBSEMPGvm2LUsK4641fm4aUoGRH97lThH6F97ppVMG5VyiPTg//3KI st2rrO4aaZiXbgAPt2QzUKPPzB4Gouec0X2mpB/X0w== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvfedruddujedgudeiucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpefhvfevufgjfhffkfggtgesthdtre dttddttdenucfhrhhomhepvghrihhkucgtohhlshhonhcuoegvtghosegvtghotghouggv rdhnvghtqeenucggtffrrghtthgvrhhnpeelfeegtddttdeugeejgeelleehgffhleehle dvffefvddvvdfhledvgfehhfdtfeenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgr mhepmhgrihhlfhhrohhmpegvtghosegvtghotghouggvrdhnvght X-ME-Proxy: Feedback-ID: ifb71477a:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Mon, 13 Jun 2022 05:31:29 -0400 (EDT) From: erik colson To: Michael J Gruber Subject: Re: sexp and strings In-Reply-To: References: <87o7yxqxy6.fsf@code.pm> Date: Mon, 13 Jun 2022 11:31:27 +0200 Message-ID: <87k09koqog.fsf@code.pm> MIME-Version: 1.0 Message-ID-Hash: PBTBOJHZ74BMR2LWJZKVCDAGY4QDKSEN X-Message-ID-Hash: PBTBOJHZ74BMR2LWJZKVCDAGY4QDKSEN X-MailFrom: eco@ecocode.net X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; header-match-notmuch.notmuchmail.org-0; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header CC: notmuch@notmuchmail.org X-Mailman-Version: 3.3.3 Precedence: list List-Id: "Use and development of the notmuch mail system." List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Migadu-Flow: FLOW_IN X-Migadu-To: larch@yhetil.org X-Migadu-Country: DE ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1655112699; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-owner:list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=e9iPPhIm4uvz4LwbxyBxaybLzEVWbhPX6TYkAfY3zi0=; b=kjInuSGafjLq4ZSO7K51fjXrDCLFFQKNEu93aeNGMD4n6YV2li+zCjz4JD5iuRlR3BQGrw ili7d4oBPLDu9BS4sYWyout72genN+o7Sh7hL/LEwqiom96kmsbidAENkgfPwwVumoJnUg Cb0f+zwwIoX2F/SGM4OfN9w3VNVQiyKCaR6cM79i78VzJNpDh4C0FRyleDzAjWUu2M6Oj4 j2TDYjIOppic2mgoeQ1LOB2sd5kzbvLPOYYdZPleUJOnr+3HlDZVE+qwehwAzS3cV0YrNi zZMaMyRjSG0AEHmYXbBZMxImMCsuj8kyz36B36h+N9dEEk9iluLe/Z1g+QYwCA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1655112699; a=rsa-sha256; cv=none; b=PWlxS2g6JvXaX8NwKEb+J3oBnZKP7kHPdLdfgdTJtgA5US0BjH+so7iI117GJMwlyz2Ftu uaXwY+GeKC6/6w6EbN/pjTkAtXRzN1YiGTQwJToxyMRHh4dQGS3dY5aePO/d7WLXV7Ob4c WrkMS/RScadBZa2ZJ/WEUvgZWb4xigVn1tYwKJAov0sWB6cZV8p0Q35FkHOq2VuBLvt2AE ErR9GCNayJR3avrvWjBppqkS/Bn2sV0iLQ01jQ3l7HZSDwdMB2en1KbInBIdAbseo4xqS3 YwP5ha4gW7RWIkDDizQ6d3slDtsMDi61IZoJfcrFMD/Bz9FSneIQy1p/E/KcJA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("body hash did not verify") header.d=ecocode.net header.s=fm1 header.b=BcFOKirh; dkim=fail ("body hash did not verify") header.d=messagingengine.com header.s=fm2 header.b=jg7kVZMY; dmarc=none; spf=pass (aspmx1.migadu.com: domain of notmuch-bounces@notmuchmail.org designates 135.181.149.255 as permitted sender) smtp.mailfrom=notmuch-bounces@notmuchmail.org X-Migadu-Spam-Score: 7.84 Authentication-Results: aspmx1.migadu.com; dkim=fail ("body hash did not verify") header.d=ecocode.net header.s=fm1 header.b=BcFOKirh; dkim=fail ("body hash did not verify") header.d=messagingengine.com header.s=fm2 header.b=jg7kVZMY; dmarc=none; spf=pass (aspmx1.migadu.com: domain of notmuch-bounces@notmuchmail.org designates 135.181.149.255 as permitted sender) smtp.mailfrom=notmuch-bounces@notmuchmail.org X-Migadu-Queue-Id: F03EC383C2 X-Spam-Score: 7.84 X-Migadu-Scanner: scn0.migadu.com X-TUID: wQZONuCiWWIn Michael J Gruber writes: > That search works without the macro, but not as a macro: notmuch > computes an empty `Query()` for this (as per `NOTMUCH_DEBUG_QUERY=1`). > I'm not sure whether this is intended or an artefact of the > implementation, since both the macro and the regex need > expansion/evaluation before being fed to xapian, and the order > matters. > > Defining `D=(macro (dossier) ((tag ,dossier)))` and calling it with > `(D (rx ddddd))` works, btw (but is not what you want, obviously), so > something tells me lazy evaluation of macros is not completely lazy ;) Thanks for checking this out Michael. I decided to write an emacs lisp function which I keybind and which prompts for the variable, and then launches notmuch-search with that: (defun ec/notmuch-search-dossier () "Zoek mails van een dossier" (interactive (let* ((dossier (read-no-blanks-input "Dossier:")) (zoek (concat "tag:/" dossier "/"))) (notmuch-search zoek nil nil nil nil)))) This works like a charm ;) Well, I am of course open to enhancement suggestions! Also I upgraded my OS to fedora36 and now I use the standard notmuch package instead of compiling it myself. So I don't have sexp support anymore and therefor I am moving the squeries I added to my notmuch config into emacs lisp functions. best -- erik colson