From: "Charles C. Berry" <ccberry@ucsd.edu>
To: John Kitchin <jkitchin@andrew.cmu.edu>
Cc: emacs-orgmode Mailinglist <emacs-orgmode@gnu.org>
Subject: Re: Where to put dates on meeting headlines
Date: Fri, 24 Feb 2017 20:21:36 -0800 [thread overview]
Message-ID: <alpine.OSX.2.20.1702241427530.3198@charles-berrys-macbook.local> (raw)
In-Reply-To: <m2y3wvbc65.fsf@andrew.cmu.edu>
On Fri, 24 Feb 2017, John Kitchin wrote:
> Suppose I use a heading to store notes on a meeting.
>
> Is there a canonical location to put a date so I could search for them
> later?
>
> It seems like the date is not a deadline, or scheduled timestamp. I
> could see putting the date in the headline, but then I do not see an
> obvious way to search for meetings that occurred in a time range.
> Putting the date in the body is another location, but then I do not know
> how it might be searched again.
>
> Another option is a property, which might be searchable at least with a
> function.
>
> What do you do along these lines?
>
> Here is a simple example of a headline I might have, and later I might
> want a report of all meetings in the month of February.
>
> * Group meeting <2017-02-24 Fri> :meeting:
>
That is a timestamp, albeit one with `:hour-start nil :minute-start nil'.
Isn't this good enough to search with?
#+BEGIN_SRC emacs-lisp
(org-element-map
(org-element-parse-buffer) 'timestamp
(lambda(x)
(let
((beg (org-element-property :begin x))
(month (org-element-property :month-start x))
(year (org-element-property :year-start x)))
(format "Year %s Month %s Where %s" year month beg))))
#+END_SRC
#+RESULTS:
| Year 2017 Month 2 Where 18 |
HTH,
Chuck
next prev parent reply other threads:[~2017-02-25 4:21 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-02-24 19:50 Where to put dates on meeting headlines John Kitchin
2017-02-25 4:21 ` Charles C. Berry [this message]
2017-02-25 16:45 ` John Kitchin
2017-02-26 6:05 ` Russell Adams
2017-02-26 18:31 ` John Kitchin
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=alpine.OSX.2.20.1702241427530.3198@charles-berrys-macbook.local \
--to=ccberry@ucsd.edu \
--cc=emacs-orgmode@gnu.org \
--cc=jkitchin@andrew.cmu.edu \
/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 external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.