emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Matt Lundin <mdl@imapmail.org>
To: Christopher Allan Webber <cwebber@dustycloud.org>
Cc: emacs-orgmode@gnu.org
Subject: Re: Occurance property, or some similar name?
Date: Tue, 12 Apr 2011 21:01:59 -0400	[thread overview]
Message-ID: <87k4ezklq0.fsf@fastmail.fm> (raw)
In-Reply-To: <8739lnnqfb.fsf@dustycloud.org> (Christopher Allan Webber's message of "Tue, 12 Apr 2011 15:52:08 -0500")

Christopher Allan Webber <cwebber@dustycloud.org> writes:

> Matt Lundin <mdl@imapmail.org> writes:
>
>> There is a special property name for active timestamps: TIMESTAMP. You
>> can access the first active timestamp in an entry (either with column
>> view or org-entry-get) via the special property TIMESTAMP. Inactive
>> timestamps = TIMESTAMP_IA.
>>
>
> Hm, that's interesting.  But I'm not talking about a way to access it
> via elisp, I'm talking about a place to actually put it in say, the
> property drawer.  Say:
>
> ** Pick up bike from the shop
>    :PROPERTIES:
>    :OCCURANCE: <2011-04-12 Tue 19:00>
>    :END:
>
> etc.
>
> It's nice to know there's a meta-property for TIMESTAMP, but I'm
> specifically looking for a nice place to put that timestamp away.  This
> is for cleanliness / easy get-set purposes.

O.K. I wasn't clear what you meant by property in the original post.
What about :APPOINTMENT:? 

>> AFAIK, there is no similar built-in function to call on headlines in org
>> files. One can, however, navigate to the timestamp and use the
>> Shift-arrow keys or C-c . to change the appointment.
>
> That's useful, and would change this property even if I put it in such a
> drawer... provided that property already existed.  But what if I want to
> insert something on a currently un-OCCURANCE'd (or whatever) thing?  I
> don't want it to go on the headline, that looks gross.

Here's a simple proof of concept:

(defun my-org-add-occurrence ()
  (interactive)
  (org-set-property "OCCURRENCE" 
		    (concat "<" (org-read-date t) ">")))

It turns...

--8<---------------cut here---------------start------------->8---
* A headline
--8<---------------cut here---------------end--------------->8---

...into...

--8<---------------cut here---------------start------------->8---
* A headline
  :PROPERTIES:
  :OCCURRENCE: <2011-04-12 20:00>
  :END:
--8<---------------cut here---------------end--------------->8---

> I'm partly trying to see if other people want this as much as I do.
> Surely I'm not the only one who finds putting active timestamps on the
> headline or scattered just anywhere in the entry kind of gross?

I keep them right beneath the headline, which I find to be just the
right mix of tidiness and visibility.

--8<---------------cut here---------------start------------->8---
* A headline
  <2011-04-12 20:00>
--8<---------------cut here---------------end--------------->8---

Best,
Matt

  reply	other threads:[~2011-04-13  1:34 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-04-11 22:42 Occurance property, or some similar name? Christopher Allan Webber
2011-04-12  4:22 ` theo
2011-04-12 14:41   ` Christopher Allan Webber
2011-04-12 19:28     ` Matt Lundin
2011-04-12 19:25 ` Matt Lundin
2011-04-12 20:52   ` Christopher Allan Webber
2011-04-13  1:01     ` Matt Lundin [this message]
2011-04-13 13:07       ` Christopher Allan Webber
2011-04-13  8:19     ` Michael Brand
2011-04-13 13:08       ` Christopher Allan Webber
2011-04-13 14:19         ` Michael Brand
2011-04-13 14:43           ` Christopher Allan Webber
2011-04-13 15:42             ` Michael Brand
2011-04-13 15:57               ` Christopher Allan Webber
2011-04-12 20:00 ` Memnon Anon
2011-04-12 20:24   ` Richard Riley
2011-04-13 15:34   ` Carsten Dominik

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=87k4ezklq0.fsf@fastmail.fm \
    --to=mdl@imapmail.org \
    --cc=cwebber@dustycloud.org \
    --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).