From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.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 UFVjOOrHFWNMXAAAbAwnHQ (envelope-from ) for ; Mon, 05 Sep 2022 11:56:58 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id cA18OOrHFWPAWgEA9RJhRA (envelope-from ) for ; Mon, 05 Sep 2022 11:56:58 +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 7298E11FE1 for ; Mon, 5 Sep 2022 11:56:58 +0200 (CEST) Received: from localhost ([::1]:43520 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oV8qf-00087c-Lp for larch@yhetil.org; Mon, 05 Sep 2022 05:56:57 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:59894) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oV8nj-00070Q-Rq for emacs-orgmode@gnu.org; Mon, 05 Sep 2022 05:53:57 -0400 Received: from cpu0.net ([5.39.76.37]:58626) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oV8nh-00016G-MB for emacs-orgmode@gnu.org; Mon, 05 Sep 2022 05:53:55 -0400 Received: from smtpclient.apple (unknown [86.56.77.179]) by ks-mail.localnet (Postfix) with ESMTPSA id C0E4D800B3; Mon, 5 Sep 2022 11:53:42 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=irq0.org; s=201509; t=1662371622; bh=dTWge4Y64Vyd9JeFlZF53KMWMP3L6W1VL029XcDA7Vc=; h=Subject:From:In-Reply-To:Date:Cc:References:To:From; b=hiLLc1ANzgd42qcpQhjUFbZYvE2GLqP1jtlWlHx0RB+ezXPhIy+jY2w/oDdxc76AU rGnARSvsK3p3oV7fChkBXBsOM6Do9cGH1X5UA8JO5XxHhYYVfQ8tfLjGnZ3IhAHCz6 /crc+CJgnujs07UhqYvI9HG/9z/11geEDrvP0vkQ= 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: <87r10s98od.fsf@localhost> Date: Mon, 5 Sep 2022 11:53:42 +0200 Cc: emacs-orgmode@gnu.org Content-Transfer-Encoding: quoted-printable Message-Id: References: <87r10s98od.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=1662371818; 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=dTWge4Y64Vyd9JeFlZF53KMWMP3L6W1VL029XcDA7Vc=; b=LrdsMQRkM5T5JZVKND1fkAam67B9rb2ODPHhi1u7JpUTPq5WqX9q0Is5kuIvufECdf7qlF 0bZuysdMlgxRfsIG3J/qieFoHKH/xOVj+3ZMiXm+3j/N8tItvBHeVfMnMsS0IsgN2QCDkQ vybtrRjwf+tidDqPyJiDSO5K7ZwMCMA7J/PUykq3+2nijMs/AkWEShgB7JXStuQTBPd11b UJYqB5BD8DyhjglbOBDbpGE2OexSdxxmbZ6WiqSkIUPI9BuFoOFnJ+Q5MBj2YjYu9MYzO7 lKVMrD3ChqLCm2wgwZpzNsApHmdxs4WXmkfYJ8ZpfCuWrbjnhNHvcF9GnQ3CfQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1662371818; a=rsa-sha256; cv=none; b=DGlcPtuipbVZ4sa2K7Grhd2d0T4Uc+x5QNTykXN+xXij4eMnuuJqlod8mc+0HSY0rzK+Fi U7zBNusUbEhU64pA38D162Oh8SjUyctuO9zT9K1gA4wyyMux4Sr3K/FFWf0LpUkL1E6x94 xxJBfnP5bIws8U8ucMb7jUsgfi09m3HfB+41F5GjeCdVn9EOKhUHxqf7wJ4lgJ89kNEcXT gKsazW1GR+UhuwIeAXW6W+r9ZYYL/c5xM2Upq2MpnepFTl20HDuW/bXLy4pqfsednJd7PF 4o60muL0Mx5f1T19oW83d87ZA2usVL5rOgavqlMcMvp9ImVikuXT/v8KekV4BQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=irq0.org header.s=201509 header.b=hiLLc1AN; 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.78 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=irq0.org header.s=201509 header.b=hiLLc1AN; 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: 7298E11FE1 X-Spam-Score: -3.78 X-Migadu-Scanner: scn0.migadu.com X-TUID: 8w8GMD7+SwMc > On 2022-09-03, at 10:14, Ihor Radchenko wrote: >=20 > Marcel Lauhoff writes: >=20 >> My TODO keywords: >> =E2=94=8C=E2=94=80=E2=94=80=E2=94=80=E2=94=80 >> =E2=94=82 org-todo-keywords '((sequence "=E2=89=A3(p)" "|" "=E2=88=8E(f= )") >> =E2=94=82 (sequence "=E2=97=87(t)" "=E2=98=85" = "=E2=8C=9B(w)" "=F0=9F=94=A5(.)" "=E2=9A=99(s)" "=E2=8E=87(r)" "=E2=8F=B5(= e)" "|" "=E2=9C=94(d)" "=E2=9C=98(c)") >> =E2=94=82 (sequence "=E2=9B=B1(m)" "|")) >> =E2=94=82=20 >> =E2=94=94=E2=94=80=E2=94=80=E2=94=80=E2=94=80 >> ... >> The `(regexp-opt org-todo-keywords-1 'words)' excludes most of my = TODO >> keywords (but not all). Changing `'words' to `'symbols' give me my >> desired result. >=20 > Thanks for reporting! > Fixed on main via a1c923afd. > = https://git.savannah.gnu.org/cgit/emacs/org-mode.git/commit/?id=3Da1c923af= da22089cbf14c7b7a175cee10bfd297b =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 That change doesn't seem to work for me, but maybe I'm holding it wrong = or missed a follow up commit. 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: =E2=94=8C=E2=94=80=E2=94=80=E2=94=80=E2=94=80 =E2=94=82 (let* ((kwds '("TODO" "DONE" "PROJECT" "=E2=89=A3" "=E2=88=8E" = "=E2=97=87" "=E2=98=85" "=E2=8C=9B" "=F0=9F=94=A5" "=E2=9A=99" "=E2=8E=87"= "=E2=8F=B5" "=E2=9C=94" "=E2=9C=98")) =E2=94=82 (test-todos '("TODO" "=E2=89=A3" "TODO " "=E2=89=A3 ")) =E2=94=82 (regexes (list (concat "^ *\\(" (regexp-opt kwds = 'words) "\\)?") ;; orig =E2=94=82 (concat "^ *\\(" (regexp-opt kwds 'words) = " \\)?") ;; a1c923afd =E2=94=82 (concat "^ *\\(" (regexp-opt kwds = 'symbols) "\\)?") ;; symbols =E2=94=82 (concat "^ *\\(" (regexp-opt kwds = 'symbols) " \\)?")))) ;; symbols + space =E2=94=82 (-map (lambda (regex) =E2=94=82 (list regex =E2=94=82 (-map (lambda (todo) =E2=94=82 (s-match-strings-all regex todo)) =E2=94=82 test-todos))) =E2=94=82 regexes)) =E2=94=94=E2=94=80=E2=94=80=E2=94=80=E2=94=80 =E2=94=8C=E2=94=80=E2=94=80=E2=94=80=E2=94=80 =E2=94=82 (("^ = *\\(\\<\\(DONE\\|PROJECT\\|TODO\\|[=E2=88=8E=E2=89=A3=E2=8C=9B=E2=8E=87=E2= =8F=B5=E2=97=87=E2=98=85=E2=9A=99=E2=9C=94=E2=9C=98=F0=9F=94=A5]\\)\\>\\)?= " =E2=94=82 ((("TODO" "TODO" "TODO")) =E2=94=82 (("")) =E2=94=82 (("TODO" "TODO" "TODO")) =E2=94=82 (("")))) =E2=94=82 ("^ = *\\(\\<\\(DONE\\|PROJECT\\|TODO\\|[=E2=88=8E=E2=89=A3=E2=8C=9B=E2=8E=87=E2= =8F=B5=E2=97=87=E2=98=85=E2=9A=99=E2=9C=94=E2=9C=98=F0=9F=94=A5]\\)\\> = \\)?" =E2=94=82 ((("")) =E2=94=82 (("")) =E2=94=82 (("TODO " "TODO " "TODO")) =E2=94=82 (("")))) =E2=94=82 ("^ = *\\(\\_<\\(DONE\\|PROJECT\\|TODO\\|[=E2=88=8E=E2=89=A3=E2=8C=9B=E2=8E=87=E2= =8F=B5=E2=97=87=E2=98=85=E2=9A=99=E2=9C=94=E2=9C=98=F0=9F=94=A5]\\)\\_>\\)= ?" =E2=94=82 ((("TODO" "TODO" "TODO")) =E2=94=82 (("=E2=89=A3" "=E2=89=A3" "=E2=89=A3")) =E2=94=82 (("TODO" "TODO" "TODO")) =E2=94=82 (("=E2=89=A3" "=E2=89=A3" "=E2=89=A3")))) =E2=94=82 ("^ = *\\(\\_<\\(DONE\\|PROJECT\\|TODO\\|[=E2=88=8E=E2=89=A3=E2=8C=9B=E2=8E=87=E2= =8F=B5=E2=97=87=E2=98=85=E2=9A=99=E2=9C=94=E2=9C=98=F0=9F=94=A5]\\)\\_> = \\)?" =E2=94=82 ((("")) =E2=94=82 (("")) =E2=94=82 (("TODO " "TODO " "TODO")) =E2=94=82 (("=E2=89=A3 " "=E2=89=A3 " "=E2=89=A3"))))) =E2=94=94=E2=94=80=E2=94=80=E2=94=80=E2=94=80 ~marcel