emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Where to put dates on meeting headlines
@ 2017-02-24 19:50 John Kitchin
  2017-02-25  4:21 ` Charles C. Berry
  0 siblings, 1 reply; 5+ messages in thread
From: John Kitchin @ 2017-02-24 19:50 UTC (permalink / raw)
  To: emacs-orgmode Mailinglist

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:

Notes about today's meeting...

Thanks!

-- 
Professor John Kitchin
Doherty Hall A207F
Department of Chemical Engineering
Carnegie Mellon University
Pittsburgh, PA 15213
412-268-7803
@johnkitchin
http://kitchingroup.cheme.cmu.edu

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

* Re: Where to put dates on meeting headlines
  2017-02-24 19:50 Where to put dates on meeting headlines John Kitchin
@ 2017-02-25  4:21 ` Charles C. Berry
  2017-02-25 16:45   ` John Kitchin
  0 siblings, 1 reply; 5+ messages in thread
From: Charles C. Berry @ 2017-02-25  4:21 UTC (permalink / raw)
  To: John Kitchin; +Cc: emacs-orgmode Mailinglist

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

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

* Re: Where to put dates on meeting headlines
  2017-02-25  4:21 ` Charles C. Berry
@ 2017-02-25 16:45   ` John Kitchin
  2017-02-26  6:05     ` Russell Adams
  0 siblings, 1 reply; 5+ messages in thread
From: John Kitchin @ 2017-02-25 16:45 UTC (permalink / raw)
  To: Charles C. Berry; +Cc: emacs-orgmode Mailinglist

Searching for timestamps is not the issue, it is finding the right time
stamp associated with a headline.  For example, suppose in the meeting
notes I use time stamps to note past or future events, then a headline
could have many time stamps, and only one is related to the date of the
meeting.   Also, if you have logging on, when you mark the
meeting done, it will insert an inactive timestamp of when you closed it.

What I want to search for is a headline with a meeting tag, and a
timestamp on a particular day (even better if a range is possible since
I have conferences that are spread over a week for example). I might use
this, for example, at the end of the year to find all the scientific
conferences I had attended to put in an annual report, or all the
committee meetings, etc.

I guess the canonical place is probably the deadline, since after that
time the meeting should be "done". Then I can generate an agenda with a
query like this for meetings in the last two months:

meeting+DEADLINE>="<-2m>"

Since I had to search for how to do this (probably again ;), here is a
PSA on where to find how to do these searches:

http://orgmode.org/worg/org-tutorials/advanced-searching.html







Charles C. Berry writes:

> 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


--
Professor John Kitchin
Doherty Hall A207F
Department of Chemical Engineering
Carnegie Mellon University
Pittsburgh, PA 15213
412-268-7803
@johnkitchin
http://kitchingroup.cheme.cmu.edu

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

* Re: Where to put dates on meeting headlines
  2017-02-25 16:45   ` John Kitchin
@ 2017-02-26  6:05     ` Russell Adams
  2017-02-26 18:31       ` John Kitchin
  0 siblings, 1 reply; 5+ messages in thread
From: Russell Adams @ 2017-02-26  6:05 UTC (permalink / raw)
  To: emacs-orgmode

I place an active timestamp under my headline for the date/time of the
meeting, and then I always timestamp my notes using inactive
timestamps. They are separate in the agenda but can be enabled.


On Sat, Feb 25, 2017 at 11:45:51AM -0500, John Kitchin wrote:
> Searching for timestamps is not the issue, it is finding the right time
> stamp associated with a headline.  For example, suppose in the meeting
> notes I use time stamps to note past or future events, then a headline
> could have many time stamps, and only one is related to the date of the
> meeting.   Also, if you have logging on, when you mark the
> meeting done, it will insert an inactive timestamp of when you closed it.
>
> What I want to search for is a headline with a meeting tag, and a
> timestamp on a particular day (even better if a range is possible since
> I have conferences that are spread over a week for example). I might use
> this, for example, at the end of the year to find all the scientific
> conferences I had attended to put in an annual report, or all the
> committee meetings, etc.
>
> I guess the canonical place is probably the deadline, since after that
> time the meeting should be "done". Then I can generate an agenda with a
> query like this for meetings in the last two months:
>
> meeting+DEADLINE>="<-2m>"
>
> Since I had to search for how to do this (probably again ;), here is a
> PSA on where to find how to do these searches:
>
> http://orgmode.org/worg/org-tutorials/advanced-searching.html
>
>
>
>
>
>
>
> Charles C. Berry writes:
>
> > 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
>
>
> --
> Professor John Kitchin
> Doherty Hall A207F
> Department of Chemical Engineering
> Carnegie Mellon University
> Pittsburgh, PA 15213
> 412-268-7803
> @johnkitchin
> http://kitchingroup.cheme.cmu.edu
>


------------------------------------------------------------------
Russell Adams                            RLAdams@AdamsInfoServ.com

PGP Key ID:     0x1160DCB3           http://www.adamsinfoserv.com/

Fingerprint:    1723 D8CA 4280 1EC9 557F  66E8 1154 E018 1160 DCB3

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

* Re: Where to put dates on meeting headlines
  2017-02-26  6:05     ` Russell Adams
