emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* org-log-reschedule: inactive time-stamp instead
@ 2014-12-16 17:25 Karl Voit
  2014-12-16 21:49 ` Nicolas Goaziou
  0 siblings, 1 reply; 9+ messages in thread
From: Karl Voit @ 2014-12-16 17:25 UTC (permalink / raw)
  To: emacs-orgmode

Hi!

I am using org-log-reschedule set to "time" to get LOGBOOK entries
when I reschedule a task.

This is fine so far. However, I'd like to log *inactive* time-stamps
instead of active ones:

,----[ what I get now ]
| :LOGBOOK:
| - Rescheduled from "<2014-12-17 Mi>" on [2014-12-16 Di 17:01]
| :END:
`----

Those active time-stamps clutter my daily agenda a bit. Therefore:

,----[ what I would like to get ]
| :LOGBOOK:
| - Rescheduled from "[2014-12-17 Mi]" on [2014-12-16 Di 17:01]
| :END:
`----

So can someone please add an option for this variable to get
inactive time-stamps?

Thank you very much!

-- 
mail|git|SVN|photos|postings|SMS|phonecalls|RSS|CSV|XML to Org-mode:
       > get Memacs from https://github.com/novoid/Memacs <

https://github.com/novoid/extract_pdf_annotations_to_orgmode + more on github

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

* Re: org-log-reschedule: inactive time-stamp instead
  2014-12-16 17:25 org-log-reschedule: inactive time-stamp instead Karl Voit
@ 2014-12-16 21:49 ` Nicolas Goaziou
  2014-12-17  9:08   ` Karl Voit
  0 siblings, 1 reply; 9+ messages in thread
From: Nicolas Goaziou @ 2014-12-16 21:49 UTC (permalink / raw)
  To: Karl Voit; +Cc: Karl Voit, emacs-orgmode

Hello,

Karl Voit <devnull@Karl-Voit.at> writes:

> I am using org-log-reschedule set to "time" to get LOGBOOK entries
> when I reschedule a task.
>
> This is fine so far. However, I'd like to log *inactive* time-stamps
> instead of active ones:
>
> ,----[ what I get now ]
> | :LOGBOOK:
> | - Rescheduled from "<2014-12-17 Mi>" on [2014-12-16 Di 17:01]
> | :END:
> `----
>
> Those active time-stamps clutter my daily agenda a bit. Therefore:
>
> ,----[ what I would like to get ]
> | :LOGBOOK:
> | - Rescheduled from "[2014-12-17 Mi]" on [2014-12-16 Di 17:01]
> | :END:
> `----
>
> So can someone please add an option for this variable to get
> inactive time-stamps?

This should be the default behaviour. Have you customized somehow
`org-log-note-headings'?


Regards,
-- 
Nicolas Goaziou

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

* Re: org-log-reschedule: inactive time-stamp instead
  2014-12-16 21:49 ` Nicolas Goaziou
@ 2014-12-17  9:08   ` Karl Voit
  2015-06-25  9:50     ` M
  0 siblings, 1 reply; 9+ messages in thread
From: Karl Voit @ 2014-12-17  9:08 UTC (permalink / raw)
  To: emacs-orgmode

* Nicolas Goaziou <mail@nicolasgoaziou.fr> wrote:
> Hello,

Hi Nicolas!

> Karl Voit <devnull@Karl-Voit.at> writes:
>
>> Those active time-stamps clutter my daily agenda a bit. Therefore:
>>
>> ,----[ what I would like to get ]
>> | :LOGBOOK:
>> | - Rescheduled from "[2014-12-17 Mi]" on [2014-12-16 Di 17:01]
>> | :END:
>> `----
>>
>> So can someone please add an option for this variable to get
>> inactive time-stamps?
>
> This should be the default behaviour. 

In my memory, this was the case in the past. My guess is, that this
changed when I did an update of my org git repository.

Currently: Org-mode version 8.3beta (release_8.3beta-544-g77f088)

> Have you customized somehow
> `org-log-note-headings'?

No, but thanks for the pointer - looks very handy to me!

,----[ my setting which is not customized ]
| Value: ((done . "CLOSING NOTE %t")
|  (state . "State %-12s from %-12S %t")
|  (note . "Note taken on %t")
|  (reschedule . "Rescheduled from %S on %t")
|  (delschedule . "Not scheduled, was %S on %t")
|  (redeadline . "New deadline from %S on %t")
|  (deldeadline . "Removed deadline, was %S on %t")
|  (refile . "Refiled on %t")
|  (clock-out . ""))
`----

I could not locate anything suspicious in my config file[1] via "M-x
occur" + "active".

