emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Daimrod <daimrod@gmail.com>
To: M <elwood151@web.de>
Cc: emacs-orgmode@gnu.org
Subject: Re: org-log-reschedule: inactive time-stamp instead
Date: Thu, 25 Jun 2015 12:03:22 +0200	[thread overview]
Message-ID: <87wpys85qt.fsf@gmail.com> (raw)
In-Reply-To: <loom.20150625T114513-594@post.gmane.org> (M.'s message of "Thu, 25 Jun 2015 09:50:03 +0000 (UTC)")

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

  reply	other threads:[~2015-06-25 10:03 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 [this message]
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

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=87wpys85qt.fsf@gmail.com \
    --to=daimrod@gmail.com \
    --cc=elwood151@web.de \
    --cc=emacs-orgmode@gnu.org \
    /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).