all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* please read: bug when marking tasks done
@ 2019-01-06  0:13 cesar mena
  2019-01-06 23:49 ` Nicolas Goaziou
  0 siblings, 1 reply; 26+ messages in thread
From: cesar mena @ 2019-01-06  0:13 UTC (permalink / raw)
  To: emacs-orgmode; +Cc: Nicolas Goaziou

hello everyone,

in the maint branch, marking a repeatable task as DONE causes the
"Rescheduled from" dates to be lost in the :LOGBOOK:.

in the below diff all of the from dates are rewritten with the new
scheduled date:

  -      SCHEDULED: <2018-12-04 Tue .+1m>
  +      SCHEDULED: <2019-02-05 Tue .+1m>
         :PROPERTIES:
  -      :LAST_REPEAT: [2018-08-08 Wed 07:40]
  +      :LAST_REPEAT: [2019-01-05 Sat 18:47]
         :END:
         :LOGBOOK:
  -      - Rescheduled from "[2018-11-28 Wed .+1m]" on [2018-11-28 Wed 08:35]
  -      - Rescheduled from "[2018-11-25 Sun .+1m]" on [2018-11-25 Sun 09:17]
  -      - Rescheduled from "[2018-11-20 Tue .+1m]" on [2018-11-22 Thu 10:03]
  -      - Rescheduled from "[2018-11-13 Tue .+1m]" on [2018-11-17 Sat 09:48]
  -      - Rescheduled from "[2018-11-06 Tue .+1m]" on [2018-11-08 Thu 07:02]
  -      - Rescheduled from "[2018-10-28 Sun .+1m]" on [2018-10-30 Tue 16:22]
  -      - Rescheduled from "[2018-10-25 Thu .+1m]" on [2018-10-25 Thu 07:34]
  -      - Rescheduled from "[2018-10-19 Fri .+1m]" on [2018-10-19 Fri 07:48]
  -      - Rescheduled from "[2018-10-16 Tue .+1m]" on [2018-10-16 Tue 16:21]
  -      - Rescheduled from "[2018-10-11 Thu .+1m]" on [2018-10-14 Sun 10:31]
  -      - Rescheduled from "[2018-10-07 Sun .+1m]" on [2018-10-08 Mon 08:48]
  -      - Rescheduled from "[2018-09-27 Thu .+1m]" on [2018-09-29 Sat 18:50]
  -      - Rescheduled from "[2018-09-20 Thu .+1m]" on [2018-09-20 Thu 09:50]
  -      - Rescheduled from "[2018-09-08 Sat .+1m]" on [2018-09-14 Fri 07:10]
  +      - State "DONE"       from "TODO"       [2019-01-05 Sat 18:47]
  +      - Rescheduled from "[2019-02-05 Tue .+1m]" on [2018-11-28 Wed 08:35]
  +      - Rescheduled from "[2019-02-05 Tue .+1m]" on [2018-11-25 Sun 09:17]
  +      - Rescheduled from "[2019-02-05 Tue .+1m]" on [2018-11-22 Thu 10:03]
  +      - Rescheduled from "[2019-02-05 Tue .+1m]" on [2018-11-17 Sat 09:48]
  +      - Rescheduled from "[2019-02-05 Tue .+1m]" on [2018-11-08 Thu 07:02]
  +      - Rescheduled from "[2019-02-05 Tue .+1m]" on [2018-10-30 Tue 16:22]
  +      - Rescheduled from "[2019-02-05 Tue .+1m]" on [2018-10-25 Thu 07:34]
  +      - Rescheduled from "[2019-02-05 Tue .+1m]" on [2018-10-19 Fri 07:48]
  +      - Rescheduled from "[2019-02-05 Tue .+1m]" on [2018-10-16 Tue 16:21]
  +      - Rescheduled from "[2019-02-05 Tue .+1m]" on [2018-10-14 Sun 10:31]
  +      - Rescheduled from "[2019-02-05 Tue .+1m]" on [2018-10-08 Mon 08:48]
  +      - Rescheduled from "[2019-02-05 Tue .+1m]" on [2018-09-29 Sat 18:50]
  +      - Rescheduled from "[2019-02-05 Tue .+1m]" on [2018-09-20 Thu 09:50]
  +      - Rescheduled from "[2019-02-05 Tue .+1m]" on [2018-09-14 Fri 07:10]
  
bisect says it was introduced in
af81211fdc01b64449179bcdb77fb1c8ecb3fb94.

cheers all,
-cm

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

* Re: please read: bug when marking tasks done
  2019-01-06  0:13 please read: bug when marking tasks done cesar mena
@ 2019-01-06 23:49 ` Nicolas Goaziou
  2019-01-07 14:52   ` Bernt Hansen
  2019-01-07 15:20   ` cesar mena
  0 siblings, 2 replies; 26+ messages in thread
From: Nicolas Goaziou @ 2019-01-06 23:49 UTC (permalink / raw)
  To: cesar mena; +Cc: emacs-orgmode

Hello,

cesar mena <cesar.mena@gmail.com> writes:

> hello everyone,
>
> in the maint branch, marking a repeatable task as DONE causes the
> "Rescheduled from" dates to be lost in the :LOGBOOK:.
>
> in the below diff all of the from dates are rewritten with the new
> scheduled date:
>
>   -      SCHEDULED: <2018-12-04 Tue .+1m>
>   +      SCHEDULED: <2019-02-05 Tue .+1m>
>          :PROPERTIES:
>   -      :LAST_REPEAT: [2018-08-08 Wed 07:40]
>   +      :LAST_REPEAT: [2019-01-05 Sat 18:47]
>          :END:
>          :LOGBOOK:
>   -      - Rescheduled from "[2018-11-28 Wed .+1m]" on [2018-11-28 Wed 08:35]
>   -      - Rescheduled from "[2018-11-25 Sun .+1m]" on [2018-11-25 Sun 09:17]
>   -      - Rescheduled from "[2018-11-20 Tue .+1m]" on [2018-11-22 Thu 10:03]
>   -      - Rescheduled from "[2018-11-13 Tue .+1m]" on [2018-11-17 Sat 09:48]
>   -      - Rescheduled from "[2018-11-06 Tue .+1m]" on [2018-11-08 Thu 07:02]
>   -      - Rescheduled from "[2018-10-28 Sun .+1m]" on [2018-10-30 Tue 16:22]
>   -      - Rescheduled from "[2018-10-25 Thu .+1m]" on [2018-10-25 Thu 07:34]
>   -      - Rescheduled from "[2018-10-19 Fri .+1m]" on [2018-10-19 Fri 07:48]
>   -      - Rescheduled from "[2018-10-16 Tue .+1m]" on [2018-10-16 Tue 16:21]
>   -      - Rescheduled from "[2018-10-11 Thu .+1m]" on [2018-10-14 Sun 10:31]
>   -      - Rescheduled from "[2018-10-07 Sun .+1m]" on [2018-10-08 Mon 08:48]
>   -      - Rescheduled from "[2018-09-27 Thu .+1m]" on [2018-09-29 Sat 18:50]
>   -      - Rescheduled from "[2018-09-20 Thu .+1m]" on [2018-09-20 Thu 09:50]
>   -      - Rescheduled from "[2018-09-08 Sat .+1m]" on [2018-09-14 Fri 07:10]
>   +      - State "DONE"       from "TODO"       [2019-01-05 Sat 18:47]
>   +      - Rescheduled from "[2019-02-05 Tue .+1m]" on [2018-11-28 Wed 08:35]
>   +      - Rescheduled from "[2019-02-05 Tue .+1m]" on [2018-11-25 Sun 09:17]
>   +      - Rescheduled from "[2019-02-05 Tue .+1m]" on [2018-11-22 Thu 10:03]
>   +      - Rescheduled from "[2019-02-05 Tue .+1m]" on [2018-11-17 Sat 09:48]
>   +      - Rescheduled from "[2019-02-05 Tue .+1m]" on [2018-11-08 Thu 07:02]
>   +      - Rescheduled from "[2019-02-05 Tue .+1m]" on [2018-10-30 Tue 16:22]
>   +      - Rescheduled from "[2019-02-05 Tue .+1m]" on [2018-10-25 Thu 07:34]
>   +      - Rescheduled from "[2019-02-05 Tue .+1m]" on [2018-10-19 Fri 07:48]
>   +      - Rescheduled from "[2019-02-05 Tue .+1m]" on [2018-10-16 Tue 16:21]
>   +      - Rescheduled from "[2019-02-05 Tue .+1m]" on [2018-10-14 Sun 10:31]
>   +      - Rescheduled from "[2019-02-05 Tue .+1m]" on [2018-10-08 Mon 08:48]
>   +      - Rescheduled from "[2019-02-05 Tue .+1m]" on [2018-09-29 Sat 18:50]
>   +      - Rescheduled from "[2019-02-05 Tue .+1m]" on [2018-09-20 Thu 09:50]
>   +      - Rescheduled from "[2019-02-05 Tue .+1m]" on [2018-09-14 Fri 07:10]
>   
> bisect says it was introduced in
> af81211fdc01b64449179bcdb77fb1c8ecb3fb94.

