From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bastien Subject: Re: org-mode and appointments Date: Tue, 26 Feb 2008 16:19:58 +0000 Message-ID: <877igrvgep.fsf@bzg.ath.cx> References: <87ejb063bz.fsf@gollum.intra.norang.ca> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JU2XP-0001ZC-0a for emacs-orgmode@gnu.org; Tue, 26 Feb 2008 11:20:15 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JU2XM-0001Xw-4h for emacs-orgmode@gnu.org; Tue, 26 Feb 2008 11:20:14 -0500 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JU2XL-0001Xm-OM for emacs-orgmode@gnu.org; Tue, 26 Feb 2008 11:20:11 -0500 Received: from ug-out-1314.google.com ([66.249.92.174]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1JU2XL-0007tK-3v for emacs-orgmode@gnu.org; Tue, 26 Feb 2008 11:20:11 -0500 Received: by ug-out-1314.google.com with SMTP id a2so1400205ugf.48 for ; Tue, 26 Feb 2008 08:20:07 -0800 (PST) In-Reply-To: <87ejb063bz.fsf@gollum.intra.norang.ca> (Bernt Hansen's message of "Mon, 25 Feb 2008 18:09:20 -0500") 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: org-mode list Cc: Bernt Hansen (Resending to the list) Hi Bernt, Bernt Hansen writes: > I'm using your function for creating appointments: > > ,----[ my-org-agenda-to-appt in .emacs ] This function is now part of org-mode and is named `org-agenda-to-appt'. It is safer to use the version shipped with Org than the one on the web. > I have a function key binding to rerun this function when I add new > appointments for today. > > ,----[ Activate the appointments in .emacs ] > | (global-set-key (kbd " a") 'my-org-agenda-to-appt) > | ;; Get appointments for today > | (my-org-agenda-to-appt) > | (appt-activate t) > `---- > > I have the following wishlist items for this function but don't > currently have the lisp skills to fix it. > > - [ ] Clear the appointment list when rerunning the > my-org-agenda-to-appt Yes, I've fixed this. This should also handle the case where people still use diary appointments. > - [ ] Future deadlines are reported for today. I've also fixed this. > - [ ] If I leave Emacs running overnight is there a good way to reset > the appointment list at midnight? Maybe we should consider having `org-agenda-to-appt-activate' doing a similar job than `appt-activate': check for new appts (in agendas) at a specific time and when agenda files are saved. In the meantime, you can do this manually with a cron job or `run-at-time' (See C-h f run-at-time RET) Hope this helps... -- Bastien