From mboxrd@z Thu Jan 1 00:00:00 1970 From: email@edgar-kalkowski.de Subject: [PATCH] Detect state changes correctly if todo state names contain German umlauts Date: Fri, 8 Sep 2017 16:00:22 +0200 Message-ID: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=_h1655322.stratoserver.net-23278-1504879233-0001-2" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:43300) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dqJpn-0003yH-0Z for emacs-orgmode@gnu.org; Fri, 08 Sep 2017 10:00:43 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dqJpi-0008HS-6L for emacs-orgmode@gnu.org; Fri, 08 Sep 2017 10:00:39 -0400 Received: from xpeter.de ([85.214.74.222]:36612 helo=h1655322.stratoserver.net) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1dqJph-00085H-Uj for emacs-orgmode@gnu.org; Fri, 08 Sep 2017 10:00:34 -0400 List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: "Emacs-orgmode" To: emacs-orgmode@gnu.org This is a MIME-formatted message. If you see this text it means that your E-mail software does not support MIME-formatted messages. --=_h1655322.stratoserver.net-23278-1504879233-0001-2 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 7bit X-Mime-Autoconverted: from 8bit to 7bit by courier 0.73 Hello fellow org-moders, as I am from Germany I use an umlaut in one of my org todo state names. I noticed that state changes concerning that state are not picked up by the org agenda view. This is due to umlauts missing from a regular expression that is used to detect lines with state changes in them in the logbook drawer. To remedy this issue I propose to apply the appended patch. Best regards, Edgar PS: Since I am not subscribed to the org mode mailing list please include my mail address in any reply to this message. --=_h1655322.stratoserver.net-23278-1504879233-0001-2 Content-Type: text/x-patch; name="0001-org-agenda.el-Detect-state-changes-correctly-if-the-.patch"; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: attachment; filename="0001-org-agenda.el-Detect-state-changes-correctly-if-the-.patch" X-Mime-Autoconverted: from 8bit to quoted-printable by courier 0.73.1 >From 6a6e75f9d42b028fd39c79896b9e13f532c4a4ed Mon Sep 17 00:00:00 2001 From: Edgar Kalkowski Date: Fri, 8 Sep 2017 15:47:49 +0200 Subject: [PATCH] org-agenda.el: Detect state changes correctly if the tod= o state contains umlauts * lisp/org/org-agenda.el (org-agenda-get-progress): Add typical German um= lauts to the regexp detecting state changes. TINYCHANGE --- lisp/org/org-agenda.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lisp/org/org-agenda.el b/lisp/org/org-agenda.el index 6ef333a..709e1ef 100644 --- a/lisp/org/org-agenda.el +++ b/lisp/org/org-agenda.el @@ -5780,7 +5780,7 @@ please use `org-class' instead." =09=09(list =09=09 (if (memq 'closed items) (concat "\\<" org-closed-string)) =09=09 (if (memq 'clock items) (concat "\\<" org-clock-string)) -=09=09 (if (memq 'state items) "- State \"\\([a-zA-Z0-9]+\\)\".*?")))) +=09=09 (if (memq 'state items) "- State \"\\([a-zA-Z=C3=A4=C3=B6=C3=BC=C3= =84=C3=96=C3=9C=C3=9F0-9]+\\)\".*?")))) =09 (parts-re (if parts (mapconcat 'identity parts "\\|") =09=09 (error "`org-agenda-log-mode-items' is empty"))) =09 (regexp (concat --=20 2.14.1 --=_h1655322.stratoserver.net-23278-1504879233-0001-2--