Which is a bugfix…

I think a solution would be to remove the repeater from timestamps
inserted upon logging a state change or a re-scheduling.

However, you would have to fix your old documents manually.

Regards,

-- 
Nicolas Goaziou

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

* Re: please read: bug when marking tasks done
  2019-01-06 23:49 ` Nicolas Goaziou
@ 2019-01-07 14:52   ` Bernt Hansen
  2019-01-07 15:20   ` cesar mena
  1 sibling, 0 replies; 26+ messages in thread
From: Bernt Hansen @ 2019-01-07 14:52 UTC (permalink / raw)
  To: cesar mena; +Cc: emacs-orgmode

Nicolas Goaziou <mail@nicolasgoaziou.fr> writes:

> Hello,
>
> cesar mena <cesar.mena@gmail.com> writes:
>
>> hello everyone,
>>
>> in the maint branch, marking a repeatable task as DONE causes the
>> "Rescheduled from" dates to be lost in the :LOGBOOK:.
>>
>> in the below diff all of the from dates are rewritten with the new
>> scheduled date:
>>
>>   -      SCHEDULED: <2018-12-04 Tue .+1m>
>>   +      SCHEDULED: <2019-02-05 Tue .+1m>
>>          :PROPERTIES:
>>   -      :LAST_REPEAT: [2018-08-08 Wed 07:40]
>>   +      :LAST_REPEAT: [2019-01-05 Sat 18:47]
>>          :END:
>>          :LOGBOOK:
>>   -      - Rescheduled from "[2018-11-28 Wed .+1m]" on [2018-11-28 Wed 08:35]
>>   -      - Rescheduled from "[2018-11-25 Sun .+1m]" on [2018-11-25 Sun 09:17]
>>   -      - Rescheduled from "[2018-11-20 Tue .+1m]" on [2018-11-22 Thu 10:03]
>>   -      - Rescheduled from "[2018-11-13 Tue .+1m]" on [2018-11-17 Sat 09:48]
>>   -      - Rescheduled from "[2018-11-06 Tue .+1m]" on [2018-11-08 Thu 07:02]
>>   -      - Rescheduled from "[2018-10-28 Sun .+1m]" on [2018-10-30 Tue 16:22]
>>   -      - Rescheduled from "[2018-10-25 Thu .+1m]" on [2018-10-25 Thu 07:34]
>>   -      - Rescheduled from "[2018-10-19 Fri .+1m]" on [2018-10-19 Fri 07:48]
>>   -      - Rescheduled from "[2018-10-16 Tue .+1m]" on [2018-10-16 Tue 16:21]
>>   -      - Rescheduled from "[2018-10-11 Thu .+1m]" on [2018-10-14 Sun 10:31]
>>   -      - Rescheduled from "[2018-10-07 Sun .+1m]" on [2018-10-08 Mon 08:48]
>>   -      - Rescheduled from "[2018-09-27 Thu .+1m]" on [2018-09-29 Sat 18:50]
>>   -      - Rescheduled from "[2018-09-20 Thu .+1m]" on [2018-09-20 Thu 09:50]
>>   -      - Rescheduled from "[2018-09-08 Sat .+1m]" on [2018-09-14 Fri 07:10]
>>   +      - State "DONE"       from "TODO"       [2019-01-05 Sat 18:47]
>>   +      - Rescheduled from "[2019-02-05 Tue .+1m]" on [2018-11-28 Wed 08:35]
>>   +      - Rescheduled from "[2019-02-05 Tue .+1m]" on [2018-11-25 Sun 09:17]
>>   +      - Rescheduled from "[2019-02-05 Tue .+1m]" on [2018-11-22 Thu 10:03]
>>   +      - Rescheduled from "[2019-02-05 Tue .+1m]" on [2018-11-17 Sat 09:48]
>>   +      - Rescheduled from "[2019-02-05 Tue .+1m]" on [2018-11-08 Thu 07:02]
>>   +      - Rescheduled from "[2019-02-05 Tue .+1m]" on [2018-10-30 Tue 16:22]
>>   +      - Rescheduled from "[2019-02-05 Tue .+1m]" on [2018-10-25 Thu 07:34]
>>   +      - Rescheduled from "[2019-02-05 Tue .+1m]" on [2018-10-19 Fri 07:48]
>>   +      - Rescheduled from "[2019-02-05 Tue .+1m]" on [2018-10-16 Tue 16:21]
>>   +      - Rescheduled from "[2019-02-05 Tue .+1m]" on [2018-10-14 Sun 10:31]
>>   +      - Rescheduled from "[2019-02-05 Tue .+1m]" on [2018-10-08 Mon 08:48]
>>   +      - Rescheduled from "[2019-02-05 Tue .+1m]" on [2018-09-29 Sat 18:50]
>>   +      - Rescheduled from "[2019-02-05 Tue .+1m]" on [2018-09-20 Thu 09:50]
>>   +      - Rescheduled from "[2019-02-05 Tue .+1m]" on [2018-09-14 Fri 07:10]
>>   
>> bisect says it was introduced in
>> af81211fdc01b64449179bcdb77fb1c8ecb3fb94.
>
> Which is a bugfix…
>
> I think a solution would be to remove the repeater from timestamps
> inserted upon logging a state change or a re-scheduling.
>
> However, you would have to fix your old documents manually.
>
> Regards,

Hi Nicholas,

I think this commit is a problem:

  af81211fd (Also obey to repeaters in inactive time stamps, 2018-11-10)

At the beginning of the year I close my repeating tasks with lots of
logging and clocking entries and create a new one as follows:

1) Clone repeating task to new task for next year
2) Unscheduled old task which writes the scheduled repeater to the log
as above
3) Mark old task DONE 

Step 3 fails.  It moves the repeater in the log message from the old
scheduled task makes the task TODO again.

Example:

--------------------------------------------------------------------------------
* TODO Sample repeating task 2018
  SCHEDULED: <2019-01-07 Mon ++1w>
  :LOGBOOK:
  - Note taken on [2019-01-07 Mon 09:44] \\
    Log note 2
  - Note taken on [2019-01-07 Mon 09:44] \\
    Log note 1
  :END:
  [2019-01-07 Mon 09:44]

--------------------------------------------------------------------------------

Now clone the task with C-c C-x c 1 RET RET

--------------------------------------------------------------------------------
* TODO Sample repeating task 2018
  SCHEDULED: <2019-01-07 Mon ++1w>
  :LOGBOOK:
  - Note taken on [2019-01-07 Mon 09:44] \\
    Log note 2
  - Note taken on [2019-01-07 Mon 09:44] \\
    Log note 1
  :END:
  [2019-01-07 Mon 09:44]

* TODO Sample repeating task 2018
  SCHEDULED: <2019-01-07 Mon ++1w>
  :LOGBOOK:
  - Note taken on [2019-01-07 Mon 09:44] \\
    Log note 2
  - Note taken on [2019-01-07 Mon 09:44] \\
    Log note 1
  :END:
  [2019-01-07 Mon 09:44]
--------------------------------------------------------------------------------

Rename the second task to 2019 and unschedule the first task:

--------------------------------------------------------------------------------
* TODO Sample repeating task 2018
  :LOGBOOK:
  - Not scheduled, was "[2019-01-07 Mon ++1w]" on [2019-01-07 Mon 09:47]
  - Note taken on [2019-01-07 Mon 09:44] \\
    Log note 2
  - Note taken on [2019-01-07 Mon 09:44] \\
    Log note 1
  :END:
  [2019-01-07 Mon 09:44]

* TODO Sample repeating task 2019
  SCHEDULED: <2019-01-07 Mon ++1w>
  :LOGBOOK:
  - Note taken on [2019-01-07 Mon 09:44] \\
    Log note 2
  - Note taken on [2019-01-07 Mon 09:44] \\
    Log note 1
  :END:
  [2019-01-07 Mon 09:44]

--------------------------------------------------------------------------------

And finally Mark the first task DONE

--------------------------------------------------------------------------------
* TODO Sample repeating task 2018
  :PROPERTIES:
  :LAST_REPEAT: [2019-01-07 Mon 09:48]
  :END:
  :LOGBOOK:
  - State "DONE"       from "TODO"       [2019-01-07 Mon 09:48]
  - Not scheduled, was "[2019-01-14 Mon ++1w]" on [2019-01-07 Mon 09:47]
  - Note taken on [2019-01-07 Mon 09:44] \\
    Log note 2
  - Note taken on [2019-01-07 Mon 09:44] \\
    Log note 1
  :END:
  [2019-01-07 Mon 09:44]

* TODO Sample repeating task 2019
  SCHEDULED: <2019-01-07 Mon ++1w>
  :LOGBOOK:
  - Note taken on [2019-01-07 Mon 09:44] \\
    Log note 2
  - Note taken on [2019-01-07 Mon 09:44] \\
    Log note 1
  :END:
  [2019-01-07 Mon 09:44]

--------------------------------------------------------------------------------

The first task should now be DONE not TODO but instead it has updated
the repeater in the log message from unscheduling instead and it's not
possible to mark this task as DONE with C-c C-t anymore.

Should this problem commit be reverted?
  af81211fd (Also obey to repeaters in inactive time stamps, 2018-11-10)

Regards,
Bernt

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

* Re: please read: bug when marking tasks done
  2019-01-06 23:49 ` Nicolas Goaziou
  2019-01-07 14:52   ` Bernt Hansen
@ 2019-01-07 15:20   ` cesar mena
  2019-01-08 10:24     ` Nicolas Goaziou
  1 sibling, 1 reply; 26+ messages in thread
From: cesar mena @ 2019-01-07 15:20 UTC (permalink / raw)
  To: emacs-orgmode

hi nicolas,

Nicolas Goaziou <mail@nicolasgoaziou.fr> writes:

> Hello,
>
> cesar mena <cesar.mena@gmail.com> writes:
>
>> hello everyone,
>>
>> in the maint branch, marking a repeatable task as DONE causes the
>> "Rescheduled from" dates to be lost in the :LOGBOOK:.
>>
>> in the below diff all of the from dates are rewritten with the new
>> scheduled date:
>>
>>   -      SCHEDULED: <2018-12-04 Tue .+1m>
>>   +      SCHEDULED: <2019-02-05 Tue .+1m>
>>          :PROPERTIES:
>>   -      :LAST_REPEAT: [2018-08-08 Wed 07:40]
>>   +      :LAST_REPEAT: [2019-01-05 Sat 18:47]
>>          :END:
>>          :LOGBOOK:
>>   -      - Rescheduled from "[2018-11-28 Wed .+1m]" on [2018-11-28 Wed 08:35]
>>   -      - Rescheduled from "[2018-11-25 Sun .+1m]" on [2018-11-25 Sun 09:17]
>>   -      - Rescheduled from "[2018-11-20 Tue .+1m]" on [2018-11-22 Thu 10:03]
>>   -      - Rescheduled from "[2018-11-13 Tue .+1m]" on [2018-11-17 Sat 09:48]
>>   -      - Rescheduled from "[2018-11-06 Tue .+1m]" on [2018-11-08 Thu 07:02]
>>   -      - Rescheduled from "[2018-10-28 Sun .+1m]" on [2018-10-30 Tue 16:22]
>>   -      - Rescheduled from "[2018-10-25 Thu .+1m]" on [2018-10-25 Thu 07:34]
>>   -      - Rescheduled from "[2018-10-19 Fri .+1m]" on [2018-10-19 Fri 07:48]
>>   -      - Rescheduled from "[2018-10-16 Tue .+1m]" on [2018-10-16 Tue 16:21]
>>   -      - Rescheduled from "[2018-10-11 Thu .+1m]" on [2018-10-14 Sun 10:31]
>>   -      - Rescheduled from "[2018-10-07 Sun .+1m]" on [2018-10-08 Mon 08:48]
>>   -      - Rescheduled from "[2018-09-27 Thu .+1m]" on [2018-09-29 Sat 18:50]
>>   -      - Rescheduled from "[2018-09-20 Thu .+1m]" on [2018-09-20 Thu 09:50]
>>   -      - Rescheduled from "[2018-09-08 Sat .+1m]" on [2018-09-14 Fri 07:10]
>>   +      - State "DONE"       from "TODO"       [2019-01-05 Sat 18:47]
>>   +      - Rescheduled from "[2019-02-05 Tue .+1m]" on [2018-11-28 Wed 08:35]
>>   +      - Rescheduled from "[2019-02-05 Tue .+1m]" on [2018-11-25 Sun 09:17]
>>   +      - Rescheduled from "[2019-02-05 Tue .+1m]" on [2018-11-22 Thu 10:03]
>>   +      - Rescheduled from "[2019-02-05 Tue .+1m]" on [2018-11-17 Sat 09:48]
>>   +      - Rescheduled from "[2019-02-05 Tue .+1m]" on [2018-11-08 Thu 07:02]
>>   +      - Rescheduled from "[2019-02-05 Tue .+1m]" on [2018-10-30 Tue 16:22]
>>   +      - Rescheduled from "[2019-02-05 Tue .+1m]" on [2018-10-25 Thu 07:34]
>>   +      - Rescheduled from "[2019-02-05 Tue .+1m]" on [2018-10-19 Fri 07:48]
>>   +      - Rescheduled from "[2019-02-05 Tue .+1m]" on [2018-10-16 Tue 16:21]
>>   +      - Rescheduled from "[2019-02-05 Tue .+1m]" on [2018-10-14 Sun 10:31]
>>   +      - Rescheduled from "[2019-02-05 Tue .+1m]" on [2018-10-08 Mon 08:48]
>>   +      - Rescheduled from "[2019-02-05 Tue .+1m]" on [2018-09-29 Sat 18:50]
>>   +      - Rescheduled from "[2019-02-05 Tue .+1m]" on [2018-09-20 Thu 09:50]
>>   +      - Rescheduled from "[2019-02-05 Tue .+1m]" on [2018-09-14 Fri 07:10]
>>   
>> bisect says it was introduced in
>> af81211fdc01b64449179bcdb77fb1c8ecb3fb94.
>
> Which is a bugfix…

as per the documentation for "org-auto-repeat-maybe" only the base date
of repeating deadline/scheduled time stamps should change. AFAICT the
patch changes every occurrence of an inactive repeating timestamp that is
not a comment.

> I think a solution would be to remove the repeater from timestamps
> inserted upon logging a state change or a re-scheduling.

but that is useful and correct information. it lets me know the state of
the scheduled timestamp at the time i rescheduled; you are proposing to
change this to avoid a re-computation for data that i am sure we agree
should be treated as immutable.

note that the from dates in the "Rescheduled" line is also in quotes
indicating that it is textual information. no longer in play. changing
such dates is akin to changing dates in a comment.

what do you think?

best,
-cm

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

* Re: please read: bug when marking tasks done
  2019-01-07 15:20   ` cesar mena