@ 2017-02-26 18:31       ` John Kitchin
  0 siblings, 0 replies; 5+ messages in thread
From: John Kitchin @ 2017-02-26 18:31 UTC (permalink / raw)
  To: Russell Adams; +Cc: emacs-orgmode

Thanks.

It looks like the following options are useful.

1. Use a deadline

2. Use an active timestamp in the heading. The first one found seems to
be the one assigned to the heading as far as the agenda goes.

So, both of these will show up in an agenda:

* test meeting <2017-02-26 Sun>

* test meeting #2
  DEADLINE: <2017-02-26 Sun>


This command: (org-tags-view nil "DEADLINE=\"<2017-02-26>\"") will find
the second headline.

This command: (org-tags-view nil "TIMESTAMP=\"<2017-02-26>\"") will find
both headlines.


Incidentally, suppose I have this:

* test meeting #3
  DEADLINE: <2017-02-25 Sat>--<2017-02-27 Mon>

This is not found by either of the commands above. It does show up in
the agenda though, and if I jump to 02-26, it shows there. What is the
command/query to get that headline in an agenda view from a date-type of
query?



Russell Adams writes:

> I place an active timestamp under my headline for the date/time of the
> meeting, and then I always timestamp my notes using inactive
> timestamps. They are separate in the agenda but can be enabled.
>
>
> On Sat, Feb 25, 2017 at 11:45:51AM -0500, John Kitchin wrote:
>> Searching for timestamps is not the issue, it is finding the right time
>> stamp associated with a headline.  For example, suppose in the meeting
>> notes I use time stamps to note past or future events, then a headline
>> could have many time stamps, and only one is related to the date of the
>> meeting.   Also, if you have logging on, when you mark the
>> meeting done, it will insert an inactive timestamp of when you closed it.
>>
>> What I want to search for is a headline with a meeting tag, and a
>> timestamp on a particular day (even better if a range is possible since
>> I have conferences that are spread over a week for example). I might use
>> this, for example, at the end of the year to find all the scientific
>> conferences I had attended to put in an annual report, or all the
>> committee meetings, etc.
>>
>> I guess the canonical place is probably the deadline, since after that
>> time the meeting should be "done". Then I can generate an agenda with a
>> query like this for meetings in the last two months:
>>
>> meeting+DEADLINE>="<-2m>"
>>
>> Since I had to search for how to do this (probably again ;), here is a
>> PSA on where to find how to do these searches:
>>
>> http://orgmode.org/worg/org-tutorials/advanced-searching.html
>>
>>
>>
>>
>>
>>
>>
>> Charles C. Berry writes:
>>
>> > 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
>>
>>
>> --
>> Professor John Kitchin
>> Doherty Hall A207F
>> Department of Chemical Engineering
>> Carnegie Mellon University
>> Pittsburgh, PA 15213
>> 412-268-7803
>> @johnkitchin
>> http://kitchingroup.cheme.cmu.edu
>>
>
>
> ------------------------------------------------------------------
> Russell Adams                            RLAdams@AdamsInfoServ.com
>
> PGP Key ID:     0x1160DCB3           http://www.adamsinfoserv.com/
>
> Fingerprint:    1723 D8CA 4280 1EC9 557F  66E8 1154 E018 1160 DCB3


--
Professor John Kitchin
Doherty Hall A207F
Department of Chemical Engineering
Carnegie Mellon University
Pittsburgh, PA 15213
412-268-7803
@johnkitchin
http://kitchingroup.cheme.cmu.edu

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

end of thread, other threads:[~2017-02-26 18:31 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-02-24 19:50 Where to put dates on meeting headlines John Kitchin
2017-02-25  4:21 ` Charles C. Berry
2017-02-25 16:45   ` John Kitchin
2017-02-26  6:05     ` Russell Adams
2017-02-26 18:31       ` John Kitchin

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