emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[BUG] Not all time/date strings are recognized as time in org-make-tags-


From: Daniel Hubmann
Subject: [BUG] Not all time/date strings are recognized as time in org-make-tags-matcher [9.6 (9.6-gd500b4 @ /home/hubisan/.emacs.default/straight/build/org/)]
Date: Tue, 6 Dec 2022 15:14:51 +0100

After updating to Org 9.6 this match in the agenda 'SCHEDULED<"<+2d>"+SCHEDULED<>"' shows all scheduled items event if they are far more in the future than 2 days.

Tracked this down to a commit (e022a0cea11a0e784ba20ac478a033da7fb1bb7f) that changed the regular _expression_ to recognize timestamps:

-    (timep (string-match-p "^\"[[<].*[]>]\"$" pv))
+    (timep (string-match-p "^\"[[<][0-9]+.*[]>]\"$" pv))


If I understand it correctly, this new regular _expression_ only matches strings that start with < and a number. So strings like <today>, <tomorrow>, <+2d> and so on are not working anymore.

If I change the _expression_ to the one before and evaluate the function, the match works again.

A big thank you to all the developers behind org-mode!

Best wishes.
Daniel Hubmann

Emacs  : GNU Emacs 29.0.50 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.20, cairo version 1.16.0)
 of 2022-07-18
Package: Org mode version 9.6 (9.6-gd500b4 @ /home/hubisan/.emacs.default/straight/build/org/)

reply via email to

[Prev in Thread] Current Thread [Next in Thread]