@ 2019-01-08 10:24     ` Nicolas Goaziou
  2019-01-08 14:29       ` Bernt Hansen
  2019-01-08 20:07       ` cesar mena
  0 siblings, 2 replies; 26+ messages in thread
From: Nicolas Goaziou @ 2019-01-08 10:24 UTC (permalink / raw)
  To: cesar mena; +Cc: emacs-orgmode

Hello,

cesar mena <cesar.mena@gmail.com> writes:

> as per the documentation for "org-auto-repeat-maybe" only the base date
> of repeating deadline/scheduled time stamps should change. AFAICT the
> patch changes every occurrence of an inactive repeating timestamp that is
> not a comment.

The base date of a time stamp is the part before the repeater. IOW,
every time stamp with a repeater has a base date, therefore
`org-auto-repeat-maybe' changes them all. I see no problem with the
docstring.

>> I think a solution would be to remove the repeater from timestamps
>> inserted upon logging a state change or a re-scheduling.
>
> but that is useful and correct information. it lets me know the state of
> the scheduled timestamp at the time i rescheduled; you are proposing to
> change this to avoid a re-computation for data that i am sure we agree
> should be treated as immutable.

I don't think we agree about the immutable part. At least, the user who
reported the bug solved in af81211fdc01b64449179bcdb77fb1c8ecb3fb94
didn't agree. Inactive time stamps are not immutable.

