From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:bcc0::]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id APVpAKI9XmDiKQAAgWs5BA (envelope-from ) for ; Fri, 26 Mar 2021 21:01:38 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id OPTtNaE9XmApbgAAB5/wlQ (envelope-from ) for ; Fri, 26 Mar 2021 20:01:37 +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 D7DCC1045C for ; Fri, 26 Mar 2021 21:01:35 +0100 (CET) Received: from nmbug.tethera.net (localhost [127.0.0.1]) by mail.notmuchmail.org (Postfix) with ESMTP id D78192758B; Fri, 26 Mar 2021 16:01:31 -0400 (EDT) Received: from mail-lj1-x229.google.com (mail-lj1-x229.google.com [IPv6:2a00:1450:4864:20::229]) by mail.notmuchmail.org (Postfix) with ESMTPS id A441727585 for ; Fri, 26 Mar 2021 16:01:29 -0400 (EDT) Received: by mail-lj1-x229.google.com with SMTP id r20so8782257ljk.4 for ; Fri, 26 Mar 2021 13:01:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=hamb-se.20150623.gappssmtp.com; s=20150623; h=from:mime-version:subject:message-id:date:to; bh=bCrDHiMq3tEuJyQT+kx3He0f+t/+NF2ppVdDbLmhkII=; b=MAS2582wPoEVWpi+/qaAYdtdgfdLGhGJxdBtvpe8q8qUqY4YmlTP+/QvrvyJwyrlYa HCd+MHU5UURIdAYlZV40lBiIsB/nBmlQwzB5CWs3X3JFb9Li7ww4n+7MctoGtT5usFdk CFpaxpWd3LLKK/km9W7b4WX6LYyD6RczUL39qH3vvv3MHf8F8aUCqNmTzl7pt2VOBlhX f6EDMM+dQGNT/Me8hxblnIFXXQiijLb5502mYBRt3osxHgYEr070Om+VLrcag46NmNqH rwhki6m6aM5kcJpWjHOnW+B8sztd7VLhTEXscRH6RNGMxJYnpTdoNjBG9sWUAprlHfmd FNTA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:mime-version:subject:message-id:date:to; bh=bCrDHiMq3tEuJyQT+kx3He0f+t/+NF2ppVdDbLmhkII=; b=JB/k+Uu276ND0X+4cENXdAL60Jlx98+vaT23Sq7PPyRHudNfeiJ085lhpz7Rhh93+7 iD5jycUrDFlC/3hVM1pMF5ZdcI6wkBKCvVwl8B/vr845YXOXooPKf9EmYeWvtfIsGi9B OoO3Aq4pdljWA/tVo3/wIRT1qHxq5LQIJoys9wYeu6mFZot6eolL0niIKdY71sRyMWFz MubBfG9W69XHmN2JdXHhNfYBzCUrfOPUaPTMnHdbwha6ISniHtACFaaH6tAEOHixP9ze OfLgSPpDLeB1+WPYGG8YoAefAKji8zjjhQbldwRLVj3VBZtlggyp7pTWRMlNbcE6Mply LJvQ== X-Gm-Message-State: AOAM532IZaLX6WM0E2p8qFSYw86lROOf4rNI+BpUmCFfXNWV51ZF3DDK Lfd5kEXs5sP0iIGaHSHOPvHcYb1/j6mUZCPOMb7VZ8E8qS8D+uS+1Wwu3IViL0iKnH5wjhUxiBh 1HO4h0vZbLKBj4KcMtQzwGuNBOsMlTXnrsp4XbITL3aUdUIWg/7bXh1iSRVrOIcQ= X-Google-Smtp-Source: ABdhPJwSb/vtZ2Y9Y0ubBcYBbzAJxOVx5/ZgzOy0cvQnraAGrLRrmwiiPfUjs5o1c++XeTuuAvbrDg== X-Received: by 2002:a2e:994f:: with SMTP id r15mr9582304ljj.386.1616788887936; Fri, 26 Mar 2021 13:01:27 -0700 (PDT) Received: from [10.30.0.27] (78-72-37-101-no516.tbcn.telia.com. [78.72.37.101]) by smtp.gmail.com with ESMTPSA id i3sm1288387ljj.82.2021.03.26.13.01.27 for (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Fri, 26 Mar 2021 13:01:27 -0700 (PDT) From: Sami M'Barek Mime-Version: 1.0 (Mac OS X Mail 14.0 \(3654.60.0.2.21\)) Subject: Notmuch emacs string-trim Message-Id: <58AA8C95-8C48-41B7-BECE-2205A5EA1654@hamb.se> Date: Fri, 26 Mar 2021 21:01:26 +0100 To: notmuch@notmuchmail.org X-Mailer: Apple Mail (2.3654.60.0.2.21) Message-ID-Hash: KN5VMJPPD6T7CSB5DP3N4GXKEMLO7QEB X-Message-ID-Hash: KN5VMJPPD6T7CSB5DP3N4GXKEMLO7QEB X-MailFrom: sami@hamb.se 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="===============4238299090288250192==" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1616788897; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type:list-id: list-help:list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=x1287prpTL7RloSwJn0GVwhGle0sXp75LVkAdknf6f8=; b=KEi64CdAw0BI1t2Ud/Kfqlw191TehPR8Di7J+t6eEBABssCQAywgOzxLoYE7zUkMZlH7wh W1Znrj1Vjpi2RjovG+0JnTws+S6oyEkKu8GSv/iDbuFrlmKAQTPho57zOQkoxL+blJYpD4 Fs5xf+ZFXNPlLM0ibyhsywXjetnzr3OXUoldJmMusnYWw9ZblW6Y8qmWsP0QO1ndIcYO9i NIIeMqF9o0T6Uj6u5FJruyNigxRLX3qvCA+yXk+1Z5HPLAyey1L7RH+w4sXVe8isBD2Bkv U4Go0Xu3Mi3yGfE4Q3wlh//Cck0YakGXzrmlv60tRpvZzuPHUeOBw9wW1cJqFw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1616788897; a=rsa-sha256; cv=none; b=GYLphIJgoy2Qkv4ODNZ1+DTuz/MJJg5MrKjpMjXZfcDYN3aRFaII+GuCx23i0u0rea2EJ0 ms0h2KC3XCrT43zlmsRhQlRcDxEaAHJYd/NFxsyrlfmCnzqVA3IR7ux4TP8t5OxulyZwVx EhGlpkvnvSHCdVFAPixZwMduPgz6ZQNZ8w9iEVT1zoRZEqMSSCYV5utP0cuaBR6ux7xDvk DCor+c3Ix8zoc9WXwsATItO3/WrjZe/W2DnTkk7TW/QadthbQ3B/6lTAkk8P4hxetfLxdk o2hKv7kqxIvgryAX9mi4m0M7vLyMZodyOeVSt15aASOZ09ddgDaQJKTDPUwMxQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("body hash did not verify") header.d=hamb-se.20150623.gappssmtp.com header.s=20150623 header.b=MAS2582w; 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.43 Authentication-Results: aspmx1.migadu.com; dkim=fail ("body hash did not verify") header.d=hamb-se.20150623.gappssmtp.com header.s=20150623 header.b=MAS2582w; 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: D7DCC1045C X-Spam-Score: 0.43 X-Migadu-Scanner: scn0.migadu.com X-TUID: jyWLEcULXwA/ --===============4238299090288250192== Content-Type: multipart/alternative; boundary="Apple-Mail=_44B49F50-3F7F-493D-9D9A-73F275C3451E" --Apple-Mail=_44B49F50-3F7F-493D-9D9A-73F275C3451E Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 Hello, I was just trying to get back into my notmuch solution in emacs and = noticed the notmuch-hello-search function has changed =46rom the looks of it on GitHub the commit = 8d701cdc997a1310efb2b6e08b95d705da9062e6 changed how the function works = as Emacs 24.4 goes string trimming natively. Not sure if I have miss understood this but string-trim still needs an = argument to what it=E2=80=99s supposed to trim, just like the older = version in notmuch did (notmuch-hello-trim). When invoking something like notmuch-hello-search =E2=80=9Ctag:unread=E2=80= =9D in emacs I get =E2=80=9CWrong type argument: conspiracy, = =E2=80=9Ctag:unread=E2=80=9D=E2=80=9D. I=E2=80=99m assuming this relates = to the switch between notmuch-hello-trim and string-trim. Best regards Sami= --Apple-Mail=_44B49F50-3F7F-493D-9D9A-73F275C3451E Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=utf-8 Hello,

I was just = trying to get back into my notmuch solution in emacs and noticed the = notmuch-hello-search function has changed

=46rom the looks of it on GitHub the = commit 8d701cdc997a1310efb2b6e08b95d705da9062e6 changed how = the function works as Emacs 24.4 goes string trimming = natively.
Not sure if I have miss understood this but = string-trim still needs an argument to what it=E2=80=99s supposed to = trim, just like the older version in notmuch did = (notmuch-hello-trim).

When invoking = something like notmuch-hello-search =E2=80=9Ctag:unread=E2=80=9D in = emacs I get =E2=80=9CWrong type argument: conspiracy, = =E2=80=9Ctag:unread=E2=80=9D=E2=80=9D. I=E2=80=99m assuming this relates = to the switch between notmuch-hello-trim and string-trim.

Best regards
Sami
= --Apple-Mail=_44B49F50-3F7F-493D-9D9A-73F275C3451E-- --===============4238299090288250192== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline --===============4238299090288250192==--