emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* org-agenda-busy-at
@ 2008-09-17 19:05 Austin Frank
  2008-09-18  8:56 ` org-agenda-busy-at Carsten Dominik
  0 siblings, 1 reply; 2+ messages in thread
From: Austin Frank @ 2008-09-17 19:05 UTC (permalink / raw)
  To: emacs-orgmode


[-- Attachment #1.1: Type: text/plain, Size: 1876 bytes --]

Carsten and other org-folk--

Any chance that it would be possible to query the agenda to see whether
anything is scheduled at a particular time?  The application I have in
mind is scheduling new events with remember templates.  If there's
already something in the agenda for the timestamp I enter in a new
remember entry, I would love to be given the message "There is already
an event scheduled at that time.  Really use this timestamp?"

I could see a further extension of this, such that it allowed different
behavior for different kinds of time stamps.  Something like

(setq org-agenda-busy-warn
  '(active . t)
  '(scheduled . "-1h +1h")
  '(deadline . "+3d"))

would warn you if you tried to add a new timestamp that occurred within
the range of an active timestamp; and would warn you if the new
timestamp were within plus or minus one hour of a timestamp with the
SCHEDULED property; and would also warn you if you tried to add a new
timestamp within three days of a deadline.

"You tried to create a new event with timestamp <2008-10-31
20:00-21:30>.   There is already an entry with timestamp <2008-10-31
20:30-12:00>.  You have an event SCHEDULED at <2008-10-31 19:30>.  You
have a DEADLINE on <2008-11-2>.  Proceed/Edit timestamp/Cancel?"

We could then use a function, org-agenda-busy-at, to check timestamps
included in new remember notes before they get filed.  

I don't know whether this kind of information is easily retrievable from
the agenda, or whether it could be stored as the agenda is built.  Is
there someplace in the code that I should look to check into the
feasibility of this idea?  Is it just impossible?  Is it one of those
things where Carsten says a mystical incantation and it's done?

Thanks,
/au

-- 
Austin Frank
http://aufrank.net
GPG Public Key (D7398C2F): http://aufrank.net/personal.asc

[-- Attachment #1.2: Type: application/pgp-signature, Size: 193 bytes --]

[-- Attachment #2: Type: text/plain, Size: 204 bytes --]

_______________________________________________
Emacs-orgmode mailing list
Remember: use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode

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

* Re: org-agenda-busy-at
  2008-09-17 19:05 org-agenda-busy-at Austin Frank
@ 2008-09-18  8:56 ` Carsten Dominik
  0 siblings, 0 replies; 2+ messages in thread
From: Carsten Dominik @ 2008-09-18  8:56 UTC (permalink / raw)
  To: Austin Frank; +Cc: emacs-orgmode

Hi Austin,

I am afraid this is too much overhead when creating dates.  Org has
some ways to eld scheduling something while you are at the agenda,
where you see the empty spots.

Check out the description of C-c c-x C-k in

http://orgmode.org/manual/Inserting-deadline_002fschedule.html#Inserting-deadline_002fschedule

HTH

- Carsten

On Sep 17, 2008, at 9:05 PM, Austin Frank wrote:

> Carsten and other org-folk--
>
> Any chance that it would be possible to query the agenda to see  
> whether
> anything is scheduled at a particular time?  The application I have in
> mind is scheduling new events with remember templates.  If there's
> already something in the agenda for the timestamp I enter in a new
> remember entry, I would love to be given the message "There is already
> an event scheduled at that time.  Really use this timestamp?"
>
> I could see a further extension of this, such that it allowed  
> different
> behavior for different kinds of time stamps.  Something like
>
> (setq org-agenda-busy-warn
>  '(active . t)
>  '(scheduled . "-1h +1h")
>  '(deadline . "+3d"))
>
> would warn you if you tried to add a new timestamp that occurred  
> within
> the range of an active timestamp; and would warn you if the new
> timestamp were within plus or minus one hour of a timestamp with the
> SCHEDULED property; and would also warn you if you tried to add a new
> timestamp within three days of a deadline.
>
> "You tried to create a new event with timestamp <2008-10-31
> 20:00-21:30>.   There is already an entry with timestamp <2008-10-31
> 20:30-12:00>.  You have an event SCHEDULED at <2008-10-31 19:30>.  You
> have a DEADLINE on <2008-11-2>.  Proceed/Edit timestamp/Cancel?"
>
> We could then use a function, org-agenda-busy-at, to check timestamps
> included in new remember notes before they get filed.
>
> I don't know whether this kind of information is easily retrievable  
> from
> the agenda, or whether it could be stored as the agenda is built.  Is
> there someplace in the code that I should look to check into the
> feasibility of this idea?  Is it just impossible?  Is it one of those
> things where Carsten says a mystical incantation and it's done?
>
> Thanks,
> /au
>
> -- 
> Austin Frank
> http://aufrank.net
> GPG Public Key (D7398C2F): http://aufrank.net/personal.asc
> _______________________________________________
> Emacs-orgmode mailing list
> Remember: use `Reply All' to send replies to the list.
> Emacs-orgmode@gnu.org
> http://lists.gnu.org/mailman/listinfo/emacs-orgmode

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

end of thread, other threads:[~2008-09-18  8:56 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-09-17 19:05 org-agenda-busy-at Austin Frank
2008-09-18  8:56 ` org-agenda-busy-at 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).