But the main issue is that I don't understand what useful and correct
information we loose if we drop the repeater part, i.e.:

  - Rescheduled from "[2019-02-05 Tue .+1m]" on [2018-09-29 Sat 18:50]

to

  - Rescheduled from "[2019-02-05 Tue]" on [2018-09-29 Sat 18:50]

> note that the from dates in the "Rescheduled" line is also in quotes
> indicating that it is textual information. no longer in play. changing
> such dates is akin to changing dates in a comment.
>
> what do you think?

I think quotes are not comment syntax in Org, so it means nothing
programatically.

Anyway, I don't really have any other idea besides dropping the repeater
part from automatically inserted inactive time stamps. 

You may want to read the thread in the commit message referenced above
and possibly discuss with the bug reporter to find an acceptable middle
ground.

Regards,

-- 
Nicolas Goaziou

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

* Re: please read: bug when marking tasks done
  2019-01-08 10:24     ` Nicolas Goaziou
@ 2019-01-08 14:29       ` Bernt Hansen
  2019-01-08 20:07       ` cesar mena
  1 sibling, 0 replies; 26+ messages in thread
From: Bernt Hansen @ 2019-01-08 14:29 UTC (permalink / raw)
  To: emacs-orgmode

Nicolas Goaziou <mail@nicolasgoaziou.fr> writes:

> Anyway, I don't really have any other idea besides dropping the repeater
> part from automatically inserted inactive time stamps. 

When I unschedule (and log) a habit I don't want to lose the detail
about the repeat interval.  My workaround for this is to break the
timestamp by adding a ',' after the '[' in the timestamp so marking it
DONE actually works.

** DONE Weekly Review 2018 [0/16]
 CLOSED: [2019-01-08 Tue 09:19]
:PROPERTIES:...
:LOGBOOK:
- State "DONE"       from "TODO"       [2019-01-08 Tue 09:19]
- Not scheduled, was "[,2019-01-07 Mon ++7d/14d]" on [2019-01-08 Tue
09:18]

Marking this task done is also pretty slow - taking 25 seconds.
The task has 233 lines, 2549 words, and 12993 characters.

partial elp-results for this task below

org-todo                           1       25.33         25.33
org-self-insert-command            1       25.33         25.33
org-checklist                      1       25.124        25.124
org-reset-checkbox-state-subtree   1       25.124        25.124
org-reset-checkbox-state-maybe     1       25.124        25.124
org-update-checkbox-count          1       24.945        24.945
org-update-checkbox-count-maybe    1       24.945        24.945
org-element-at-point               1548    24.870999999  0.0160665374
org-element-context                1541    24.868999999  0.0161382219
org-element--parse-to              1544    24.718999999  0.0160097150
org-element--current-element       3109    22.070999999  0.0070990672
org-element-example-block-parser   1537    19.664999999  0.0127944046
org-unescape-code-in-string        1537    13.604000000  0.0088510084
org-element-paragraph-parser       1544    1.7799999999  0.0011528497
org-fast-todo-selection            1       0.201         0.201
...

Regards,
Bernt

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

* Re: please read: bug when marking tasks done
  2019-01-08 10:24     ` Nicolas Goaziou
  2019-01-08 14:29       ` Bernt Hansen
@ 2019-01-08 20:07       ` cesar mena
  2019-01-09 22:50         ` Nicolas Goaziou
  1 sibling, 1 reply; 26+ messages in thread
From: cesar mena @ 2019-01-08 20:07 UTC (permalink / raw)
  To: emacs-orgmode

hello nicolas,

Nicolas Goaziou <mail@nicolasgoaziou.fr> writes:

> Hello,
>
> cesar mena <cesar.mena@gmail.com> writes:
>
>> as per the documentation for "org-auto-repeat-maybe" only the base date
>> of repeating deadline/scheduled time stamps should change. AFAICT the
>> patch changes every occurrence of an inactive repeating timestamp that is
>> not a comment.
>
> The base date of a time stamp is the part before the repeater. IOW,
> every time stamp with a repeater has a base date, therefore
> `org-auto-repeat-maybe' changes them all. I see no problem with the
> docstring.

the _base date_ is not the pertinent part; the _deadline/scheduled_ aspect
is.  moreover this should only happen on the headline.

from the docstring:

  |----------- org-auto-repeat-maybe --------------------------------
  |  Check if the *current headline* contains a repeated time-stamp.
  |
  |  If yes, set TODO state back to what it was and change the base date
  |  of repeating *deadline/scheduled time stamps to new date*
  |
  |  ...
  |-----------------------------------------------------------------

thus we should not programmatically modify an arbitrary date in a
document just because it has a repeater. specially not one buried 300
lines deep in a :LOGBOOK: drawer.

commit af81211fdc contradicts the established documentation. 

see bernt hansen's email in this thread for another unintended
consequence. he can't mark a task that is no longer scheduled as DONE
because there is an inactive timestamp in a :LOGBOOK: entry.

> I don't think we agree about the immutable part.

see below for clarification.

> At least, the user who reported the bug solved in
> af81211fdc01b64449179bcdb77fb1c8ecb3fb94 didn't agree.

but the solution overreaches. again, only repeating deadline/scheduled
time stamps should change if they are in the current headline.

> Inactive time stamps are not immutable.

apologies if i wasn't clear. what should be immutable is a logged,
state-change entry. an existing entry should not change because one
marks a task as DONE.

regards,
-cm

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

* Re: please read: bug when marking tasks done
  2019-01-08 20:07       ` cesar mena
@ 2019-01-09 22:50         ` Nicolas Goaziou
  2019-01-10 14:15           ` cesar mena
  0 siblings, 1 reply; 26+ messages in thread
From: Nicolas Goaziou @ 2019-01-09 22:50 UTC (permalink / raw)
  To: cesar mena; +Cc: emacs-orgmode

Hello,

cesar mena <cesar.mena@gmail.com> writes:

> from the docstring:
>
>   |----------- org-auto-repeat-maybe --------------------------------
>   |  Check if the *current headline* contains a repeated time-stamp.
>   |
>   |  If yes, set TODO state back to what it was and change the base date
>   |  of repeating *deadline/scheduled time stamps to new date*
>   |
>   |  ...
>   |-----------------------------------------------------------------
>
> thus we should not programmatically modify an arbitrary date in a
> document just because it has a repeater. specially not one buried 300
> lines deep in a :LOGBOOK: drawer.
>
> commit af81211fdc contradicts the established documentation.

No, it doesn't. "current headline" is to be taken broadly, i.e., in the
headline or the adjacent section. So, it doesn't matter if a time stamp
is buried somewhere in the section: it is meant to be updated. Note that
it was already the case for active time stamps before said commit.

> but the solution overreaches.

I agree the current state is not ideal, but as I said, the only
suggestion I had was not satisfying. I'm all ears, though.

> apologies if i wasn't clear. what should be immutable is a logged,
> state-change entry.

For Org syntax, there is no such thing as a state-change entry. They are
just plain lists. You could write anything in them.

Now, we might make its contents by marking them as verbatim, for
example. E.g.,

  - Rescheduled from =[2019-02-05 Tue .1m]= on [2018-09-29 Sat 18:50]

> an existing entry should not change because one marks a task as DONE.

I disagree. This has always been the case, at least for active
time-stamps.

Regards,

-- 
Nicolas Goaziou

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

* Re: please read: bug when marking tasks done
  2019-01-09 22:50         ` Nicolas Goaziou
