* Logging the new time on a reschedule.
@ 2015-08-19 2:09 Malcolm Purvis
2015-08-19 14:09 ` Nicolas Goaziou
0 siblings, 1 reply; 6+ messages in thread
From: Malcolm Purvis @ 2015-08-19 2:09 UTC (permalink / raw)
To: emacs-orgmode
I would like to log the new time as well as the old when changing the
scheduling or deadline of a task. I changed the value of
org-log-note-headings to include the new time (%s) in the reschedule
log:
(reschedule . "Rescheduled from %S to %s on %t")
and set org-log-reschedule to 'time. However the new time is missing
from the log entry:
- Rescheduled from "[2015-08-21 Fri]" to on [2015-08-19 Wed 11:03]
I expected this instead:
- Rescheduled from "[2015-08-29 Sat]" to "[2015-09-19 Sat]" on [2015-08-19 Wed 11:38]
The cause is neither org-schedule nor org-deadline pass the the new time
to org-add-log-setup. Is there a reason for this?
Malcolm
--
Malcolm Purvis <malcolm@purvis.id.au>
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Logging the new time on a reschedule.
2015-08-19 2:09 Logging the new time on a reschedule Malcolm Purvis
@ 2015-08-19 14:09 ` Nicolas Goaziou
2015-08-20 8:02 ` Malcolm Purvis
2015-08-20 8:03 ` Malcolm Purvis
0 siblings, 2 replies; 6+ messages in thread
From: Nicolas Goaziou @ 2015-08-19 14:09 UTC (permalink / raw)
To: Malcolm Purvis; +Cc: emacs-orgmode
Hello,
Malcolm Purvis <malcolm@purvis.id.au> writes:
> I would like to log the new time as well as the old when changing the
> scheduling or deadline of a task. I changed the value of
> org-log-note-headings to include the new time (%s) in the reschedule
> log:
>
> (reschedule . "Rescheduled from %S to %s on %t")
>
> and set org-log-reschedule to 'time. However the new time is missing
> from the log entry:
>
> - Rescheduled from "[2015-08-21 Fri]" to on [2015-08-19 Wed 11:03]
>
> I expected this instead:
>
> - Rescheduled from "[2015-08-29 Sat]" to "[2015-09-19 Sat]" on [2015-08-19 Wed 11:38]
>
> The cause is neither org-schedule nor org-deadline pass the the new time
> to org-add-log-setup. Is there a reason for this?
None that I know. This is fixed. Thank you.
Regards,
--
Nicolas Goaziou
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Logging the new time on a reschedule.
2015-08-19 14:09 ` Nicolas Goaziou
@ 2015-08-20 8:02 ` Malcolm Purvis
2015-08-20 8:03 ` Malcolm Purvis
1 sibling, 0 replies; 6+ messages in thread
From: Malcolm Purvis @ 2015-08-20 8:02 UTC (permalink / raw)
To: emacs-orgmode
>>>>> "Nicolas" == Nicolas Goaziou <mail@nicolasgoaziou.fr> writes:
Nicolas> None that I know. This is fixed. Thank you.
Thanks. Unfortunately I now get an error when I try to reschedule:
Error in post-command-hook (org-add-log-note): (wrong-type-argument char-or-string-p time)
The relevant part of my config is:
--8<---------------cut here---------------start------------->8---
(setq
org-log-reschedule (quote time)
org-log-redeadline (quote time)
)
(setq org-log-note-headings
(cons '(reschedule . "Rescheduled from %S to %s on %t")
org-log-note-headings))
(setq org-log-note-headings
(cons '(redeadline . "New deadline from %S to %s on %t")
org-log-note-headings))
--8<---------------cut here---------------end--------------->8---
Malcolm
--
Malcolm Purvis <malcolm@purvis.id.au>
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Logging the new time on a reschedule.
2015-08-19 14:09 ` Nicolas Goaziou
2015-08-20 8:02 ` Malcolm Purvis
@ 2015-08-20 8:03 ` Malcolm Purvis
2015-08-20 12:06 ` Nicolas Goaziou
1 sibling, 1 reply; 6+ messages in thread
From: Malcolm Purvis @ 2015-08-20 8:03 UTC (permalink / raw)
To: emacs-orgmode
>>>>> "Nicolas" == Nicolas Goaziou <mail@nicolasgoaziou.fr> writes:
Nicolas> None that I know. This is fixed. Thank you.
Thanks. Unfortunately I now get an error when I try to reschedule:
Error in post-command-hook (org-add-log-note): (wrong-type-argument char-or-string-p time)
The relevant part of my config is:
--8<---------------cut here---------------start------------->8---
(setq
org-log-reschedule (quote time)
org-log-redeadline (quote time)
)
(setq org-log-note-headings
(cons '(reschedule . "Rescheduled from %S to %s on %t")
org-log-note-headings))
(setq org-log-note-headings
(cons '(redeadline . "New deadline from %S to %s on %t")
org-log-note-headings))
--8<---------------cut here---------------end--------------->8---
Malcolm
--
Malcolm Purvis <malcolm@purvis.id.au>
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Logging the new time on a reschedule.
2015-08-20 8:03 ` Malcolm Purvis
@ 2015-08-20 12:06 ` Nicolas Goaziou
2015-08-21 1:30 ` Malcolm Purvis
0 siblings, 1 reply; 6+ messages in thread
From: Nicolas Goaziou @ 2015-08-20 12:06 UTC (permalink / raw)
To: Malcolm Purvis; +Cc: emacs-orgmode
Malcolm Purvis <malcolm@purvis.id.au> writes:
> Thanks. Unfortunately I now get an error when I try to reschedule:
>
> Error in post-command-hook (org-add-log-note): (wrong-type-argument char-or-string-p time)
Oops. Fixed. Thank you.
Regards,
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Logging the new time on a reschedule.
2015-08-20 12:06 ` Nicolas Goaziou
@ 2015-08-21 1:30 ` Malcolm Purvis
0 siblings, 0 replies; 6+ messages in thread
From: Malcolm Purvis @ 2015-08-21 1:30 UTC (permalink / raw)
To: emacs-orgmode
>>>>> "Nicolas" == Nicolas Goaziou <mail@nicolasgoaziou.fr> writes:
Nicolas> Malcolm Purvis <malcolm@purvis.id.au> writes:
>> Thanks. Unfortunately I now get an error when I try to reschedule:
Nicolas> Oops. Fixed. Thank you.
It works as expected now. Thanks again.
Malcolm
--
Malcolm Purvis <malcolm@purvis.id.au>
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2015-08-21 1:31 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-08-19 2:09 Logging the new time on a reschedule Malcolm Purvis
2015-08-19 14:09 ` Nicolas Goaziou
2015-08-20 8:02 ` Malcolm Purvis
2015-08-20 8:03 ` Malcolm Purvis
2015-08-20 12:06 ` Nicolas Goaziou
2015-08-21 1:30 ` Malcolm Purvis
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).