emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Re: [bug] timed repeater shows up in wrong place
@ 2016-11-28 13:28 cesar mena
  2016-11-28 22:32 ` Samuel Wales
  0 siblings, 1 reply; 41+ messages in thread
From: cesar mena @ 2016-11-28 13:28 UTC (permalink / raw)
  To: Samuel Wales, Nicolas Goaziou; +Cc: emacs-orgmode

[-- Attachment #1: Type: text/plain, Size: 2599 bytes --]

hello list, nicolas, samuel,

On Mon, Nov 28, 2016 at 2:34 AM, Nicolas Goaziou <mail@nicolasgoaziou.fr> wrote:
> Hello,
>
> Samuel Wales <samologist@gmail.com> writes:
>
>> On 11/27/16, Nicolas Goaziou <mail@nicolasgoaziou.fr> wrote:
>>> I pushed a few more fixed in plain time-stamps and deadlines. Please
>>> report if you find anything suspicious.
>>
>> please try this:
>>
>>   SCHEDULED: <2016-09-17 Sat .+2d>
>>
>> emacs -Q, with a 2-day span and show-all nil.
>
> [...]
>
>> in org 9:
>>
>>   1] it shows on both days
>>   2] it shows 72x
>>
>> re 1, dunno if this was intended?
>
> It is.
>
> It shows first repeat. I assume you tested that yesterday, so you got
> the repeat for today. Since the repeat didn't trigger "today" (which is
> actually yesterday), it also displays a reminder for the scheduled item
> there.
>
> So, you have "72x" on "today" and a new repeat on the next day.
>
>> re 2, org 9 is trying to do its counting from the original timestamp
>> date.  i can understand the reasoning here, but do not want it for my
>> use case.
>
> It is, per 1-year old commit (3072cb28e8627066f465f1a4af85da88135d0549).
> Details are given here:
> <http://permalink.gmane.org/gmane.emacs.orgmode/101884>.

right the rationale there is that it would be misleading to show 2x
when you really haven't "doneify" the task for more than 72 days. but,
alas, this is what org 8 does.

>> 72x gets buried.  it's a sudden pop up then a sudden drop off.  i want
>> a gradual bubbling down like in org 8.  a .+30d repeater should show
>> today, then tomorrow it should show 2x, then the next day it should
>> show 3x.
>>
>> org 8 is nicer for showing the fact that 2d ago you were reminded to
>> do it, and maybe did it but did not doneify or maybe were not able to
>> do it.  it bubbles down slowly.
>
> It's difficult to solve both problems. In any case, this will not happen
> in Org 9.0.
>
> I think the main problem is that you put too many things behind
> `org-agenda-repeating-timestamp-show-all'. Its name is misleading.
> I think we need a new variable, or to change this one, to have both
> behaviours possible. Suggestions (and docstrings) are welcome, we can
> implement them in master branch.

i generate a file for the year with "events", as samuel describes it,
when i need that kind of scheduling. this has the advantage of having
the "bubbling" effect, showing all the ones not marked done as
separate entries, and the ability to have notes per event. i'm
attaching the script i use to generate it ... i pipe the output into
an agenda accessible file. samuel maybe this is useful?