@ 2019-01-10 14:15           ` cesar mena
  2019-01-12 11:24             ` Nicolas Goaziou
  0 siblings, 1 reply; 26+ messages in thread
From: cesar mena @ 2019-01-10 14:15 UTC (permalink / raw)
  To: emacs-orgmode


hi nicolas,

Nicolas Goaziou <mail@nicolasgoaziou.fr> writes:

> Hello,
>
> cesar mena <cesar.mena@gmail.com> writes:
>
>> from the docstring:
>>
>>   |----------- org-auto-repeat-maybe --------------------------------
>>   |  Check if the *current headline* contains a repeated time-stamp.
>>   |
>>   |  If yes, set TODO state back to what it was and change the base date
>>   |  of repeating *deadline/scheduled time stamps to new date*
>>   |
>>   |  ...
>>   |-----------------------------------------------------------------
>>
>> thus we should not programmatically modify an arbitrary date in a
>> document just because it has a repeater. specially not one buried 300
>> lines deep in a :LOGBOOK: drawer.
>>
>> commit af81211fdc contradicts the established documentation.
>
> No, it doesn't. "current headline" is to be taken broadly, i.e., in the
> headline or the adjacent section. So, it doesn't matter if a time stamp
> is buried somewhere in the section: it is meant to be updated. 

ok, so "current headline" is taken broadly. but what about the
deadline/scheduled part? what makes a time stamp "deadline/scheduled"?
those are the ones that should change as per the doc.

> Note that it was already the case for active time stamps before said
> commit.

wow! 10 years using org and i didn't know this. 

> For Org syntax, there is no such thing as a state-change entry. They are
> just plain lists. You could write anything in them.

they're plain lists that haven't changed after they've been written. one
could use them for billing reports etc ...

> Now, we might make its contents by marking them as verbatim, for
> example. E.g.,
>
>   - Rescheduled from =[2019-02-05 Tue .1m]= on [2018-09-29 Sat 18:50]

that's not a bad idea, but what about the other way round?

that is, inactive timestamps with repeaters do not update unless they are
marked as you suggest.  this way current workflows are not affected and
inactive timestamps can be made to update if requested. 

>> an existing entry should not change because one marks a task as DONE.
> I disagree. This has always been the case, at least for active
> time-stamps.

yes, i see where you're coming from. i like to keep it simple.

  (setq org-for-mere-mortal t)

best,
-cm

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

* Re: please read: bug when marking tasks done
  2019-01-10 14:15           ` cesar mena
@ 2019-01-12 11:24             ` Nicolas Goaziou
  2019-01-12 14:23               ` cesar mena
  0 siblings, 1 reply; 26+ messages in thread
From: Nicolas Goaziou @ 2019-01-12 11:24 UTC (permalink / raw)
  To: cesar mena; +Cc: Leo Gaspard, emacs-orgmode

Hello,

cesar mena <cesar.mena@gmail.com> writes:

> ok, so "current headline" is taken broadly. but what about the
> deadline/scheduled part? what makes a time stamp "deadline/scheduled"?
> those are the ones that should change as per the doc.

You are right the docstring is inaccurate here. It is not limited to
scheduled and deadlines, but also to plain time stamps. This is an
important feature.

However, this is not related to the commit we're talking about.

> they're plain lists that haven't changed after they've been written. one
> could use them for billing reports etc ...

Of course.

What I mean is Org has no way to know the meaning of the contents, or
what you want to do with them, if you don't put markers or some special
syntax somewhere.

>> Now, we might make its contents by marking them as verbatim, for
>> example. E.g.,
>>
>>   - Rescheduled from =[2019-02-05 Tue .1m]= on [2018-09-29 Sat 18:50]
>
> that's not a bad idea, but what about the other way round?
>
> that is, inactive timestamps with repeaters do not update unless they are
> marked as you suggest.  this way current workflows are not affected and
> inactive timestamps can be made to update if requested.

The other way around is not possible because =...= means "verbatim".
This would be contradictory.

The main question is: what to do with an "inactive time stamp with
repeater".

The original report, that lead to the incriminated commit, emphasized
the "repeater" part, arguing a repeater should induce the time stamp is
meant to be repeated, notwithstanding its nature.

You are emphasizing the "inactive" part of it, arguing that anything
inactive should not change dynamically.

Both arguments can be heard. I agree yours is more conservative. Yet,
I'd like to hear about a solution than can satisfy both. I'm Cc'ing the
OP.

> yes, i see where you're coming from. i like to keep it simple.
>
>   (setq org-for-mere-mortal t)

I'm trying to keep Org as simple as possible, but different users have
different use cases, and, in some annoying situations like this one,
these use cases conflict.

Regards,

-- 
Nicolas Goaziou

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

* Re: please read: bug when marking tasks done
  2019-01-12 11:24             ` Nicolas Goaziou
@ 2019-01-12 14:23               ` cesar mena
  2019-01-12 19:37                 ` Samuel Wales
  2019-01-13 20:16                 ` Nicolas Goaziou
  0 siblings, 2 replies; 26+ messages in thread
From: cesar mena @ 2019-01-12 14:23 UTC (permalink / raw)
  To: emacs-orgmode; +Cc: Leo Gaspard

hello,

Nicolas Goaziou <mail@nicolasgoaziou.fr> writes:

>>> Now, we might make its contents by marking them as verbatim, for
>>> example. E.g.,
>>>
>>>   - Rescheduled from =[2019-02-05 Tue .1m]= on [2018-09-29 Sat 18:50]
>>
>> that's not a bad idea, but what about the other way round?
>>
>> that is, inactive timestamps with repeaters do not update unless they are
>> marked as you suggest.  this way current workflows are not affected and
>> inactive timestamps can be made to update if requested.
>
> The other way around is not possible because =...= means "verbatim".
> This would be contradictory.

i see. i didn't know =...= meant verbatim. so in light of this new
knowledge :) your solution makes a lot of sense. i was originally
opposed to it because it means current documents will have to change to
add =...= but in the end it seems the simplest. 

> The main question is: what to do with an "inactive time stamp with
> repeater".
>
> The original report, that lead to the incriminated commit, emphasized
> the "repeater" part, arguing a repeater should induce the time stamp is
> meant to be repeated, notwithstanding its nature.
>
> You are emphasizing the "inactive" part of it, arguing that anything
> inactive should not change dynamically.
>
> Both arguments can be heard. I agree yours is more conservative. Yet,
> I'd like to hear about a solution than can satisfy both. I'm Cc'ing the
> OP.

i'm ok going with the verbatim syntax - rescheduled lines will now look
like (w/o the double quotes?):

  - Rescheduled from =[2019-02-05 Tue .1m]= on [2018-09-29 Sat 18:50]

> I'm trying to keep Org as simple as possible, but different users have
> different use cases, and, in some annoying situations like this one,
> these use cases conflict.

we are ever grateful.

best,
-cm

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

* Re: please read: bug when marking tasks done
  2019-01-12 14:23               ` cesar mena
@ 2019-01-12 19:37                 ` Samuel Wales
  2019-01-12 21:02                   ` Samuel Wales
  2019-01-13 15:00                   ` Nicolas Goaziou
  2019-01-13 20:16                 ` Nicolas Goaziou
  1 sibling, 2 replies; 26+ messages in thread
From: Samuel Wales @ 2019-01-12 19:37 UTC (permalink / raw)
  To: cesar mena; +Cc: Leo Gaspard, emacs-orgmode

manual> Text in the code and
verbatim string is not processed for Org mode specific syntax, it is
exported verbatim.

i assumed that meant /during export/.  it is in the markup section.

thus, someplace in manual, perhaps say that verbatim and code have
more effects than just export.


