From mboxrd@z Thu Jan 1 00:00:00 1970 From: Austin Frank Subject: org-agenda-busy-at Date: Wed, 17 Sep 2008 15:05:22 -0400 Message-ID: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============2127743470==" Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Kg2LY-0000zB-3A for emacs-orgmode@gnu.org; Wed, 17 Sep 2008 15:05:52 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Kg2LX-0000yt-Fv for emacs-orgmode@gnu.org; Wed, 17 Sep 2008 15:05:51 -0400 Received: from [199.232.76.173] (port=33670 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Kg2LX-0000yp-CM for emacs-orgmode@gnu.org; Wed, 17 Sep 2008 15:05:51 -0400 Received: from main.gmane.org ([80.91.229.2]:54736 helo=ciao.gmane.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1Kg2LX-0000wg-23 for emacs-orgmode@gnu.org; Wed, 17 Sep 2008 15:05:51 -0400 Received: from list by ciao.gmane.org with local (Exim 4.43) id 1Kg2LR-0004B3-3i for emacs-orgmode@gnu.org; Wed, 17 Sep 2008 19:05:45 +0000 Received: from colossus.cvs.rochester.edu ([128.151.80.181]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 17 Sep 2008 19:05:45 +0000 Received: from austin.frank by colossus.cvs.rochester.edu with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 17 Sep 2008 19:05:45 +0000 List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org --===============2127743470== Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha1; protocol="application/pgp-signature" --=-=-= Content-Transfer-Encoding: quoted-printable 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.=20=20 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 =2D-=20 Austin Frank http://aufrank.net GPG Public Key (D7398C2F): http://aufrank.net/personal.asc --=-=-= Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (Darwin) iEYEARECAAYFAkjRVPIACgkQlHMl2/XbR4GNcACcDdOF0wWwRijksOxM//ZAJcl3 FJEAni4nfQdsI5TisU1BqkfWPFDoL/em =Upx0 -----END PGP SIGNATURE----- --=-=-=-- --===============2127743470== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ 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 --===============2127743470==--