emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* org-agenda-move-date-from-past-immediately-to-today could work for non-days
@ 2021-06-20 22:40 Samuel Wales
  2021-07-05 23:51 ` Samuel Wales
  0 siblings, 1 reply; 2+ messages in thread
From: Samuel Wales @ 2021-06-20 22:40 UTC (permalink / raw)
  To: emacs-orgmode

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


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

* Re: org-agenda-move-date-from-past-immediately-to-today could work for non-days
  2021-06-20 22:40 org-agenda-move-date-from-past-immediately-to-today could work for non-days Samuel Wales
@ 2021-07-05 23:51 ` Samuel Wales
  0 siblings, 0 replies; 2+ messages in thread
From: Samuel Wales @ 2021-07-05 23:51 UTC (permalink / raw)
  To: emacs-orgmode

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 <samologist@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


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

end of thread, other threads:[~2021-07-05 23:52 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-06-20 22:40 org-agenda-move-date-from-past-immediately-to-today could work for non-days Samuel Wales
2021-07-05 23:51 ` Samuel Wales

Code repositories for project(s) associated with this 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).