On 1/12/19, cesar mena <cesar.mena@gmail.com> wrote:
> hello,
>
> Nicolas Goaziou <mail@nicolasgoaziou.fr> writes:
>
>>>> Now, we might make its contents by marking them as verbatim, for
>>>> example. E.g.,
>>>>
>>>>   - Rescheduled from =[2019-02-05 Tue .1m]= on [2018-09-29 Sat 18:50]
>>>
>>> that's not a bad idea, but what about the other way round?
>>>
>>> that is, inactive timestamps with repeaters do not update unless they
>>> are
>>> marked as you suggest.  this way current workflows are not affected and
>>> inactive timestamps can be made to update if requested.
>>
>> The other way around is not possible because =...= means "verbatim".
>> This would be contradictory.
>
> i see. i didn't know =...= meant verbatim. so in light of this new
> knowledge :) your solution makes a lot of sense. i was originally
> opposed to it because it means current documents will have to change to
> add =...= but in the end it seems the simplest.
>
>> The main question is: what to do with an "inactive time stamp with
>> repeater".
>>
>> The original report, that lead to the incriminated commit, emphasized
>> the "repeater" part, arguing a repeater should induce the time stamp is
>> meant to be repeated, notwithstanding its nature.
>>
>> You are emphasizing the "inactive" part of it, arguing that anything
>> inactive should not change dynamically.
>>
>> Both arguments can be heard. I agree yours is more conservative. Yet,
>> I'd like to hear about a solution than can satisfy both. I'm Cc'ing the
>> OP.
>
> i'm ok going with the verbatim syntax - rescheduled lines will now look
> like (w/o the double quotes?):
>
>   - Rescheduled from =[2019-02-05 Tue .1m]= on [2018-09-29 Sat 18:50]
>
>> I'm trying to keep Org as simple as possible, but different users have
>> different use cases, and, in some annoying situations like this one,
>> these use cases conflict.
>
> we are ever grateful.
>
> best,
> -cm
>
>
>


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

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

"You’ve really gotta quit this and get moving, because this is murder
by neglect." ---
<http://www.meaction.net/2017/02/03/pwme-people-with-me-are-being-murdered-by-neglect>.

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

* Re: please read: bug when marking tasks done
  2019-01-12 19:37                 ` Samuel Wales
@ 2019-01-12 21:02                   ` Samuel Wales
  2019-01-13 15:00                   ` Nicolas Goaziou
  1 sibling, 0 replies; 26+ messages in thread
From: Samuel Wales @ 2019-01-12 21:02 UTC (permalink / raw)
  To: cesar mena; +Cc: Leo Gaspard, emacs-orgmode

there is a related bug.

when there are multiple repeaters, closing a task with -1 can only
zero the first.

probably it should zero all mutable repeaters.

***** MOOT hi
CLOSED: [2019-01-12 Sat 13:54]
<2019-01-13 Sun .+0d>
<2019-01-13 Sun .+1d>
=<2019-01-12 Sat .+1d>=
~<2019-01-12 Sat .+1d>~
hi


On 1/12/19, Samuel Wales <samologist@gmail.com> wrote:
> manual> Text in the code and
> verbatim string is not processed for Org mode specific syntax, it is
> exported verbatim.
>
> i assumed that meant /during export/.  it is in the markup section.
>
> thus, someplace in manual, perhaps say that verbatim and code have
> more effects than just export.
>
>
> On 1/12/19, cesar mena <cesar.mena@gmail.com> wrote:
>> hello,
>>
>> Nicolas Goaziou <mail@nicolasgoaziou.fr> writes:
>>
>>>>> Now, we might make its contents by marking them as verbatim, for
>>>>> example. E.g.,
>>>>>
>>>>>   - Rescheduled from =[2019-02-05 Tue .1m]= on [2018-09-29 Sat 18:50]
>>>>
>>>> that's not a bad idea, but what about the other way round?
>>>>
>>>> that is, inactive timestamps with repeaters do not update unless they
>>>> are
>>>> marked as you suggest.  this way current workflows are not affected and
>>>> inactive timestamps can be made to update if requested.
>>>
>>> The other way around is not possible because =...= means "verbatim".
>>> This would be contradictory.
>>
>> i see. i didn't know =...= meant verbatim. so in light of this new
>> knowledge :) your solution makes a lot of sense. i was originally
>> opposed to it because it means current documents will have to change to
>> add =...= but in the end it seems the simplest.
>>
>>> The main question is: what to do with an "inactive time stamp with
>>> repeater".
>>>
>>> The original report, that lead to the incriminated commit, emphasized
>>> the "repeater" part, arguing a repeater should induce the time stamp is
>>> meant to be repeated, notwithstanding its nature.
>>>
>>> You are emphasizing the "inactive" part of it, arguing that anything
>>> inactive should not change dynamically.
>>>
>>> Both arguments can be heard. I agree yours is more conservative. Yet,
>>> I'd like to hear about a solution than can satisfy both. I'm Cc'ing the
>>> OP.
>>
>> i'm ok going with the verbatim syntax - rescheduled lines will now look
>> like (w/o the double quotes?):
>>
>>   - Rescheduled from =[2019-02-05 Tue .1m]= on [2018-09-29 Sat 18:50]
>>
>>> I'm trying to keep Org as simple as possible, but different users have
>>> different use cases, and, in some annoying situations like this one,
>>> these use cases conflict.
>>
>> we are ever grateful.
>>
>> best,
>> -cm
>>
>>
>>
>
>
> --
> The Kafka Pandemic: <http://thekafkapandemic.blogspot.com>
>
> The disease DOES progress. MANY people have died from it. And ANYBODY
> can get it at any time.
>
> "You’ve really gotta quit this and get moving, because this is murder
> by neglect." ---
> <http://www.meaction.net/2017/02/03/pwme-people-with-me-are-being-murdered-by-neglect>.
>


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

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

"You’ve really gotta quit this and get moving, because this is murder
by neglect." ---
<http://www.meaction.net/2017/02/03/pwme-people-with-me-are-being-murdered-by-neglect>.

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

* Re: please read: bug when marking tasks done
  2019-01-12 19:37                 ` Samuel Wales
  2019-01-12 21:02                   ` Samuel Wales
@ 2019-01-13 15:00                   ` Nicolas Goaziou
  1 sibling, 0 replies; 26+ messages in thread
From: Nicolas Goaziou @ 2019-01-13 15:00 UTC (permalink / raw)
  To: Samuel Wales; +Cc: cesar mena, Leo Gaspard, emacs-orgmode

Hello,

Samuel Wales <samologist@gmail.com> writes:

> manual> Text in the code and
> verbatim string is not processed for Org mode specific syntax, it is
> exported verbatim.
>
> i assumed that meant /during export/.

Only the second part of the sentence refers to exporting. The current
wording is the following, note the punctuation used:

    Text in the code and verbatim string is not processed for Org mode
    specific syntax; it is exported verbatim.

> it is in the markup section.

The Markup section is a different section than Exporting.

> thus, someplace in manual, perhaps say that verbatim and code have
> more effects than just export.

Feel free to provide a better wording. Although, I find the current one
clear enough.

Regards,

-- 
Nicolas Goaziou

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

* Re: please read: bug when marking tasks done
  2019-01-12 14:23               ` cesar mena
  2019-01-12 19:37                 ` Samuel Wales
@ 2019-01-13 20:16                 ` Nicolas Goaziou
  2019-01-13 21:52                   ` Samuel Wales
  2019-01-15 16:43                   ` cesar mena
  1 sibling, 2 replies; 26+ messages in thread
From: Nicolas Goaziou @ 2019-01-13 20:16 UTC (permalink / raw)
  To: cesar mena; +Cc: Leo Gaspard, emacs-orgmode

Hello,

cesar mena <cesar.mena@gmail.com> writes:

> i'm ok going with the verbatim syntax - rescheduled lines will now look
> like (w/o the double quotes?):
>
>   - Rescheduled from =[2019-02-05 Tue .1m]= on [2018-09-29 Sat 18:50]

Thinking about it, another possibility is to add a variable, e.g.,
`org-repeat-inactive-timestamps', letting the user choose what to do
with inactive time stamps. I think it would default to nil.

This would be a more conservative solution; however, this would
contradict releases notes for Org 9.2.

WDYT?

Regards,

-- 
Nicolas Goaziou

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

* Re: please read: bug when marking tasks done
  2019-01-13 20:16                 ` Nicolas Goaziou
@ 2019-01-13 21:52                   ` Samuel Wales
  2019-01-15 14:24                     ` Bernt Hansen
  2019-01-15 16:43                   ` cesar mena
  1 sibling, 1 reply; 26+ messages in thread