[1] https://github.com/novoid/dot-emacs/blob/master/main.el

-- 
mail|git|SVN|photos|postings|SMS|phonecalls|RSS|CSV|XML to Org-mode:
       > get Memacs from https://github.com/novoid/Memacs <

https://github.com/novoid/extract_pdf_annotations_to_orgmode + more on github

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

* Re: org-log-reschedule: inactive time-stamp instead
  2014-12-17  9:08   ` Karl Voit
@ 2015-06-25  9:50     ` M
  2015-06-25 10:03       ` Daimrod
  2015-06-25 12:20       ` Nicolas Goaziou
  0 siblings, 2 replies; 9+ messages in thread
From: M @ 2015-06-25  9:50 UTC (permalink / raw)
  To: emacs-orgmode

> Karl Voit <devnull <at> Karl-Voit.at> writes:
> >> Those active time-stamps clutter my daily agenda a bit. Therefore:
> >>
> >> ,----[ what I would like to get ]
> >> | :LOGBOOK:
> >> | - Rescheduled from "[2014-12-17 Mi]" on [2014-12-16 Di 17:01]
> >> | :END:
> >> `----
> >>
> >> So can someone please add an option for this variable to get
> >> inactive time-stamps?
> 

Hi Karl,
did you find a solution in the meantime? I'm having the same problem and the
active timestamps are also bothering me as rescheduled tasks which
originally were scheduled for today stay in my daily agenda and clutter it.

I wonder if I get something wrong, but in the variable org-log-note-headings
I see

  Heading when rescheduling
  String: Rescheduled from %S on %t
Shouldn't the %S represent a TODO state (which makes no sense)?
Can I replace it by an inactive timestamp?

Kind regards
Martin

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

* Re: org-log-reschedule: inactive time-stamp instead
  2015-06-25  9:50     ` M
@ 2015-06-25 10:03       ` Daimrod
  2015-06-25 12:20       ` Nicolas Goaziou
  1 sibling, 0 replies; 9+ messages in thread
From: Daimrod @ 2015-06-25 10:03 UTC (permalink / raw)
  To: M; +Cc: emacs-orgmode

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

M <elwood151@web.de> writes:

>> Karl Voit <devnull <at> Karl-Voit.at> writes:
>> >> Those active time-stamps clutter my daily agenda a bit. Therefore:
>> >>
>> >> ,----[ what I would like to get ]
>> >> | :LOGBOOK:
>> >> | - Rescheduled from "[2014-12-17 Mi]" on [2014-12-16 Di 17:01]
>> >> | :END:
>> >> `----
>> >>
>> >> So can someone please add an option for this variable to get
>> >> inactive time-stamps?
>> 
>
> Hi Karl,
> did you find a solution in the meantime? I'm having the same problem and the
> active timestamps are also bothering me as rescheduled tasks which
> originally were scheduled for today stay in my daily agenda and clutter it.
>
> I wonder if I get something wrong, but in the variable org-log-note-headings
> I see
>
>   Heading when rescheduling
>   String: Rescheduled from %S on %t
> Shouldn't the %S represent a TODO state (which makes no sense)?
> Can I replace it by an inactive timestamp?

Hi,

I had the same problem and implemented a quick'n dirty solution :

(defun dmd-org-active-timestamp-to-inactive-when-rescheduled ()
  "Convert some variable with active timestamp to inactive one."
  (when (eq org-log-note-purpose 'reschedule)
    (setq org-log-note-previous-state
          (substitute ?\] ?\> (substitute ?\[ ?\< org-log-note-previous-state :test #'char-equal)
                      :test #'char-equal))))

(add-hook 'org-log-buffer-setup-hook 'dmd-org-active-timestamp-to-inactive-when-rescheduled)

It works for me but it should probably be fixed in org-mode itself.

Best,

-- 
Daimrod/Greg

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 818 bytes --]

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

* Re: org-log-reschedule: inactive time-stamp instead
  2015-06-25  9:50     ` M
  2015-06-25 10:03       ` Daimrod
@ 2015-06-25 12:20       ` Nicolas Goaziou
  2015-06-25 20:05         ` M
  2015-06-29 12:01         ` Daimrod
  1 sibling, 2 replies; 9+ messages in thread
From: Nicolas Goaziou @ 2015-06-25 12:20 UTC (permalink / raw)
  To: M; +Cc: emacs-orgmode

Hello,

M <elwood151@web.de> writes:

> I wonder if I get something wrong, but in the variable org-log-note-headings
> I see
>
>   Heading when rescheduling
>   String: Rescheduled from %S on %t
> Shouldn't the %S represent a TODO state (which makes no sense)?

