From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id oGHTIMowl2JPKwAAbAwnHQ (envelope-from ) for ; Wed, 01 Jun 2022 11:26:34 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id eLXUIMowl2LZQwEA9RJhRA (envelope-from ) for ; Wed, 01 Jun 2022 11:26:34 +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 0EA3716D61 for ; Wed, 1 Jun 2022 11:26:34 +0200 (CEST) Received: from yantan.tethera.net (localhost [127.0.0.1]) by mail.notmuchmail.org (Postfix) with ESMTP id 44F215F780; Wed, 1 Jun 2022 09:26:31 +0000 (UTC) Received: from fethera.tethera.net (fethera.tethera.net [IPv6:2607:5300:60:c5::1]) by mail.notmuchmail.org (Postfix) with ESMTP id 2DA7E5F6CC for ; Wed, 1 Jun 2022 09:26:28 +0000 (UTC) Received: by fethera.tethera.net (Postfix, from userid 1001) id E85415FBD7; Wed, 1 Jun 2022 05:26:26 -0400 (EDT) Received: (nullmailer pid 2661284 invoked by uid 1000); Wed, 01 Jun 2022 09:26:25 -0000 From: David Bremner To: Jose A Ortega Ruiz , notmuch@notmuchmail.org Subject: Re: [PATCH] emacs: notmuch-show-header-line: allow format strings and functions In-Reply-To: <87czfzg6sk.fsf@gnus.jao.io> References: <20220518192956.1440103-1-jao@gnu.org> <20220518192956.1440103-2-jao@gnu.org> <87zgj34zuf.fsf@tethera.net> <87czfzg6sk.fsf@gnus.jao.io> Date: Wed, 01 Jun 2022 06:26:25 -0300 Message-ID: <87a6aw20qm.fsf@tethera.net> MIME-Version: 1.0 Message-ID-Hash: 4NTIFZ2KOQ6WBB76OWE3LMUUHUD4S2PX X-Message-ID-Hash: 4NTIFZ2KOQ6WBB76OWE3LMUUHUD4S2PX 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; digests; suspicious-header 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=1654075594; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to: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; bh=p8S9ydb7oaTRV19tAQoa4v864fjO85BgmGI9w5F7j8U=; b=F+3VsSCt0nBygqKPVVMbzmorIXLG7G9rI3iwgO0E8cgkG6F0IiFGbV1TRP8o/G0qGhxaov 6N4Ha02HeO3sHOZOjWtAAId5nHywQEr50E+b7bzznVy/usq/YjWnMB8xZCefQ6ETezxljJ K8+BRKJ4FOC9/hdkfcV9hGrS72wDhesHdFtwDcoZK39jt9Cbjx6ZunwAISbyrBUG5pXOUP QSPurJbqIZ2JFTBgM69dYQnqDQnkKYSzQfoqGft3z8lADNCPOQ4V1ro3eOvD0yv76PqSoC nMHU3hvGUQjyxYB/OMGFHJmOG5NiKTzj99Hr9uDwYK8H8CPipW4QYP4kkSAYCA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1654075594; a=rsa-sha256; cv=none; b=FMnnRLkFa4Jz1sR5gl405N1HPMOODJUN8VHoNokyp8rngnXT7vDCxHERSV9C1PRzcaJuZ8 A0aUWs5r8HSz/hQSYM0hbUMzxqF/sQOgHFzUy5+ZLTnO6IvuJRdWWAyVC+id6oxf9OHXuX UHVrEix9O8TXqoNKj84yHQN7aqW1HxW9BpBqmgbNpQVurmZrS0askELcpIOokkIVB12mc7 R2ocujKHKbsOT9qoB2M9Xa8zojnBAzO2Xid5CFinEIl5RW4WHASNexf2QW4j9FxQ4jBY/J osFV0RT0lEp7A+hTqje8KWT8Nu//XtU2bWOVg2snEcIE4URCwlmhb+YN7ZvFDQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; 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: -2.04 Authentication-Results: aspmx1.migadu.com; dkim=none; 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: 0EA3716D61 X-Spam-Score: -2.04 X-Migadu-Scanner: scn1.migadu.com X-TUID: VL5cMuF1Y5CO Jose A Ortega Ruiz writes: > On Thu, May 26 2022, David Bremner wrote: >> The API defined here (function taking the subject as a string) seems a >> bit limited. What if the user wants to use some other message header in >> the header-line? Or list tags? > > well, the function is called with the message buffer being current, so > it has access to all the message properties... we could even remove the > subject argument, but there's some convenient cleaning up on it that, i > think, makes it convenient. > Fair enough. But since the calling is not obvious to the casual user (*cough* or me), maybe mention the availability of message properties in the docstring.