From: Samuel Wales @ 2019-01-13 21:52 UTC (permalink / raw)
  To: cesar mena, emacs-orgmode, Leo Gaspard

dunno best solution.

another option is to comment out repeater intervals like ;.+2d instead
of .+0d or =[... .+2d]=.

this would also allow you to know what the interval was [currently
that information is lost].  it would avoid overloading face.  it would
be under user control for every ts.  it would, however, require
updating ts regexp.


On 1/13/19, Nicolas Goaziou <mail@nicolasgoaziou.fr> wrote:
> Hello,
>
> cesar mena <cesar.mena@gmail.com> writes:
>
>> i'm ok going with the verbatim syntax - rescheduled lines will now look
>> like (w/o the double quotes?):
>>
>>   - Rescheduled from =[2019-02-05 Tue .1m]= on [2018-09-29 Sat 18:50]
>
> Thinking about it, another possibility is to add a variable, e.g.,
> `org-repeat-inactive-timestamps', letting the user choose what to do
> with inactive time stamps. I think it would default to nil.
>
> This would be a more conservative solution; however, this would
> contradict releases notes for Org 9.2.
>
> WDYT?
>
> Regards,
>
> --
> Nicolas Goaziou
>
>


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

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

"You’ve really gotta quit this and get moving, because this is murder
by neglect." ---
<http://www.meaction.net/2017/02/03/pwme-people-with-me-are-being-murdered-by-neglect>.

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

* Re: please read: bug when marking tasks done
  2019-01-13 21:52                   ` Samuel Wales
@ 2019-01-15 14:24                     ` Bernt Hansen
  0 siblings, 0 replies; 26+ messages in thread
From: Bernt Hansen @ 2019-01-15 14:24 UTC (permalink / raw)
  To: Samuel Wales; +Cc: cesar mena, Leo Gaspard, emacs-orgmode

Samuel Wales <samologist@gmail.com> writes:

> dunno best solution.
>
> another option is to comment out repeater intervals like ;.+2d instead
> of .+0d or =[... .+2d]=.
>
> this would also allow you to know what the interval was [currently
> that information is lost].  it would avoid overloading face.  it would
> be under user control for every ts.  it would, however, require
> updating ts regexp.
>
>
> On 1/13/19, Nicolas Goaziou <mail@nicolasgoaziou.fr> wrote:
>> Hello,
>>
>> cesar mena <cesar.mena@gmail.com> writes:
>>
>>> i'm ok going with the verbatim syntax - rescheduled lines will now look
>>> like (w/o the double quotes?):
>>>
>>>   - Rescheduled from =[2019-02-05 Tue .1m]= on [2018-09-29 Sat 18:50]
>>
>> Thinking about it, another possibility is to add a variable, e.g.,
>> `org-repeat-inactive-timestamps', letting the user choose what to do
>> with inactive time stamps. I think it would default to nil.
>>
>> This would be a more conservative solution; however, this would
>> contradict releases notes for Org 9.2.
>>
>> WDYT?
>>
>> Regards,
>>
>> --
>> Nicolas Goaziou
>>
>>

I don't have a need for updating any timestamps but the ones in the
SCHEDULED/DEADLINE: entry.  A variable to control behaviour would work
great for me.

Regards,
Bernt

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

* Re: please read: bug when marking tasks done
  2019-01-13 20:16                 ` Nicolas Goaziou
  2019-01-13 21:52                   ` Samuel Wales
@ 2019-01-15 16:43                   ` cesar mena
  2019-01-15 23:11                     ` Samuel Wales
  1 sibling, 1 reply; 26+ messages in thread
From: cesar mena @ 2019-01-15 16:43 UTC (permalink / raw)
  To: cesar mena, emacs-orgmode, Leo Gaspard

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

hello,

On Sun, Jan 13, 2019 at 3:16 PM Nicolas Goaziou <mail@nicolasgoaziou.fr>
wrote:

> Hello,
>
> cesar mena <cesar.mena@gmail.com> writes:
>
> > i'm ok going with the verbatim syntax - rescheduled lines will now look
> > like (w/o the double quotes?):
> >
> >   - Rescheduled from =[2019-02-05 Tue .1m]= on [2018-09-29 Sat 18:50]
>
> Thinking about it, another possibility is to add a variable, e.g.,
> `org-repeat-inactive-timestamps', letting the user choose what to do
> with inactive time stamps. I think it would default to nil.
>
> This would be a more conservative solution; however, this would
> contradict releases notes for Org 9.2.
>
> WDYT?
>
>
this works of course and it doesn't affect current workflows while allowing
for inactive repeating timestamps.

the caveat would be that in the case of repeating timestamps, setting both
`org-log-into-drawer' and `org-repeat-inactive-timestamps' to a true value
will overwrite "Rescheduling" entries from the :LOGBOOK:.  in some limited
sense the two are incompatible (which would require the verbatim syntax).

with that understanding, and the fact that repeating inactive timestamps is
a new "feature" my vote is for `org-repeat-inactive-timestamps'.  this
leaves room down the road, should the need arise, for verbatim syntax in
log entries.

regards,
-cm

[-- Attachment #2: Type: text/html, Size: 3293 bytes --]

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

* Re: please read: bug when marking tasks done
  2019-01-15 16:43                   ` cesar mena
@ 2019-01-15 23:11                     ` Samuel Wales
  2019-01-15 23:18                       ` Samuel Wales
  2019-01-27 21:08                       ` Nicolas Goaziou
  0 siblings, 2 replies; 26+ messages in thread
From: Samuel Wales @ 2019-01-15 23:11 UTC (permalink / raw)
  To: cesar mena; +Cc: Leo Gaspard, emacs-orgmode

some possibly obvious observations:

nobody will want repeating inactive to be changed by org for the bug
case.  those are sacrosanct in that sense.

but if the variable solution is chosen as the sole solution, setting
it to allow changed inactive repeaters will make logbooks no longer
reliable.  i don't think anybody will want that.

"inactive" means "don't show in agenda unless
org-agenda-include-inactive-timestamps is non-nil".  not "sacrosanct".

while i have no use for inactive repeaters, the feature imo should not
be reverted.  it's a good idea.  imagine saying "the next phase of the
project will be on ...".

for the emphasis solution, not everybody wants the verbatim or code
face in the buffer [can be distracting] or on export ["why that
particular string?"].  verbatim is not always set to default.

some might want to have changed repeating inactive without triggering
the bug and also without using the special faces.

inactive repeaters can exist if you have active repeater events [bare
ts or ranges] and decide to "comment them out" by making them inactive
using shift down on the < or >.  some probably do this.

yet they will not want them changed inadvertently if they set the
variable to non-nil and aren't thinking about that.  surprise.

commented repeater cookies does not have any of the above drawbacks.
it might require a 3rd party tool to update its re if that tool uses
repeaters.  this is not unprecedented.  the inactive repeater feature
might already require a 3rd party tool to update its re.

so upon reflection i think i'd go for commentable repeater cookies.
it has a bonus too: whenever you turn off a repeater, it can be
annoying that it zeroes out the interval.  commenting would fix that.

perhaps there is a better, unmentioned solution?

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

* Re: please read: bug when marking tasks done
  2019-01-15 23:11                     ` Samuel Wales
@ 2019-01-15 23:18                       ` Samuel Wales
  2019-01-27 21:08                       ` Nicolas Goaziou
  1 sibling, 0 replies; 26+ messages in thread
From: Samuel Wales @ 2019-01-15 23:18 UTC (permalink / raw)
  To: cesar mena; +Cc: Leo Gaspard, emacs-orgmode

[correction: never mind the ranges part.]

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

* Re: please read: bug when marking tasks done
  2019-01-15 23:11                     ` Samuel Wales
  2019-01-15 23:18                       ` Samuel Wales
