From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id c81QK7HkKmBQXQAA0tVLHw (envelope-from ) for ; Mon, 15 Feb 2021 21:16:33 +0000 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id mGmgJrHkKmBnMAAA1q6Kng (envelope-from ) for ; Mon, 15 Feb 2021 21:16:33 +0000 Received: from mail.notmuchmail.org (nmbug.tethera.net [IPv6:2607:5300:201:3100::1657]) (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 2773B1D015 for ; Mon, 15 Feb 2021 22:16:33 +0100 (CET) Received: from nmbug.tethera.net (localhost [127.0.0.1]) by mail.notmuchmail.org (Postfix) with ESMTP id 920051FF5B; Mon, 15 Feb 2021 16:16:27 -0500 (EST) Received: from fethera.tethera.net (fethera.tethera.net [198.245.60.197]) by mail.notmuchmail.org (Postfix) with ESMTP id DF5411FE25 for ; Mon, 15 Feb 2021 16:16:25 -0500 (EST) Received: by fethera.tethera.net (Postfix, from userid 1001) id 9359E606DF; Mon, 15 Feb 2021 16:16:25 -0500 (EST) Received: (nullmailer pid 184487 invoked by uid 1000); Mon, 15 Feb 2021 21:16:24 -0000 From: David Bremner To: David Edmondson , notmuch@notmuchmail.org Subject: Re: [PATCH 1/2] emacs: Use pcase in notmuch-search-insert-field In-Reply-To: <20210107172523.369192-1-dme@dme.org> References: <20210107172523.369192-1-dme@dme.org> Date: Mon, 15 Feb 2021 17:16:24 -0400 Message-ID: <87a6s5t4k7.fsf@tethera.net> MIME-Version: 1.0 Message-ID-Hash: RX7XYFB3RKZYNCGJSWY2E5B7FRIAFZG5 X-Message-ID-Hash: RX7XYFB3RKZYNCGJSWY2E5B7FRIAFZG5 X-MailFrom: david@tethera.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; suspicious-header 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: -0.45 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of notmuch-bounces@notmuchmail.org designates 2607:5300:201:3100::1657 as permitted sender) smtp.mailfrom=notmuch-bounces@notmuchmail.org X-Migadu-Queue-Id: 2773B1D015 X-Spam-Score: -0.45 X-Migadu-Scanner: scn1.migadu.com X-TUID: oS0OenK6YXIF David Edmondson writes: > Rather than lots of string-equal calls, use the pcase macro. 1. Alas, it doesn't apply anymore. Looks like too much cleanup from Jonas. 2. A glance at the pcase docs suggests the cond wrapping pcase can be avoided by using (pred functionp). Of course I've not actually tried it. d