emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* patch + query about active timestamps
@ 2010-05-04 15:03 Richard Riley
  2010-05-13  5:50 ` Carsten Dominik
  0 siblings, 1 reply; 2+ messages in thread
From: Richard Riley @ 2010-05-04 15:03 UTC (permalink / raw)
  To: emacs-orgmode


I like pretty much all work done appearing in my agenda. Including
adding notes. Its easy enough to subfilter for just TODOs later.

With this in mind I modified org :-

	Modified lisp/org.el
diff --git a/lisp/org.el b/lisp/org.el
index 9c2f848..cd296b9 100644
--- a/lisp/org.el
+++ b/lisp/org.el
@@ -11315,6 +11315,9 @@ EXTRA is additional text that will be inserted into the notes buffer."
 		   (cons "%t" (format-time-string
 			       (org-time-stamp-format 'long 'inactive)
 			       (current-time)))
+		   (cons "%T" (format-time-string
+			       (org-time-stamp-format 'long nil)
+			       (current-time)))
 		   (cons "%s" (if org-log-note-state
 				  (concat "\"" org-log-note-state "\"")
 				""))

to allow me to customise org-log-note-headings to marks notes with
active timestamps rather than inactive (%T).

e.g see the %T change for note here:-

 (setq org-log-note-headings (quote ((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 would like to see in my agenda a mark at the time all notes were
added. This works to a degree - it only shows ONE active timestamp for
that day. So two notes taken a few hours apart would not show
up. Another note taken the following day would trigger another agenda
entry. (Ideally the agenda would show the note itself and the heading
rather than the item heading only).

Could this be fixed (allow all active timestamps in an org item to
create an agenda entry) or is there another way of going about this? I
realise I am kind of stretching the meaning of "agenda" here ... it just
seems quite natural for the agenda to be a journal as well as a list of
things ToDo.

Or possibly this is an extension to the current agenda customisation
facility?

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

* Re: patch + query about active timestamps
  2010-05-04 15:03 patch + query about active timestamps Richard Riley
@ 2010-05-13  5:50 ` Carsten Dominik
  0 siblings, 0 replies; 2+ messages in thread
From: Carsten Dominik @ 2010-05-13  5:50 UTC (permalink / raw)
  To: Richard Riley; +Cc: emacs-orgmode

Hi Richard,

I have applied this patch.  Thanks!

- Carsten

On May 4, 2010, at 5:03 PM, Richard Riley wrote:

>
> I like pretty much all work done appearing in my agenda. Including
> adding notes. Its easy enough to subfilter for just TODOs later.
>
> With this in mind I modified org :-
>
> 	Modified lisp/org.el
> diff --git a/lisp/org.el b/lisp/org.el
> index 9c2f848..cd296b9 100644
> --- a/lisp/org.el
> +++ b/lisp/org.el
> @@ -11315,6 +11315,9 @@ EXTRA is additional text that will be  
> inserted into the notes buffer."
> 		   (cons "%t" (format-time-string
> 			       (org-time-stamp-format 'long 'inactive)
> 			       (current-time)))
> +		   (cons "%T" (format-time-string
> +			       (org-time-stamp-format 'long nil)
> +			       (current-time)))
> 		   (cons "%s" (if org-log-note-state
> 				  (concat "\"" org-log-note-state "\"")
> 				""))
>
> to allow me to customise org-log-note-headings to marks notes with
> active timestamps rather than inactive (%T).
>
> e.g see the %T change for note here:-
>
> (setq org-log-note-headings (quote ((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 would like to see in my agenda a mark at the time all notes were
> added. This works to a degree - it only shows ONE active timestamp for
> that day. So two notes taken a few hours apart would not show
> up. Another note taken the following day would trigger another agenda
> entry. (Ideally the agenda would show the note itself and the heading
> rather than the item heading only).
>
> Could this be fixed (allow all active timestamps in an org item to
> create an agenda entry) or is there another way of going about this? I
> realise I am kind of stretching the meaning of "agenda" here ... it  
> just
> seems quite natural for the agenda to be a journal as well as a list  
> of
> things ToDo.
>
> Or possibly this is an extension to the current agenda customisation
> facility?
>
>
>
>
>
> _______________________________________________
> Emacs-orgmode mailing list
> Please use `Reply All' to send replies to the list.
> Emacs-orgmode@gnu.org
> http://lists.gnu.org/mailman/listinfo/emacs-orgmode

- Carsten

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

end of thread, other threads:[~2010-05-13  5:50 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-05-04 15:03 patch + query about active timestamps Richard Riley
2010-05-13  5:50 ` Carsten Dominik

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