@ 2019-01-27 21:08                       ` Nicolas Goaziou
  2019-01-29 14:58                         ` Robert Horn
  2019-01-30 12:22                         ` cesar mena
  1 sibling, 2 replies; 26+ messages in thread
From: Nicolas Goaziou @ 2019-01-27 21:08 UTC (permalink / raw)
  To: Samuel Wales; +Cc: cesar mena, Leo Gaspard, emacs-orgmode

Hello,

Samuel Wales <samologist@gmail.com> writes:

> commented repeater cookies does not have any of the above drawbacks.
> it might require a 3rd party tool to update its re if that tool uses
> repeaters.  this is not unprecedented.  the inactive repeater feature
> might already require a 3rd party tool to update its re.
>
> so upon reflection i think i'd go for commentable repeater cookies.
> it has a bonus too: whenever you turn off a repeater, it can be
> annoying that it zeroes out the interval.  commenting would fix that.
>
> perhaps there is a better, unmentioned solution?

I think commented repeaters add unnecessary overhead to the already
loaded timestamp syntax. This is, IMO, not a common enough need to
warrant even a minor syntax change.

However, we still need to move forward. So, I suggest to revert the
change about inactive timestamps. Inactive timestamps cannot be
repeated. This is less disruptive than the current situation. 

However, I also suggest to add a new hook, run after repeating
timestamps. With this hook, and a proper, user-specific, markup, it
should be possible to pick inactive timestamps in the section and
"repeat" them manually, i.e., on a case-by-case basis.

WDYT?

Regards,

-- 
Nicolas Goaziou

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

* Re: please read: bug when marking tasks done
  2019-01-27 21:08                       ` Nicolas Goaziou
@ 2019-01-29 14:58                         ` Robert Horn
  2019-01-30 12:22                         ` cesar mena
  1 sibling, 0 replies; 26+ messages in thread
From: Robert Horn @ 2019-01-29 14:58 UTC (permalink / raw)
  To: Nicolas Goaziou; +Cc: emacs-orgmode


Nicolas Goaziou writes:

> However, I also suggest to add a new hook, run after repeating
> timestamps. With this hook, and a proper, user-specific, markup, it
> should be possible to pick inactive timestamps in the section and
> "repeat" them manually, i.e., on a case-by-case basis.
>
> WDYT?
>

I like this solution.  I've got several repeating tasks that do not have
simple rules.  (For example, alternating Monday morning/Thursday evening
and adjusting for local holidays, but different rules in July and
August.)  No simple syntax will ever handle these, but I can easily
write an elisp hook to capture the rules.

--
Robert Horn
rjhorn@alum.mit.edu

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

* Re: please read: bug when marking tasks done
  2019-01-27 21:08                       ` Nicolas Goaziou
  2019-01-29 14:58                         ` Robert Horn
@ 2019-01-30 12:22                         ` cesar mena
  2019-01-30 21:52                           ` Nicolas Goaziou
  1 sibling, 1 reply; 26+ messages in thread
From: cesar mena @ 2019-01-30 12:22 UTC (permalink / raw)
  To: Samuel Wales; +Cc: Leo Gaspard, emacs-orgmode

Nicolas Goaziou <mail@nicolasgoaziou.fr> writes:

> Hello,
>
> Samuel Wales <samologist@gmail.com> writes:
>
>> commented repeater cookies does not have any of the above drawbacks.
>> it might require a 3rd party tool to update its re if that tool uses
>> repeaters.  this is not unprecedented.  the inactive repeater feature
>> might already require a 3rd party tool to update its re.
>>
>> so upon reflection i think i'd go for commentable repeater cookies.
>> it has a bonus too: whenever you turn off a repeater, it can be
>> annoying that it zeroes out the interval.  commenting would fix that.
>>
>> perhaps there is a better, unmentioned solution?
>
> I think commented repeaters add unnecessary overhead to the already
> loaded timestamp syntax. This is, IMO, not a common enough need to
> warrant even a minor syntax change.
>
> However, we still need to move forward. So, I suggest to revert the
> change about inactive timestamps. Inactive timestamps cannot be
> repeated. This is less disruptive than the current situation. 

yes, agreed.

> However, I also suggest to add a new hook, run after repeating
> timestamps. With this hook, and a proper, user-specific, markup, it
> should be possible to pick inactive timestamps in the section and
> "repeat" them manually, i.e., on a case-by-case basis.

another (maybe crazy) idea is to advise org-auto-repeat-maybe and set
org-repeat-re as needed before it gets called.

regards,
-cm

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

* Re: please read: bug when marking tasks done
  2019-01-30 12:22                         ` cesar mena
@ 2019-01-30 21:52                           ` Nicolas Goaziou
  2019-01-31 10:25                             ` cesar mena
  0 siblings, 1 reply; 26+ messages in thread
From: Nicolas Goaziou @ 2019-01-30 21:52 UTC (permalink / raw)
  To: cesar mena; +Cc: Leo Gaspard, emacs-orgmode

Hello,

cesar mena <cesar.mena@gmail.com> writes:

> Nicolas Goaziou <mail@nicolasgoaziou.fr> writes:
>> However, we still need to move forward. So, I suggest to revert the
>> change about inactive timestamps. Inactive timestamps cannot be
>> repeated. This is less disruptive than the current situation. 
>
> yes, agreed.

Done in maint.

>> However, I also suggest to add a new hook, run after repeating
>> timestamps. With this hook, and a proper, user-specific, markup, it
>> should be possible to pick inactive timestamps in the section and
>> "repeat" them manually, i.e., on a case-by-case basis.

Done too.

> another (maybe crazy) idea is to advise org-auto-repeat-maybe and set
> org-repeat-re as needed before it gets called.

It is possible, but should be done on the user side, not on the Org one.

Regards,

-- 
Nicolas Goaziou

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

* Re: please read: bug when marking tasks done
  2019-01-30 21:52                           ` Nicolas Goaziou
@ 2019-01-31 10:25                             ` cesar mena
  2019-01-31 23:17                               ` Samuel Wales
  0 siblings, 1 reply; 26+ messages in thread
From: cesar mena @ 2019-01-31 10:25 UTC (permalink / raw)
  To: emacs-orgmode; +Cc: Leo Gaspard

hello,

Nicolas Goaziou <mail@nicolasgoaziou.fr> writes:

> Hello,
>
> cesar mena <cesar.mena@gmail.com> writes:
>
>> Nicolas Goaziou <mail@nicolasgoaziou.fr> writes:
>>> However, we still need to move forward. So, I suggest to revert the
>>> change about inactive timestamps. Inactive timestamps cannot be
>>> repeated. This is less disruptive than the current situation. 
>>
>> yes, agreed.
>
> Done in maint.

looks good here. 

thanks nicolas.

best,
-cesar

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

* Re: please read: bug when marking tasks done
  2019-01-31 10:25                             ` cesar mena
@ 2019-01-31 23:17                               ` Samuel Wales
  0 siblings, 0 replies; 26+ messages in thread
From: Samuel Wales @ 2019-01-31 23:17 UTC (permalink / raw)
  To: cesar mena; +Cc: Leo Gaspard, emacs-orgmode

sounds like a reasonable fix.

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

end of thread, other threads:[~2019-01-31 23:17 UTC | newest]

Thread overview: 26+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-01-06  0:13 please read: bug when marking tasks done cesar mena
2019-01-06 23:49 ` Nicolas Goaziou
2019-01-07 14:52   ` Bernt Hansen
2019-01-07 15:20   ` cesar mena
2019-01-08 10:24     ` Nicolas Goaziou
2019-01-08 14:29       ` Bernt Hansen
2019-01-08 20:07       ` cesar mena
2019-01-09 22:50         ` Nicolas Goaziou
2019-01-10 14:15           ` cesar mena
2019-01-12 11:24             ` Nicolas Goaziou
2019-01-12 14:23               ` cesar mena
2019-01-12 19:37                 ` Samuel Wales
2019-01-12 21:02                   ` Samuel Wales
2019-01-13 15:00                   ` Nicolas Goaziou
2019-01-13 20:16                 ` Nicolas Goaziou
2019-01-13 21:52                   ` Samuel Wales
2019-01-15 14:24                     ` Bernt Hansen
2019-01-15 16:43                   ` cesar mena
2019-01-15 23:11                     ` Samuel Wales
2019-01-15 23:18                       ` Samuel Wales
2019-01-27 21:08                       ` Nicolas Goaziou
2019-01-29 14:58                         ` Robert Horn
2019-01-30 12:22                         ` cesar mena
2019-01-30 21:52                           ` Nicolas Goaziou
2019-01-31 10:25                             ` cesar mena
2019-01-31 23:17                               ` Samuel Wales

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.