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 ms11 with LMTPS id 6JljFSxIa18HAwAA0tVLHw (envelope-from ) for ; Wed, 23 Sep 2020 13:05:48 +0000 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 cNNLESxIa18CWwAAbx9fmQ (envelope-from ) for ; Wed, 23 Sep 2020 13:05:48 +0000 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 E7D7594042B for ; Wed, 23 Sep 2020 13:05:46 +0000 (UTC) Received: from localhost ([::1]:41444 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kL4Sv-0006sN-DH for larch@yhetil.org; Wed, 23 Sep 2020 09:05:45 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:55592) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kL4QC-0005xC-52 for emacs-orgmode@gnu.org; Wed, 23 Sep 2020 09:02:56 -0400 Received: from mout-p-102.mailbox.org ([80.241.56.152]:46802) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_CHACHA20_POLY1305:256) (Exim 4.90_1) (envelope-from ) id 1kL4Q4-0001Bm-QB; Wed, 23 Sep 2020 09:02:55 -0400 Received: from smtp1.mailbox.org (smtp1.mailbox.org [IPv6:2001:67c:2050:105:465:1:1:0]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-384) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mout-p-102.mailbox.org (Postfix) with ESMTPS id 4BxJHj0JbfzKmcP; Wed, 23 Sep 2020 15:02:41 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=mailbox.org; h= content-transfer-encoding:content-type:content-type:mime-version :message-id:date:date:in-reply-to:subject:subject:from:from :references:received; s=mail20150812; t=1600866158; bh=27giKaPJI ujt/pllvlrlIMr7b1rbfXwtrkStaQ9Tq/8=; b=wGC/bcyI5HbA1NR0Go/glRUR1 qz8ipe/eGM1DWZIDxISEc2lsItP3Efl2AaLwCFTSbHIMlOcMT5iy27oK4dEMEBJC TOn5OA1fLIb93uQRINFgleznKOhtP7nSfgeSrHkXp8c1TrjRrLHnOEgNmrgugHtW 9aPTDGPgnSWJ0I1tYgVu52AbvCpbJp8saWDWgIxd1l8dfUw+fOqTs0yyUtQiC2gK L1F3iFfvA2AHiuPG3bAgzpOy4FqlYe9MiHkp180mTcmDJH+146zVl2bzU15/U7MY VOTbjLSTR7B3XrM8fi+mHctz493xA1lzVFl4tNzve8LBoubghQC2T4fJqyEUg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mailbox.org; s=mail20150812; t=1600866159; h=from:from: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; bh=es+6PyBo5dOTKsjuKTf/7t/BAJegs2zz7TapYghb0S8=; b=cRwZHgHHZ992yOQawEfq2fW3dGtP+pCwSiqH9xRGtTTWQr5tdjUkE7YzIqSw/FfV7iH5gF vkMe8607DJNMgVrCilvjWlZP4Xv2po1kLvGuMCYDIgIw6XNB0Gwa0MMMMPByCKctGeQ/6o Mu74vWt3vI6mP2+aIv5NhVBaPT8xK5Mx/ecyheObrtzme+h3EgDXIANW1Auk52dO13TxZm yD/brDclSp1NhEfqPdJWoktiH6g1hu73zNGJwRZegMI2oOPLVpCQ5mnfNnV+n5ldpisCK4 n/taUUFwWGkWARyzGIibltNeAkBfQN5R8fsN8piUE8E21T4OVF40K+Ysf8zsaA== X-Virus-Scanned: amavisd-new at heinlein-support.de Received: from smtp1.mailbox.org ([80.241.60.240]) by spamfilter02.heinlein-hosting.de (spamfilter02.heinlein-hosting.de [80.241.56.116]) (amavisd-new, port 10030) with ESMTP id 3ikziqegh29s; Wed, 23 Sep 2020 15:02:38 +0200 (CEST) References: <87a6yrt3vl.fsf@mailbox.org> <65B913C9-8307-43F9-BA1A-D0A5DA7CFF1B@mailbox.org> <87o8mlilgp.fsf@gnu.org> From: Andy Drop To: emacs-orgmode@gnu.org Subject: Re: Bug: Unicode ORG-TODO-KEYWORDS not recognized in agenda's stuck projects [9.3.6 (9.3.6-4-gdfa7a3-elpa @ /home/andy/.config/emacs/elpa/org-20200217/)] In-reply-to: <87o8mlilgp.fsf@gnu.org> Date: Wed, 23 Sep 2020 15:02:37 +0200 Message-ID: <87sgb8y7bm.fsf@mailbox.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-MBO-SPAM-Probability: X-Rspamd-Score: -3.30 / 15.00 / 15.00 X-Rspamd-Queue-Id: EE79717EB X-Rspamd-UID: 8419fd Received-SPF: pass client-ip=80.241.56.152; envelope-from=drops@mailbox.org; helo=mout-p-102.mailbox.org X-detected-operating-system: by eggs.gnu.org: First seen = 2020/09/23 09:02:41 X-ACL-Warn: Detected OS = Linux 2.2.x-3.x [generic] [fuzzy] X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 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, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Bastien Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Scanner: scn0 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=mailbox.org header.s=mail20150812 header.b=wGC/bcyI; dkim=pass header.d=mailbox.org header.s=mail20150812 header.b=cRwZHgHH; dmarc=pass (policy=none) header.from=mailbox.org; spf=pass (aspmx1.migadu.com: domain of emacs-orgmode-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org X-Spam-Score: -1.71 X-TUID: 8hTtKi4SNhT4 Bastien writes: > Hi Andreas, > > I don't see what can go wrong with unicode symbols for TODO keywords > when listing stuck projects. > > ... find `org-agenda-list-stuck-projects' ... > > Go at the end of the function and instrument it with C-u C-M-x then > list stuck projects and see where the function chokes? I just had the time to give it a deeper look. I can reproduce it with a clean install of org 9.4, and I think I found the problematic code file org-agenda.el: (defun org-agenda-list-stuck-projects (&rest ignore) . . . (todo-re (and todo (format "^\\*+[ \t]+\\(%s\\)\\>" (mapconcat #'identity todo-wds "\\|")))) . . . I'm no elisp expert, but it looks to me, as if it builds a list of regular expressions for every todo keyword in org-stuck-projects (todo-re) = and it simply puts the keyword in place of the %s Each regex is then matched with every line that qualifies as a project (found by the tags-re) That works for normal keywords "^\\*+[ \t]+\\(NEXT\\)\\" matches with ** NEXT Task 1 BUT "^\\*+[ \t]+\\(=E2=96=B6\\)\\" DOES NOT match with ** =E2=96=B6 Task 1 now my elisp knowledge is completely gone, but as I understood the documentation for regex in elisp, unicode symbols have to be written something like '\u1234' (out of my head) to work in a regex. A minimal test.org: * Project :projec= t: ** =E2=96=B6 Task 1 ** =E2=B8=B0 Task 2 A minimal init.el: (setq org-todo-keywords '((sequence "=E2=B8=B0(t)" "=E2=96=B6(n)" "=E2=8F= =B8(w)" "|" "=E2=9C=94(d)" "=E2=9D=8C(c)" "=E2=8F=A9(r)")))=09=20=20 (setq org-stuck-projects '("project" ("NEXT" "=E2=96=B6") nil "")) (setq org-agenda-files '("~/org/test.org")) (setq org-tags-exclude-from-inheritance '("project")) With this config the Project is marked as stuck even when it contains a =E2=96=B6 keyword, when you change that to NEXT (which is not even a valid todo-keyword here) it becomes unstuck. Hope this helps Andy =20=20=20 =20