i am referring to this code in org-agenda-date-later. i do not understand why there is (equal arg 1):
(when (and org-agenda-move-date-from-past-immediately-to-today (equal arg 1) (or (not what) (eq what 'day)) (not (save-match-data (org-at-date-range-p)))) (setq cdate (org-parse-time-string (match-string 0) 'nodefault) cdate (calendar-absolute-from-gregorian (list (nth 4 cdate) (nth 3 cdate) (nth 5 cdate))) today (org-today)) (when (> today cdate) ;; immediately shift to today (setq arg (- today cdate)))) i would want to move to today if needed, then the number of days, such as 7 here: (defun alpha-org-agenda-do-date-later--week () (interactive) (org-agenda-do-date-later 7)) but perhaps there is a good reason for restricting this variable to controlling only a single day move? On 6/20/21, Samuel Wales <samolog...@gmail.com> wrote: > org-agenda-move-date-from-past-immediately-to-today moves a ts > immediately to today in agenda, but only if you do > org-agenda-do-date-later by one day. if you instead do it by 7 days > or so, it will check and not do the feature. > > i keep getting surprised by this, so i thought perhaps newcomers would > be too. do you think it makes sense to drop that check and make the > variable work consistently for all time periods? imo that would be > the least surprising and most useful behavior. > > the drawbck of not dong so is that you take past scheduled, for > example, and move them by weeks into the future, only to find out > later that you moved them into the past. but perhaps others have > different sensibilities and there is some reason for the check. > > -- > The Kafka Pandemic > > Please learn what misopathy is. > https://thekafkapandemic.blogspot.com/2013/10/why-some-diseases-are-wronged.html > -- The Kafka Pandemic Please learn what misopathy is. https://thekafkapandemic.blogspot.com/2013/10/why-some-diseases-are-wronged.html