From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id GLivKj2D5GGdiwAAgWs5BA (envelope-from ) for ; Sun, 16 Jan 2022 21:42:37 +0100 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id 0HR+Iz2D5GF/HQAAG6o9tA (envelope-from ) for ; Sun, 16 Jan 2022 21:42:37 +0100 Received: from mail.notmuchmail.org (yantan.tethera.net [IPv6:2a01:4f9:c011:7a79::1]) (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 5E9151FD46 for ; Sun, 16 Jan 2022 21:42:37 +0100 (CET) Received: from yantan.tethera.net (localhost [127.0.0.1]) by mail.notmuchmail.org (Postfix) with ESMTP id A468E5F6B5; Sun, 16 Jan 2022 20:42:33 +0000 (UTC) X-Greylist: delayed 464 seconds by postgrey-1.36 at yantan; Sun, 16 Jan 2022 20:42:31 UTC Received: from out0.migadu.com (out0.migadu.com [IPv6:2001:41d0:2:267::]) by mail.notmuchmail.org (Postfix) with ESMTPS id 722275F468 for ; Sun, 16 Jan 2022 20:42:31 +0000 (UTC) X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kyleam.com; s=key1; t=1642365286; 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: in-reply-to:in-reply-to:references:references; bh=zY6kbJ+a4aRE8KohpsiwmjNXpPKQanvrTP/rAeAVWJw=; b=qx0J6iAPpKpjbMcWg7OF7NhoaYZhLx64yoTesZ8kQXTc9hpzfkOhm4VQaSAl/j9ZYKkmyz jMCDIl7q390wx74DwVGaZsz1k6lKq1w1ozfp/X4DLPghdhmiX+HWHTKzAfgIisnnIzVBrm t2C8meCEJM1Gx4AzChJ6CSoOY0Q5g1Ysaiu4Uw9VXgQj7uLO/80wo6b45ZHoSVWiwwR+z3 HGd/1eRVBhQFkLRSPMG3wGQh4bFekZGpTSyrGT6B92QutfeyyYsb5YMSE2M/RPytt9LaV/ +ShfMhTvBQ2K1BtMr9/Js9WNKVI8vVXTrHMyMXXiMnYDp6tNEBggKsn1VSTDog== From: Kyle Meyer To: Jose A Ortega Ruiz Subject: Re: [PATCH v4] emacs: customizable names for search buffers In-Reply-To: <87h7a7uuhz.fsf@gnus.jao.io> References: <20220110181644.1457631-1-jao@gnu.org> <87h7a7uuhz.fsf@gnus.jao.io> Date: Sun, 16 Jan 2022 15:34:37 -0500 Message-ID: <878rvfmnc2.fsf@kyleam.com> MIME-Version: 1.0 Message-ID-Hash: YOCPK6TV2X7JDSXZ7HTRXWTHXWJEYBHO X-Message-ID-Hash: YOCPK6TV2X7JDSXZ7HTRXWTHXWJEYBHO X-MailFrom: kyle@kyleam.com 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: 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-Country: DE ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1642365757; 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=wMMJ+SnrXxLiJ4+7GK+Hr34HlciJjrjaZorRgBrhgOE=; b=VQ/NVOPUNoKaAIFfHC10p2JbYcu6BtAsIEDQlJ8Ella0Uk4VglvzEXyOA4irvlZjpF4Jtx 0LkT/6ur5B0cfMYUqQz/K8pR2uLhT5XiKCl2QGftWDvFwvmAaZhEMXO19miwBsyRKd1az1 3hK+HnLp87aBFdbRHtMk6Q/tazYim9ZSXQm9zQkP0N/ApnKo/ihw+8IzQcjMEra7LccwzE nJ5tsPan24hUZFA5arlgXKbMXdjBAxRusBBr3Gl5cGVIahjajrMP1nNWnHLPcChsxKuxMl 3hpEOuFj39Jh21DLvVlBpS5EYuNOGLvSGPXbwTbFXLEdgWmaBe6sfBOrTM0AyQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1642365757; a=rsa-sha256; cv=none; b=ICBJo4E/CDIZH4A19gLmBWWcjgejLCDvlasWcKIrCfN7wmGVxBeWDpsAxdpUOFZs4yc3B4 TsuprN40CP3Y92qrdnY8+JAyRYU165njWnArU2ELSibAppq2+H/zrGvD2ccXar60iytGWZ OwQ7ylZ8oUfx8w9I9IGg+F09wgHT7BKsF6YP9vyWiXORFo6FyK12eebZakF300bTlTWNDj 7A/n4vboj1OY309g9v4PEHkrrKN8GHENe722xjUM2LmMMNIavMECWSsIbJYl0VvrfUx0Sm 7dcnAx2YPMv2eUzCQGt/wPHuUakcR9FKau+cWTjCmgOuQ9PAcp+Mqx38ihVoQA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("body hash did not verify") header.d=kyleam.com header.s=key1 header.b=qx0J6iAP; dmarc=none; spf=pass (aspmx1.migadu.com: domain of notmuch-bounces@notmuchmail.org designates 2a01:4f9:c011:7a79::1 as permitted sender) smtp.mailfrom=notmuch-bounces@notmuchmail.org X-Migadu-Spam-Score: -1.31 Authentication-Results: aspmx1.migadu.com; dkim=fail ("body hash did not verify") header.d=kyleam.com header.s=key1 header.b=qx0J6iAP; dmarc=none; spf=pass (aspmx1.migadu.com: domain of notmuch-bounces@notmuchmail.org designates 2a01:4f9:c011:7a79::1 as permitted sender) smtp.mailfrom=notmuch-bounces@notmuchmail.org X-Migadu-Queue-Id: 5E9151FD46 X-Spam-Score: -1.31 X-Migadu-Scanner: scn1.migadu.com X-TUID: b9PLGzuaWdJ/ Jose A Ortega Ruiz writes: > yeah, that's what i use and didn't notice my error above. format-spec > is much nicer than a plain regexp subs, one can use format specifiers > like %3t and many others, but unfortunately seems to have been > introduced in emacs 27. format-spec has been present in Emacs since version 21.1, specifically c113de23613 (2000-09-19). (Some parameters have been added since then, but you only use FORMAT and SPECIFICATION in your patch.) Here's a test with Emacs 25, Notmuch's current minimum (if I grep correctly): (emacs-version) ; => "GNU Emacs 25.3.50.1 ..." (require 'format-spec) (format-spec "%b" '((?b . "fine"))) ; => "fine" At first I thought you were getting confused by the fact that format-spec has been marked as autoloaded only recently, but it looks like that was in 0185d76e742 (Fix and extend format-spec (bug#41758), 2020-06-18), which will be part of the 28.1 release. So that's not consistent with "introduced in emacs 27".