emacs-orgmode
[Top][All Lists]
Advanced

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

Re: Do something useful with ".+" and hours repeaters


From: Kyle Meyer
Subject: Re: Do something useful with ".+" and hours repeaters
Date: Sun, 05 Apr 2020 16:54:50 +0000

Nicolas Goaziou <address@hidden> writes:

> WDYT?

Makes sense to me.  I have one nitpick on the actual change:

> +                   ;; Shift starting date to today, or now if
> +                   ;; repeater is by hours.
> +                   (if (equal what "h")
> +                       (org-timestamp-change
> +                        (floor (/ (- (org-time-stamp-to-now ts t)) 60))
> +                        'minute)

You could use floor's DIVISOR argument:

    (floor (- (org-time-stamp-to-now ts t)) 60)

Many such spots in Emacs's tree have been adjusted by Paul Eggert, and
the ones touching Org files have been ported back.



reply via email to

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