From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id TFUsKfx5MmB7UgAA0tVLHw (envelope-from ) for ; Sun, 21 Feb 2021 15:19:24 +0000 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id +N9sJPx5MmBXJQAAB5/wlQ (envelope-from ) for ; Sun, 21 Feb 2021 15:19:24 +0000 Received: from mail.notmuchmail.org (nmbug.tethera.net [144.217.243.247]) (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 059A215A3E for ; Sun, 21 Feb 2021 16:19:23 +0100 (CET) Received: from nmbug.tethera.net (localhost [127.0.0.1]) by mail.notmuchmail.org (Postfix) with ESMTP id 03AC626AD3; Sun, 21 Feb 2021 10:19:12 -0500 (EST) Received: from mail-wr1-x42f.google.com (mail-wr1-x42f.google.com [IPv6:2a00:1450:4864:20::42f]) by mail.notmuchmail.org (Postfix) with ESMTPS id 1BB3726ACB for ; Sun, 21 Feb 2021 10:19:09 -0500 (EST) Received: by mail-wr1-x42f.google.com with SMTP id v14so16409879wro.7 for ; Sun, 21 Feb 2021 07:19:08 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=dme-org.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=GMDr7EKb/bxPSJh81EhTKzM89dF/9q1U82YCha3rt7A=; b=WzQut39DHxle2UMDMRlie2ZAV4baSrNNZ5tArJFkK363Z0wFZOHIfzLwy9vVJ7pIze 4zdx8Y0ZpNh1EgZb2AWCn1wlN03tDbWtRWOwlsFSQ9t3YGH7dO/KRPiFal24XWxj3YBM 9hNfOMi1+tdsqUE/4h73S6VTHrjhQ4SDc+UwoFCzbXSdRKLypsPdWYNrNxkIz3MO9iE/ aO/y74ZBhrWWdYUkqAZQ9OFZ57T3A6xhjVAVZy4udFiIK2zK6xhkk9J/gHPMHnjhuwCZ DMxIic6WMVIuCjTshgkFrmGRxS9ALv3WG/OJldoGHrgbbQxheDY4qOsHApNkdXl3UuQ3 6OKA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=GMDr7EKb/bxPSJh81EhTKzM89dF/9q1U82YCha3rt7A=; b=YcafiGR9CKx25TX+ZAVamHia24N1aQYSKGOpms0lw1tH4eZLhrYIhs7Y+BaDuqAaI4 6fM7Uk2ES28+r/i3K+GJmt9CHU/LvO63P8Vdjb+T5LKy+O0ba23R3tHr17s4wS3llS4p TwlSgNkjUDJvtKpfb/8WeYik2ixzaOzBXnZ/WN2fKVjrF7MMOTsPK7YWcCn1WdJJIzA5 P2K8/yRZcDEj95bwCE0fg8jFI6Ju1GmF+sh1m9xCBzwM9Ws0VROUxUHFprrVbvAW0o0/ B2drlUojagEhiAU21d5yBx1fzz4oYo/62GX13GbEFB2HNLlvuI2++YMl4VlYWiDKk6V/ YbhQ== X-Gm-Message-State: AOAM533UH6TXiEODig/EB5UVkSTh1gb+8zdNmkUJ8RGgsGbD6GJYOWGK /wV05Ob03L1wZeQ7g+BNUIF7OsWbQTw2Tt8X X-Google-Smtp-Source: ABdhPJyiL5aDD06pHIi8WOUwwj9VmLDV7i6HrRGWlRoGJgY+5cZtG7CrlV1KF6laEeF5oFXqOMnERQ== X-Received: by 2002:a05:6000:1081:: with SMTP id y1mr3979620wrw.177.1613920743744; Sun, 21 Feb 2021 07:19:03 -0800 (PST) Received: from disaster-area.hh.sledj.net (disaster-area.hh.sledj.net. [2001:8b0:bb71:7140:64::1]) by smtp.gmail.com with ESMTPSA id c62sm23204974wme.16.2021.02.21.07.19.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 21 Feb 2021 07:19:03 -0800 (PST) Received: from localhost (disaster-area.hh.sledj.net [local]) by disaster-area.hh.sledj.net (OpenSMTPD) with ESMTPA id d9763c23; Sun, 21 Feb 2021 15:19:02 +0000 (UTC) From: David Edmondson To: notmuch@notmuchmail.org Subject: [PATCH v3 0/3] Allow functions in notmuch-*-result-format Date: Sun, 21 Feb 2021 15:18:59 +0000 Message-Id: <20210221151902.2301690-1-dme@dme.org> X-Mailer: git-send-email 2.30.0 MIME-Version: 1.0 Message-ID-Hash: CFDYOMNJCXJHWDSYQNCRKEUSQDLYDKSU X-Message-ID-Hash: CFDYOMNJCXJHWDSYQNCRKEUSQDLYDKSU X-MailFrom: dme@dme.org X-Mailman-Rule-Hits: nonmember-moderation X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; header-match-notmuch.notmuchmail.org-0 CC: David Edmondson X-Mailman-Version: 3.2.1 Precedence: list List-Id: "Use and development of the notmuch mail system." List-Help: List-Post: List-Subscribe: List-Unsubscribe: Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Migadu-Flow: FLOW_IN X-Migadu-Spam-Score: 1.49 Authentication-Results: aspmx1.migadu.com; dkim=fail ("body hash did not verify") header.d=dme-org.20150623.gappssmtp.com header.s=20150623 header.b=WzQut39D; dmarc=none; spf=pass (aspmx1.migadu.com: domain of notmuch-bounces@notmuchmail.org designates 144.217.243.247 as permitted sender) smtp.mailfrom=notmuch-bounces@notmuchmail.org X-Migadu-Queue-Id: 059A215A3E X-Spam-Score: 1.49 X-Migadu-Scanner: scn0.migadu.com X-TUID: 8wGS7jmr1T+i As well as allowing headers to be specified in the various result format lists, allow functions that can be used to implement per-user logic when generating the results. v3: - Push the function test into the pcase (bremner). - Rebase to master (bremner). David Edmondson (3): emacs: Use pcase in notmuch-search-insert-field emacs: Allow functions in notmuch-search-result-format emacs: Allow functions in notmuch-{tree,unthreaded}-result-format emacs/notmuch-tree.el | 3 +++ emacs/notmuch.el | 42 ++++++++++++++++++++++-------------------- 2 files changed, 25 insertions(+), 20 deletions(-) -- 2.30.0