all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* TODOs with repeat are not sorted correctly(?) in the agenda view
@ 2012-12-24  8:59 Sébastien Delafond
  2012-12-24  9:03 ` Bastien
  0 siblings, 1 reply; 5+ messages in thread
From: Sébastien Delafond @ 2012-12-24  8:59 UTC (permalink / raw)
  To: emacs-orgmode

Hi fellows,

got the following bug report[1] from a Debian user:

  We have the <2012-12-23 Sun>.  I have in my TODO.org file the entries

  ***** TODO reference entry
        SCHEDULED: <2012-12-22 Sat>
  ***** TODO test entry +
        SCHEDULED: <2012-12-19 Wed +2d>
  ***** TODO test entry ++
        SCHEDULED: <2012-12-19 Wed ++2d>
  ***** TODO test entry .+
        SCHEDULED: <2012-12-19 Wed .+2d>

  When I type 'Ctrl-c a a' the agenda view gets created (with the
  default sorting settings) as follows:

    TODO:       Sched. 2x:  TODO reference entry
    TODO:       Scheduled:  TODO test entry +
    TODO:       Scheduled:  TODO test entry ++
    TODO:       Scheduled:  TODO test entry .+

  This is not the result I expect.  The test entries are scheduled 3
  days more in the past than the reference entry.  Thus, I would expect
  them to come first with 'Sched. 5x:' in front.  I understand that due
  to the repeats, the test entries virtually appear also on the 21st and
  23rd, and that's why it is sorted that way.  The sorting takes the
  last virtual appearance rather than the one real appearance.  But that
  means, that entries that I should work on every second day never makes
  it to the top of the priority list, which renders the priority list in
  the agenda view useless, I think.  When I work on one of the test
  entries and cycle through TODO-DONE-TODO, the SCHEDULED date is
  automatically incremented and only then should the entry appear later
  in the list.  This is the most reasonable behavior, I think.  However,
  since there seem different oppinions on that issue possible, it would
  be great to have at least an option that would allow to pick the one
  or the other behavior.

(Please note that he is still using version 7.01g). I'll point the user
to this thread so he can tell us more if need be.

Cheers,

--Seb

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

* Re: TODOs with repeat are not sorted correctly(?) in the agenda view
  2012-12-24  8:59 TODOs with repeat are not sorted correctly(?) in the agenda view Sébastien Delafond
@ 2012-12-24  9:03 ` Bastien
  2012-12-24 11:16   ` Josef Atmin
  0 siblings, 1 reply; 5+ messages in thread
From: Bastien @ 2012-12-24  9:03 UTC (permalink / raw)
  To: Sébastien Delafond; +Cc: emacs-orgmode

Hi Sébastien,

Sébastien Delafond <sdelafond@gmail.com> writes:

> (Please note that he is still using version 7.01g). I'll point the user
> to this thread

Please do!

> so he can tell us more if need be.

Yes.  First thing we need to know is whether he has been trying to
achieve what he wants by configuring `org-agenda-sorting-strategy'.
Maybe he's not aware of that option.

Thanks, 

-- 
 Bastien

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

* Re: TODOs with repeat are not sorted correctly(?) in the agenda view
  2012-12-24  9:03 ` Bastien
@ 2012-12-24 11:16   ` Josef Atmin
  2012-12-24 13:04     ` Bastien
  0 siblings, 1 reply; 5+ messages in thread
From: Josef Atmin @ 2012-12-24 11:16 UTC (permalink / raw)
  To: emacs-orgmode

Bastien <bzg <at> altern.org> writes:
> Yes.  First thing we need to know is whether he has been trying to
> achieve what he wants by configuring `org-agenda-sorting-strategy'.
> Maybe he's not aware of that option.

Hello Bastien, 

I have posted the bug report.  Thanks for responding so quickly.

I have tried to customize `org-agenda-sorting-strategy', but only
'user-defined-up' might do the trick, I think.  However, I do not know LISP and
would not know how to define the required comparison function.

Merry Christmas,

Josef.

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

* Re: TODOs with repeat are not sorted correctly(?) in the agenda view
  2012-12-24 11:16   ` Josef Atmin
@ 2012-12-24 13:04     ` Bastien
  2012-12-27 10:36       ` Josef Atmin
  0 siblings, 1 reply; 5+ messages in thread
From: Bastien @ 2012-12-24 13:04 UTC (permalink / raw)
  To: Josef Atmin; +Cc: emacs-orgmode

Hi Josef,

thanks for writing back.

Josef Atmin <jatmin@web.de> writes:

> I have tried to customize `org-agenda-sorting-strategy', but only
> 'user-defined-up' might do the trick, I think.  However, I do not know LISP and
> would not know how to define the required comparison function.

In fact we need a date-up/date-down sorting strategy.

I'm putting this in my TODO list for Org 8.0.

Thanks!

-- 
 Bastien

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

* Re: TODOs with repeat are not sorted correctly(?) in the agenda view
  2012-12-24 13:04     ` Bastien
@ 2012-12-27 10:36       ` Josef Atmin
  0 siblings, 0 replies; 5+ messages in thread
From: Josef Atmin @ 2012-12-27 10:36 UTC (permalink / raw)
  To: emacs-orgmode

Dear Bastien,

Bastien <bzg <at> altern.org> writes:
> > I have tried to customize `org-agenda-sorting-strategy', but only
> > 'user-defined-up' might do the trick, I think.  
> > However, I do not know LISP and
> > would not know how to define the required comparison function.
> 
> In fact we need a date-up/date-down sorting strategy.

Maybe, it would be clearer to call it scheduled-up/scheduled-down,
because there are several different dates used.

As far as I understand, items are already sorted by date as a
fallback, i.e. it cannot be selected in the 'customize-variable' of
'org-agenda-sorting-strategy', but it is done anyway as a last rule.
However, the date used is not the SCHEDULED date but in repeated items
it is the last date in the past that one would get by incrementing the
SCHEDULED date by multiples of the interval set (e.g. .+1w), which I
find a not very useful behavior.

> I'm putting this in my TODO list for Org 8.0.

If you could implement a scheduled-up/scheduled-down to override this
behavior, that would be great.

Best wishes,

Josef.

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

end of thread, other threads:[~2012-12-27 11:21 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-12-24  8:59 TODOs with repeat are not sorted correctly(?) in the agenda view Sébastien Delafond
2012-12-24  9:03 ` Bastien
2012-12-24 11:16   ` Josef Atmin
2012-12-24 13:04     ` Bastien
2012-12-27 10:36       ` Josef Atmin

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.