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 iGtPIbCBGmFmRwEAgWs5BA (envelope-from ) for ; Mon, 16 Aug 2021 17:18:08 +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 wEXTHLCBGmHJCAAAbx9fmQ (envelope-from ) for ; Mon, 16 Aug 2021 15:18:08 +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 A0B8C7DC3 for ; Mon, 16 Aug 2021 17:18:07 +0200 (CEST) Received: from nmbug.tethera.net (localhost [127.0.0.1]) by mail.notmuchmail.org (Postfix) with ESMTP id 498EA1FC4C; Mon, 16 Aug 2021 11:18:03 -0400 (EDT) Received: from fethera.tethera.net (fethera.tethera.net [IPv6:2607:5300:60:c5::1]) by mail.notmuchmail.org (Postfix) with ESMTP id 838841FC30 for ; Mon, 16 Aug 2021 11:18:00 -0400 (EDT) Received: by fethera.tethera.net (Postfix, from userid 1001) id 354B65FD5C; Mon, 16 Aug 2021 11:18:00 -0400 (EDT) Received: (nullmailer pid 1584251 invoked by uid 1000); Mon, 16 Aug 2021 15:17:56 -0000 From: David Bremner To: Alan Schmitt , notmuch Subject: Re: notmuch-tag failing on trailing space In-Reply-To: <87sfz9iwwo.fsf@m4x.org> References: <87im0w6u5r.fsf@m4x.org> <87sfz9iwwo.fsf@m4x.org> Date: Mon, 16 Aug 2021 08:17:56 -0700 Message-ID: <87a6lh8lln.fsf@tethera.net> MIME-Version: 1.0 Message-ID-Hash: TVXKLNZ6MDP7E62KJIJ2YHYA6J5O5NJK X-Message-ID-Hash: TVXKLNZ6MDP7E62KJIJ2YHYA6J5O5NJK 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 ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1629127088; 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-unsubscribe:list-subscribe:list-post; bh=dejEjrwDUzbclGmEgJm1kcLW59zJMxJDtNZN1iVX8YU=; b=hV7c/vZbsOnH3nx+85C5YGMYhsMS1oGu3xcW3I4SysCaRQwg38I3KthsI67D6DJ0/NWrqv JTd1kFvB6acDD3t9Wu1nYnQn3fsIIK63KExuSYG1c/hyPk6fuWXoN1xzRN0FyCzUA1y8Hs SpU6s72vRbV1f8iuv4Ep/4nmKKVksQyyGUBJIGYecvZNnLDe3dXXtUGUVchQadT8Dfag/L nHo5oQHPVXzg/010vc2VijrbGkHrdhdWWh0dfwGYrxJrLd9hMJXtELbkbN2IXsjWfSuklZ SSfTIhH000BNqW2DhgJHRtCTvZWwPAZdsIuAWNCub83SPwYajyChtAbvIvIjNg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1629127088; a=rsa-sha256; cv=none; b=DKuef69T6uaI1mkLvM9hH5iMFV1uQYf2QS6YllBnTQ70dhWxMKo56eGcZwUTV3e/TbbBhB r1IR+RePHAAnt9jtXZ80l5pyau7vVIT6Zn3knT2G5Uq/m7tNdwCpT320QRNZFPk1pGDx2+ F1f3Xog2HG4TXZXHnOdxsOzYpxCLdrvhuRXd5mOn7pVvw4GQlwIvREFGcRy1+d6U5iK6mb jSIF73MrTWsnncdizXzNcxU8dh6cAia3MvgD8ONRBxFN7EfI6mmeVzYwVhuc6wtTDQFfth cSWwUoATtn9/6XjjBUWnOGwL6G4CjekRib4xFmLNdRKxNt2NgQA8mH1bu//QiA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; 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-Spam-Score: -0.54 Authentication-Results: aspmx1.migadu.com; dkim=none; 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: A0B8C7DC3 X-Spam-Score: -0.54 X-Migadu-Scanner: scn0.migadu.com X-TUID: Dt2X3ZZkeQDf Alan Schmitt writes: > > #+begin_src emacs-lisp > (defun trim-tag-changes (args) > (list (car args) (mapcar #'s-trim-right (cadr args)))) > (advice-add 'notmuch-tag :filter-args #'trim-tag-changes) > #+end_src > > Could it be integrated directly in the notmuch-tag function? > 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. d