From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id SK8pL+zYFWPmegEAbAwnHQ (envelope-from ) for ; Mon, 05 Sep 2022 13:09:32 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id aP4UL+zYFWNX2AAAauVa8A (envelope-from ) for ; Mon, 05 Sep 2022 13:09:32 +0200 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 4E1CB144A9 for ; Mon, 5 Sep 2022 13:09:32 +0200 (CEST) Received: from localhost ([::1]:42928 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oV9yt-0000Td-3u for larch@yhetil.org; Mon, 05 Sep 2022 07:09:31 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:37838) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oV9bA-0004sv-0R for emacs-orgmode@gnu.org; Mon, 05 Sep 2022 06:45:02 -0400 Received: from cpu0.net ([5.39.76.37]:54968) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oV9b7-0000p1-MN for emacs-orgmode@gnu.org; Mon, 05 Sep 2022 06:44:59 -0400 Received: from smtpclient.apple (unknown [86.56.77.179]) by ks-mail.localnet (Postfix) with ESMTPSA id 84A3880095; Mon, 5 Sep 2022 12:44:54 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=irq0.org; s=201509; t=1662374694; bh=+4KQS8wAPg582da4KK7IaPV2CbEQNeuxhNb0zwEE4bc=; h=Subject:From:In-Reply-To:Date:Cc:References:To:From; b=xfTroY2ZVdFA0mqqrvRYNFxDG+4FpKNv+fx8IXzs3526VvzJEKJTY9GZXWABsrULG IVxFr69WHblMB9vDMcb853AxP3eBdgAuIP8zyRXoynjxBOPvGIljB2IbTo44Mfub+I OgjBetE17BTiAkljPj0bOXwZL+PfAUgbVIzg9eOQ= Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3696.120.41.1.1\)) Subject: Re: Unicode TODO keyword issues in agenda search leading to org-scan-tags regex From: Marcel Lauhoff In-Reply-To: <87pmgaw1vt.fsf@localhost> Date: Mon, 5 Sep 2022 12:44:53 +0200 Cc: emacs-orgmode@gnu.org Content-Transfer-Encoding: quoted-printable Message-Id: References: <87r10s98od.fsf@localhost> <87pmgaw1vt.fsf@localhost> To: Ihor Radchenko X-Mailer: Apple Mail (2.3696.120.41.1.1) Received-SPF: pass client-ip=5.39.76.37; envelope-from=ml@irq0.org; helo=cpu0.net X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Migadu-Flow: FLOW_IN X-Migadu-To: larch@yhetil.org X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1662376172; h=from:from:sender:sender: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-unsubscribe:list-subscribe:list-post:dkim-signature; bh=+4KQS8wAPg582da4KK7IaPV2CbEQNeuxhNb0zwEE4bc=; b=RGdyquuAQsshxE2AMLGtDWKcZhn62e7M2yb7vQgL78m9thrpJLmPNURBv3nNw83VuccTFq Hv6bp0ExHc1dwRO1IAx9MduGIBGOXntHLawEqKlfz5n8sOyYhmFH57tmGFzQlucXgmjKkr QpO751rAhmZ/bZU1F/r+IJafGqtXasr9TCpsYxSmZVjDublxotG6MvMEPA00Gq6DxS+jgA TH1YxZVUWw8QRRGCjPC2HB8CLIC1OtEEP0q0j3xZscCo/m1BI+Be0tFFlLp2awEMZNyPEL AchU5IDUabyrTr8T250WAyOV5IzzK3qIq52As7iqTKOqu546iAhMFmXmU7ayiA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1662376172; a=rsa-sha256; cv=none; b=kzmul8AOC7+aTqKkHofS7vVQ1ZN5TT1d7ZzwvMHi+MGYZWcjQQbBmuUOjWrxOK5WQUS7Rt RIbPg/qOxlVRJGCXo+8ZDBb/3qGMUnqjnjuj7Bc+40VnfM/XZQvJYssPBE388AGe9cOQgJ GpxGS09HijGaaHK0MFG7r5dTojcXbQeQRYbM6srlaGggv+9zNiLImFs8wiSEz4K/jv6agL GM44jUBe4QVj76a9TUIA7rc/Q3K2ygnY833FrJX6kTwn5PMvxsFKixwodNxVnChDMarFNy kaNUdyJ2owAS5q3AV4VmZXcsflWAXS0GsWBr51MKj1FbtZGf6n81akwp8tyxVA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=irq0.org header.s=201509 header.b=xfTroY2Z; dmarc=pass (policy=none) header.from=irq0.org; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: -3.27 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=irq0.org header.s=201509 header.b=xfTroY2Z; dmarc=pass (policy=none) header.from=irq0.org; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: 4E1CB144A9 X-Spam-Score: -3.27 X-Migadu-Scanner: scn0.migadu.com X-TUID: hfrsqzbzj2ew > On 2022-09-05, at 12:29, Ihor Radchenko wrote: >=20 > Marcel Lauhoff writes: >=20 >>> Thanks for reporting! >>> Fixed on main via a1c923afd. >>> = https://git.savannah.gnu.org/cgit/emacs/org-mode.git/commit/?id=3Da1c923af= da22089cbf14c7b7a175cee10bfd297b >>=20 >> =E2=94=8C=E2=94=80=E2=94=80=E2=94=80=E2=94=80 >> =E2=94=82 - " *\\(" (regexp-opt org-todo-keywords-1 = 'words) "\\)?" >> =E2=94=82 + " *\\(" (regexp-opt org-todo-keywords-1 = 'words) " \\)?" >> =E2=94=94=E2=94=80=E2=94=80=E2=94=80=E2=94=80 >>=20 >> That change doesn't seem to work for me, but maybe I'm holding it = wrong or missed a follow up commit. >=20 > Oops. You are indeed right. I forgot to remove the 'words argument. = Now > fixed (hopefully). > = https://git.savannah.gnu.org/cgit/emacs/org-mode.git/commit/?id=3Deeb4fa8c= 09e6e21b86bec51328e53b4adf662945 I think it should be " *\\(" (regexp-opt org-todo-keywords-1 t) "\\)?" 1. Without the 3rd argument regexp-opt generates a non-capturing group. = 'word generates a capturing group. 2. With the additional space in " \\" I'm no longer able to match any = todo in my org files. >=20 >> The following snippet tries some regex variations matched to one of = `("TODO" "=E2=89=A3" "TODO " "=E2=89=A3 ")'. a1c923afd does seem to = require a space after the keyword now: >=20 > Org requires a space after TODO-keyword in headlines. TODO-keywords > themselves do not need to have space. Yes, I added the space variant to test the "\\)?" -> " \\)?" part of the = change. ~marcel=