[-- Attachment #2: genevents --]
[-- Type: application/octet-stream, Size: 900 bytes --]

#!/usr/bin/python3

import datetime

today = datetime.date(2016, 1, 1)
end = datetime.date(2016, 12, 31)
oneday = datetime.timedelta(1)

def dayofweek(x):
    if x.isoweekday() is 1:
        return 'Mon'
    if x.isoweekday() is 2:
        return 'Tue'
    if x.isoweekday() is 3:
        return 'Wed'
    if x.isoweekday() is 4:
        return 'Thu'
    if x.isoweekday() is 5:
        return 'Fri'
    if x.isoweekday() is 6:
        return 'Sat'
    if x.isoweekday() is 7:
        return 'Sun'
    raise Exception()

def daterange():
    cur = today - oneday
    while cur < end:
        cur += oneday
        yield cur

tasks = ('test',)

print('* tasks')
# print('  :PROPERTIES:')
# print('  :CATEGORY: H')
# print('  :END:')
for d in daterange():
    for t in tasks:
        print("** TODO %s (%s)" % (t, dayofweek(d).lower()))
        print("   SCHEDULED: <%s %s>" % (d, dayofweek(d)))

    

^ permalink raw reply	[flat|nested] 41+ messages in thread
* [bug] timed repeater shows up in wrong place
@ 2016-11-07 22:44 Samuel Wales
  2016-11-08 22:41 ` Nicolas Goaziou
  0 siblings, 1 reply; 41+ messages in thread
From: Samuel Wales @ 2016-11-07 22:44 UTC (permalink / raw)
  To: emacs-orgmode

thank you to everybody who made org 9 possible.


in recent org 9 maint

*********** NEXTREPEAT test :goto:
SCHEDULED: <2016-07-15 Fri 21:00 .+1d>

does not show up in the timed section of agenda
it shows in scheduled section
other tasks like it show in timed section
if the date is today, then it works correctly
*correctly to me is the traditional behavior of showing up every day*

i have a hypothesis that this is due to a discussion some time ago
from somebody who did not want repeaters to pop up again after the
repeater interval unless they were doneified.

both he and i urged that that such a new, different behavior should be
optional, as i rely on being reminded of repeaters more than once
/even when they have not been doneified/.  however, i could be wrong
about the origin of this, to me, bug.

if the hypothesis is not wrong, then i believe it's a personal opinion
which behavior should be default.  some will want the new behavior of
allowing things to fall into obscurity if not doneified.  some like
myself rely on the task popping up again.  both should be available,
in my opinion, as there are insufficient workarounds.

it does not seem to be documented in the release notes, so i hope that
it is just a bug, or that there is a variable for it.

i will probably have to downgrade to org 8 until this is fixed or i
find the variable.

thanks.

-- 
The Kafka Pandemic: http://thekafkapandemic.blogspot.com

The disease DOES progress.  MANY people have died from it.  And
ANYBODY can get it.

Denmark: free Karina Hansen NOW.
  UPDATE 2016-10: home, but not fully free

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

end of thread, other threads:[~2016-12-06 11:46 UTC | newest]

Thread overview: 41+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-11-28 13:28 [bug] timed repeater shows up in wrong place cesar mena
2016-11-28 22:32 ` Samuel Wales
  -- strict thread matches above, loose matches on Subject: below --
2016-11-07 22:44 Samuel Wales
2016-11-08 22:41 ` Nicolas Goaziou
2016-11-08 23:13   ` Samuel Wales
2016-11-08 23:33     ` Nicolas Goaziou
2016-11-09  0:43       ` Samuel Wales
     [not found]       ` <87inrxo5yt.fsf@cmena.pobox.com>
2016-11-09 18:44         ` Samuel Wales
     [not found]           ` <87a8d8o0rv.fsf@cmena.pobox.com>
2016-11-09 21:52             ` Samuel Wales
     [not found]               ` <877f8cnsea.fsf@cmena.pobox.com>
2016-11-09 23:35                 ` Samuel Wales
     [not found]                   ` <87k2cbpito.fsf@cmena.pobox.com>
2016-11-10 18:15                     ` Samuel Wales
2016-11-10 19:48                       ` cesar mena
2016-11-11 10:13               ` Nicolas Goaziou
2016-11-11 19:12                 ` Samuel Wales
2016-11-13 17:21                   ` Nicolas Goaziou
2016-11-13 19:38                     ` Samuel Wales
2016-11-13 23:32                       ` Nicolas Goaziou
2016-11-16 19:26                         ` Samuel Wales
2016-11-25  0:57                           ` Nicolas Goaziou
2016-11-25  1:07                             ` Samuel Wales
2016-11-25  7:40                               ` Nicolas Goaziou
2016-11-25 22:09                                 ` Samuel Wales
2016-11-26 10:38                                   ` Nicolas Goaziou
2016-11-27  2:19                                     ` Samuel Wales
2016-11-27 11:15                                       ` Nicolas Goaziou
2016-11-27 18:59                                         ` Samuel Wales
2016-11-28  0:39                                           ` Nicolas Goaziou
2016-11-28  3:22                                             ` Samuel Wales
2016-11-28  7:34                                               ` Nicolas Goaziou
2016-11-28 22:20                                                 ` Samuel Wales
2016-11-28 22:44                                                   ` Samuel Wales
2016-12-02 21:44                                                   ` cesar mena
2016-12-02 22:26                                                     ` Nicolas Goaziou
2016-12-02 23:08                                                       ` cesar mena
2016-12-02 23:55                                                         ` Samuel Wales
2016-12-03 22:47                                                   ` Nicolas Goaziou
2016-12-04  0:31                                                     ` cesar mena
2016-12-04  8:56                                                       ` Nicolas Goaziou
2016-12-04 12:46                                                         ` cesar mena
2016-12-04 21:27                                                     ` Samuel Wales
2016-12-06 11:46                                                       ` Nicolas Goaziou

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