Re: [O] org-log-reschedule: inactive time-stamp instead

2015-06-29 Thread Daimrod
Nicolas Goaziou m...@nicolasgoaziou.fr writes:

 Hello,

 M elwood...@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


signature.asc
Description: PGP signature


Re: [O] org-log-reschedule: inactive time-stamp instead

2015-06-29 Thread Nicolas Goaziou
M elwood...@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,



Re: [O] org-log-reschedule: inactive time-stamp instead

2015-06-25 Thread Nicolas Goaziou
Hello,

M elwood...@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



Re: [O] org-log-reschedule: inactive time-stamp instead

2015-06-25 Thread M
 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





Re: [O] org-log-reschedule: inactive time-stamp instead

2015-06-25 Thread Daimrod
M elwood...@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


signature.asc
Description: PGP signature


Re: [O] org-log-reschedule: inactive time-stamp instead

2015-06-25 Thread M



 Von: Nicolas Goaziou m...@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





Re: [O] org-log-reschedule: inactive time-stamp instead

2014-12-17 Thread Karl Voit
* Nicolas Goaziou m...@nicolasgoaziou.fr wrote:
 Hello,

Hi Nicolas!

 Karl Voit devn...@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




Re: [O] org-log-reschedule: inactive time-stamp instead

2014-12-16 Thread Nicolas Goaziou
Hello,

Karl Voit devn...@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