From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id 6MiHJhSJBGGmFAEAgWs5BA (envelope-from ) for ; Sat, 31 Jul 2021 01:19:48 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id gDQGIhSJBGH3XwAAbx9fmQ (envelope-from ) for ; Fri, 30 Jul 2021 23:19:48 +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 2DA2B18996 for ; Sat, 31 Jul 2021 01:19:48 +0200 (CEST) Received: from nmbug.tethera.net (localhost [127.0.0.1]) by mail.notmuchmail.org (Postfix) with ESMTP id BB0882923F; Fri, 30 Jul 2021 19:19:45 -0400 (EDT) Received: from mail-lj1-x235.google.com (mail-lj1-x235.google.com [IPv6:2a00:1450:4864:20::235]) by mail.notmuchmail.org (Postfix) with ESMTPS id 29F531FAC0 for ; Tue, 23 Mar 2021 10:40:52 -0400 (EDT) Received: by mail-lj1-x235.google.com with SMTP id f26so25933925ljp.8 for ; Tue, 23 Mar 2021 07:40:52 -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=FhNmWN2pdSx+3gAGUW1NkHASwXx1BbA/AKpM3q446pA=; b=ZllKsw5nzye+axxIQ4lp0A2n1MK72eDjRK565bl+QkKFaiMdJzNOX7PIdTHbmPtgax tH5aVp9T7rU78HvPDSKghHoXZ1zUqflurR3gwAO43aRnRwoTStpPPl8KhVzk7GRkHs04 JjmnamU2o8fwBVzj2D9n6Y39M1nnPieM2do2i0D58q/nQKmTjVn1ZYNxx4lYviYhfPzo tt2y48u8bfHsqJqIglfFqkQp0buQ/Ta5jBae/dt3NL2ERwcPRLDqD6gqA9eZEdwRUN/l +NxQACAwoB2msbspI2HRBFEc5HUdzYOfdamP3cvKKMBgG3qga3X9dHDXaU2IhjGWqFf2 vq8A== 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=FhNmWN2pdSx+3gAGUW1NkHASwXx1BbA/AKpM3q446pA=; b=Ls37civP7qYrOKNNAwSYSlElEueoso9EtyaZAoI5fZ8L+S6ezlrg51XYbOB5NFSx/K f+g0V7NWlUArM5MbUCuiJhHEZvbGQAzwNqZmnRaxwDrau9jgmNZbsOS16wl+MQMySnZg nDF80t2OtwTdtR3tzoEbPzVC4Ec+DCzbcBCte/X3/WUpFP7aMk+HPK9/VbEE97F//HXg YGCTPi5gpcsQ5PKYtSPE+sfUVjQgreWmQyYElfoAUGmTXeJnfzJ9NPStnyO462G+z4zQ KnZQvQSq+fwx/vMIOHcqAaaTLWZNsuSDCwDKo19nQUXDpghjkuItuxgGSW16jSz9pHyd Ce7A== X-Gm-Message-State: AOAM533ZJCHZmEQAXeSbY+/9d5xExekuBNldPMLFTnaAUUQtNwX15342 tFInUmFGhve6q7LxffverWjl6LH15Bhvsz12AKPG77EB7OvZ3L435ka/Dq35TOoECqIFRvc2oee YPZhzpFz5MAQCkthHErL6Zz1d83Cnjk/GzHNGcj78k28qfwu4TXS4wT6+e64Qy0w= X-Google-Smtp-Source: ABdhPJwmhi4Z4LxhiTEpoDelHwPzacavHTO5ZI4lb29LHHvGraJZnM+1d16jAz0rJDE7Z8q6opvFkQ== X-Received: by 2002:a2e:b55a:: with SMTP id a26mr3306675ljn.297.1616510447934; Tue, 23 Mar 2021 07:40:47 -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 c3sm2427926ljh.27.2021.03.23.07.40.47 for (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Tue, 23 Mar 2021 07:40:47 -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: Date: Tue, 23 Mar 2021 15:40:46 +0100 To: notmuch@notmuchmail.org X-Mailer: Apple Mail (2.3654.60.0.2.21) X-MailFrom: sami@hamb.se 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 Message-ID-Hash: IPAZTEZBFZL5UUIKWW5UXKEUSBIQKXDX X-Message-ID-Hash: IPAZTEZBFZL5UUIKWW5UXKEUSBIQKXDX X-Mailman-Approved-At: Fri, 30 Jul 2021 23:19:42 -0400 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="===============3163859478690681557==" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1627687188; 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=zDgNrEB8cCyWlSxgPuttG2QM5LM1DuNZTYVuvEB0MK8=; b=hdhnXicgr1mm1iNmyHQiEUPfx3PBwPavP6s8NuGNGSYVa7vKU1jn0E/uGACubQCO8LL/k1 FhWP/PkB8wyTaGEhgaaVViQlZ8G62OGF7oCnrWb8P89ZIbXrhVhESx7CqGZLv8RwAkybzU 8bQF78R1tKpVpvGNnj7cYalqHaVlpVVtgD5TAaVCojvsiz/U6hgEBitxhci/Y/gXh5QtGQ tuIoKx8OWg4SX4mYE1r2i8LCWXg4IsxhDqx4TnwjC6x0lOfW57xoGLW+AmBIGyhGrH44hE Yo5e2FS97e80q9mKpWf5TcvhFVGDTrKDlM8cjr9rj1dj5nyrh1FQX7FZmDWsag== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1627687188; a=rsa-sha256; cv=none; b=fCILD5cyZAAArpoLTBRPum+6EUIvxAaJ7G8QgJXSN5H+0Z6gwkZnJJSNv73OLIHlTM/cJA Xs6FO2Sz0CuwDYHZSvg29AmoHpp4gzJ08Vkq3WcnEOfCaKmG/Nzm6WRclEAAPCvwHeb/rH +J5fbSnf4gjZkM85XZjBxo6JHjG2n+jlpyJuouuAGe1vRGI5mnzKsbKNuFkTnoTVu1VImL kaLzJQfkWcZ8lslWP5J3cvt3RltNRtZB5hdXwOCHC0SjPWyLF4RJJhoI0lkBQLhHN+4DV+ WU9H7sO/1IwtbTwHYXpZqMWeQTcY2qXjbccVZFYLBnGtKGufhAkkFTpDsIzMOg== 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=ZllKsw5n; 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: 1.52 Authentication-Results: aspmx1.migadu.com; dkim=fail ("body hash did not verify") header.d=hamb-se.20150623.gappssmtp.com header.s=20150623 header.b=ZllKsw5n; 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: 2DA2B18996 X-Spam-Score: 1.52 X-Migadu-Scanner: scn0.migadu.com X-TUID: JVCU8PyX0NVO --===============3163859478690681557== Content-Type: multipart/alternative; boundary="Apple-Mail=_B7D6959B-2D45-4873-9FD2-63A8B79DDBC2" --Apple-Mail=_B7D6959B-2D45-4873-9FD2-63A8B79DDBC2 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=_B7D6959B-2D45-4873-9FD2-63A8B79DDBC2 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=_B7D6959B-2D45-4873-9FD2-63A8B79DDBC2-- --===============3163859478690681557== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline --===============3163859478690681557==--