From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id kEl5OdOJGmF+UwEAgWs5BA (envelope-from ) for ; Mon, 16 Aug 2021 17:52:51 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id IEX8NNOJGmEKIAAAbx9fmQ (envelope-from ) for ; Mon, 16 Aug 2021 15:52:51 +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 6976C9405 for ; Mon, 16 Aug 2021 17:52:51 +0200 (CEST) Received: from nmbug.tethera.net (localhost [127.0.0.1]) by mail.notmuchmail.org (Postfix) with ESMTP id CE8A81FCCE; Mon, 16 Aug 2021 11:52:47 -0400 (EDT) Received: from mx1.polytechnique.org (mx1.polytechnique.org [129.104.30.34]) by mail.notmuchmail.org (Postfix) with ESMTPS id E4AD71FCC6 for ; Mon, 16 Aug 2021 11:52:44 -0400 (EDT) Received: from set (unknown [109.190.253.11]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ssl.polytechnique.org (Postfix) with ESMTPSA id DB751561249; Mon, 16 Aug 2021 17:52:38 +0200 (CEST) From: Alan Schmitt To: David Bremner , notmuch Subject: Re: notmuch-tag failing on trailing space In-Reply-To: <87a6lh8lln.fsf@tethera.net> References: <87im0w6u5r.fsf@m4x.org> <87sfz9iwwo.fsf@m4x.org> <87a6lh8lln.fsf@tethera.net> Date: Mon, 16 Aug 2021 17:52:18 +0200 Message-ID: <87bl5xidzh.fsf@m4x.org> MIME-Version: 1.0 X-AV-Checked: ClamAV using ClamSMTP at svoboda.polytechnique.org (Mon Aug 16 17:52:42 2021 +0200 (CEST)) X-Spam-Flag: No, tests=bogofilter, spamicity=0.002870, queueID=4E6EE56124C X-Org-Mail: alan.schmitt.1995@polytechnique.org Message-ID-Hash: 6GO4U5T7HYC4M4IXHIFNYMIIEBQL2U2T X-Message-ID-Hash: 6GO4U5T7HYC4M4IXHIFNYMIIEBQL2U2T X-MailFrom: SRS0=bfKz=NH=polytechnique.org=alan.schmitt@bounces.m4x.org 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: multipart/mixed; boundary="===============0646635261302389037==" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1629129171; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post; bh=TEntYSUHETQ3WcdU2gNNaEMVvVPCU3+tWlkMlQweTcE=; b=KKQ41fs+2+OBNcy32lyoUMEIWEkBK8/zVG6ZYZXqw6XQqXgUwY9WjpXG2EPX/OFVmpNSVw UWAsXN0rexx4qoasTddjFvQnvDMnYkBmelnShbhQmKK1sIqIPI4DX7n+A6QHwoRyRnUP/s sqalxKdDyp1D34FIARf9cl2j6UkUONEJofhZ2rEUWqtMecPgxzR2bsNHZAcejpEHQKGsoD 9Fp4DevVBtz7vFZBYJ+37FyxMd/aS0IRm/20v/0JHoZn3ZPzutmHjcMdJlNzoc2PtjzBhq ul/ySu4gbozW1uQoTkiLuhPJ/+QaD+chTkB8R7u77nsrjluNqGsww+H0YchTTQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1629129171; a=rsa-sha256; cv=none; b=S6gmpAOMU43rvwvKeXOfSsi9KoSjaOu859974RQAFwNOlKUnisXvpfK4Z0ndJ8J1ZxZPsA KqB9Pk4B2aOeIYpT8WoUVqL1fJRSHOL0vyYnLSBGW9GFkdqoDUhEw42qb54LKj73beDecT +3PXgc2QGNLwEATPp54bQmmgVuEyX9mRzdrg+VAU/q6Orz/WSz/islSzeeRCS5HQPSHuSD 2Sy26zpcmE+ej0PufHr2q/EMMATGfjit2/qLr9sA8u5/SjRiJLX0DrEHJtlbVuyPqT/WNt gxOaw47QSg8MBUIDzGcPxbpeTfFi3N6TSB8/9tyNGwC6vgNRw4IjdgFJ3P+3dg== ARC-Authentication-Results: i=1; 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-Spam-Score: -2.57 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: 6976C9405 X-Spam-Score: -2.57 X-Migadu-Scanner: scn0.migadu.com X-TUID: 7q+DbxOvwaJL --===============0646635261302389037== Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable On 2021-08-16 08:17, David Bremner writes: > That particular function won't work for us because it would introduce a > new dependency on s.el. But if someone wants to make an equivalent using > only core emacs functions and integrate it into notmuch-tag, that seems > likely OK to me. What is the minimal emacs version notmuch requires? Because if it=E2=80=99s above 24.4, we could use string-trim-right: string-trim-right is a compiled function defined in subr-x.el.gz. Signature (string-trim-right STRING &optional REGEXP) Documentation Trim STRING of trailing string matching REGEXP. REGEXP defaults to "[ \\t\\n\\r]+". Demos :PROPERTIES: :added: 24.4 :changes: 26.1 The optional REGEXP argument is added. :END: Best, Alan --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQFTBAEBCAA9FiEE6lXof/BsSVW56ZmGBA0KO07S5ccFAmEaibIfHGFsYW4uc2No bWl0dEBwb2x5dGVjaG5pcXVlLm9yZwAKCRAEDQo7TtLlx9L9B/9+NOvOXy44HjWc 2A6GtQ6T+sZgU8402HPXKT5HxgBJCJokcM1maQYa0qXfQF2kxiRe+T776806YYg+ QiI4ZMYvTE3SWETkvbyEHR6y89Mp90XM0wUtH5j178LnWCwRVEtEGeKTdrHMfdn2 ep7J5uzffgEootv4yYYp9Q03NqCPUbEUxQ50CqCJNbw26Qs7FOxWWWBhSqGdENwD cHINUeaL0WSBxzlDecr8aDjURe8Cgubqcn/v9Xh/TVwPBqlARSA/t4daYBA01PXl zhn6z56AAK37cgSnr+FbFZNzIlQm5mKlE1c6m0iaZkHa5ikiY3M5N8nlAzXN7GDR JIHMy50q =/+EH -----END PGP SIGNATURE----- --=-=-=-- --===============0646635261302389037== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline --===============0646635261302389037==--