emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: John Hendy <jw.hendy@gmail.com>
To: Michael Gilbert <mcg@gilbert.org>
Cc: emacs-orgmode Mailinglist <emacs-orgmode@gnu.org>
Subject: Re: date added into logbook?
Date: Mon, 28 May 2012 14:56:12 -0500	[thread overview]
Message-ID: <CA+M2ft_61Qg0jOsNwN_ubMBhvjcBNGuoZS3fJtOS-+0YjxFANQ@mail.gmail.com> (raw)
In-Reply-To: <27237E64-67BA-4FA4-8365-3EBF9DD00B94@gilbert.org>

On Mon, May 28, 2012 at 2:01 PM, Michael Gilbert <mcg@gilbert.org> wrote:
> Hi all —
>

[snip]

> I have a desire to better track the history of notes and tasks, as they get created, refiled, etc. This involves several elements, but one of them involves a piece that I've wanted for a while: a way to keep the data that is lost when I refile an item from my default date-tree file — the date the item was created/added.
>
> Perhaps there is some obvious (but mysterious to me) variable I can set for this, but I haven't found it. What I want is to be able to have a string similar to the others added to the logbook (like " - Refiled on [2012-05-28 Mon 11:33]"), but for the date/time the item first appeared.
>

Bernt Hansen does this (I think this is what you're looking for). Can this help?
-- http://doc.norang.ca/org-mode.html#sec-15-21

#+begin_src elisp
(defun bh/insert-inactive-timestamp ()
  (interactive)
  (org-insert-time-stamp nil t t nil nil nil))

(defun bh/insert-heading-inactive-timestamp ()
  (save-excursion
    (org-return)
    (org-cycle)
    (bh/insert-inactive-timestamp)))

(add-hook 'org-insert-heading-hook
'bh/insert-heading-inactive-timestamp 'append)
#+end_src

Best regards,
John

> Is anyone else already doing this?
>
> — Michael
>
>
> http://nonprofitnews.org
> http://gilbert.org
>
>
>
>

  reply	other threads:[~2012-05-28 19:56 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-05-28 19:01 date added into logbook? Michael Gilbert
2012-05-28 19:56 ` John Hendy [this message]
2012-05-28 21:58   ` Michael C Gilbert
2012-05-28 22:51     ` John Hendy
2012-05-29 13:04       ` Jonathan Leech-Pepin
2012-05-29 17:50         ` Michael C Gilbert
2012-06-01  3:03 ` Sacha Chua
2012-06-10 16:59   ` Michael C Gilbert

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=CA+M2ft_61Qg0jOsNwN_ubMBhvjcBNGuoZS3fJtOS-+0YjxFANQ@mail.gmail.com \
    --to=jw.hendy@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=mcg@gilbert.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).