emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: cesar mena <cmena@pobox.com>
To: Samuel Wales <samologist@gmail.com>,
	Nicolas Goaziou <mail@nicolasgoaziou.fr>
Cc: emacs-orgmode@gnu.org
Subject: Re: [bug] timed repeater shows up in wrong place
Date: Mon, 28 Nov 2016 08:28:05 -0500	[thread overview]
Message-ID: <CAL+-Aoc4F8QFQ5TxAMJsDqXnnGwkbzKRph5KtD58-P2xmesYvA@mail.gmail.com> (raw)

[-- 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)))

    

             reply	other threads:[~2016-11-28 13:29 UTC|newest]

Thread overview: 41+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-11-28 13:28 cesar mena [this message]
2016-11-28 22:32 ` [bug] timed repeater shows up in wrong place 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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CAL+-Aoc4F8QFQ5TxAMJsDqXnnGwkbzKRph5KtD58-P2xmesYvA@mail.gmail.com \
    --to=cmena@pobox.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=mail@nicolasgoaziou.fr \
    --cc=samologist@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).