emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* [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/)]
@ 2022-12-06 14:14 Daniel Hubmann
  2022-12-07 12:46 ` Ihor Radchenko
  0 siblings, 1 reply; 2+ messages in thread
From: Daniel Hubmann @ 2022-12-06 14:14 UTC (permalink / raw)
  To: emacs-orgmode

[-- Attachment #1: Type: text/plain, Size: 998 bytes --]

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/)

[-- Attachment #2: Type: text/html, Size: 1436 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [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/)]
  2022-12-06 14:14 [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/)] Daniel Hubmann
@ 2022-12-07 12:46 ` Ihor Radchenko
  0 siblings, 0 replies; 2+ messages in thread
From: Ihor Radchenko @ 2022-12-07 12:46 UTC (permalink / raw)
  To: Daniel Hubmann; +Cc: emacs-orgmode

Daniel Hubmann <hubisan@gmail.com> writes:

> 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))
>>

Thanks for reporting!
It is a duplicate of https://orgmode.org/list/87bkokgtd7.fsf@kyleam.com
Fixed (see the linked thread).

-- 
Ihor Radchenko // yantar92,
Org mode contributor,
Learn more about Org mode at <https://orgmode.org/>.
Support Org development at <https://liberapay.com/org-mode>,
or support my work at <https://liberapay.com/yantar92>


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2022-12-07 12:47 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-12-06 14:14 [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/)] Daniel Hubmann
2022-12-07 12:46 ` Ihor Radchenko

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).