Earl Chase <[email protected]> writes:

> I reused `org-test-at-time'. Specifically, `org-test-at-time' is now an
> alias of `org-at-time'. This "new" macro is what `org-todo-at' uses in
> order to set the current time to the time that you provide it.
> ...
> +         (add-function :around (symbol-function 'current-time)        
> #'org-at-current-time)

While the function like you propose is long desired, reusing
implementation from tests is not the greatest idea.
We should not use advices in the main Org codebase.

I suggest building upon existing patch that uses global variable
instead. See https://list.orgmode.org/orgmode/[email protected]/

-- 
Ihor Radchenko // yantar92,
Org mode maintainer,
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>

Reply via email to