[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: removal of org-maybe-keyword-time-regexp
From: |
Nicolas Goaziou |
Subject: |
Re: removal of org-maybe-keyword-time-regexp |
Date: |
Wed, 11 Mar 2020 22:09:46 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/26.3 (gnu/linux) |
Hello,
Julien Cubizolles <address@hidden> writes:
> I'm using org-caldav (https://github.com/dengste/org-caldav/) to
> synchronize the calendar on my Android phone and Org. Recently this
> synchronization stopped working because org-caldav relies on
> org-maybe-keyword-time-regexp that has been dropped from Org. As a
> workaround, could this variable be reintroduced in org so as not to
> break this very useful packageĀ ?
Could you contact upstream instead?
AFAICT, they use this variable only twice. The first occurrence doesn't
seem useful (they check for a planning info keyword in a headline, which
cannot happen), it is probably enough to look for `org-ts-regexp-both'.
I'm not sure about the second one. I guess it would be better for them
to use something like:
(and (re-search-forward "org-planning-line-re" nil t)
(org-at-planning-p)
(progn
(org-skip-whitespace)
(looking-at org-ts-regexp-both)))
The (small) issue here is that we cannot properly deprecate a variable
that is not replaced with something else (i.e., we're not using
`define-obsolete-variable-alias' here).
Regards,
--
Nicolas Goaziou