%S represents the last "state". If you change a TODO keyword, is also
a TODO keyword (or lack thereof). If you alter a timestamp, it is that
timestamp.

> Can I replace it by an inactive timestamp?

Is there any use case for an active timestamp at this location anyway?
If there is not, we could automatically convert it to an inactive
timestamp.

WDYT?


Regards,

-- 
Nicolas Goaziou

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

* Re: org-log-reschedule: inactive time-stamp instead
  2015-06-25 12:20       ` Nicolas Goaziou
@ 2015-06-25 20:05         ` M
  2015-06-29 20:24           ` Nicolas Goaziou
  2015-06-29 12:01         ` Daimrod
  1 sibling, 1 reply; 9+ messages in thread
From: M @ 2015-06-25 20:05 UTC (permalink / raw)
  To: Nicolas Goaziou; +Cc: emacs-orgmode




> Von: Nicolas Goaziou <mail@nicolasgoaziou.fr>
> Datum: Thu, 25 Jun 2015 14:20:40 +0200
> Betreff: Re: org-log-reschedule: inactive time-stamp instead
> 
> Hello,
> 
> 
>> I wonder if I get something wrong, but in the variable org-log-note-headings
>> I see
>> 
>>   Heading when rescheduling
>>   String: Rescheduled from %S on %t
>> Shouldn't the %S represent a TODO state (which makes no sense)?
> 
> %S represents the last "state". If you change a TODO keyword, is also
> a TODO keyword (or lack thereof). If you alter a timestamp, it is that
> timestamp.
> 
>> Can I replace it by an inactive timestamp?
> 
> Is there any use case for an active timestamp at this location anyway?
> If there is not, we could automatically convert it to an inactive
> timestamp.
> 
> WDYT?

Salut Nicolas,

thanks a lot for your explanations!
If the timestamp would automatically be converted to an inactive one, hat
would be perfect from my point of view.

How can we achievve that?
(I'm sorry, but I am still quite clueless concerning ELISP :-) )

Kind regards

Martin

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

* Re: org-log-reschedule: inactive time-stamp instead
  2015-06-25 12:20       ` Nicolas Goaziou
  2015-06-25 20:05         ` M
@ 2015-06-29 12:01         ` Daimrod
  1 sibling, 0 replies; 9+ messages in thread
From: Daimrod @ 2015-06-29 12:01 UTC (permalink / raw)
  To: emacs-orgmode

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

Nicolas Goaziou <mail@nicolasgoaziou.fr> writes:

> Hello,
>
> M <elwood151@web.de> writes:
>
>> I wonder if I get something wrong, but in the variable org-log-note-headings
>> I see
>>
>>   Heading when rescheduling
>>   String: Rescheduled from %S on %t
>> Shouldn't the %S represent a TODO state (which makes no sense)?
>
> %S represents the last "state". If you change a TODO keyword, is also
> a TODO keyword (or lack thereof). If you alter a timestamp, it is that
> timestamp.
>
>> Can I replace it by an inactive timestamp?
>
> Is there any use case for an active timestamp at this location anyway?
> If there is not, we could automatically convert it to an inactive
> timestamp.
>
> WDYT?

I don't have any use for an active location here. IMO it clutters the agenda
with senseless entries.

Best,

-- 
Daimrod/Greg

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 818 bytes --]

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

* Re: org-log-reschedule: inactive time-stamp instead
  2015-06-25 20:05         ` M
@ 2015-06-29 20:24           ` Nicolas Goaziou
  0 siblings, 0 replies; 9+ messages in thread
From: Nicolas Goaziou @ 2015-06-29 20:24 UTC (permalink / raw)
  To: M; +Cc: emacs-orgmode

M <Elwood151@web.de> writes:

> thanks a lot for your explanations!
> If the timestamp would automatically be converted to an inactive one, hat
> would be perfect from my point of view.

Done in 304f84530b276b72272c37aa3e4dfded4584d709. Thank you.


Regards,

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

end of thread, other threads:[~2015-06-29 20:23 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-12-16 17:25 org-log-reschedule: inactive time-stamp instead Karl Voit
2014-12-16 21:49 ` Nicolas Goaziou
2014-12-17  9:08   ` Karl Voit
2015-06-25  9:50     ` M
2015-06-25 10:03       ` Daimrod
2015-06-25 12:20       ` Nicolas Goaziou
2015-06-25 20:05         ` M
2015-06-29 20:24           ` Nicolas Goaziou
2015-06-29 12:01         ` Daimrod

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