From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ivan Kanis Subject: Re: implement appt warntime Date: Sun, 19 Aug 2012 21:09:02 +0200 Message-ID: <87628eem29.fsf@kanis.fr> References: <87boiuog86.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([208.118.235.92]:47690) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T3As2-00012a-Pw for emacs-orgmode@gnu.org; Sun, 19 Aug 2012 15:09:11 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1T3As1-00089U-KQ for emacs-orgmode@gnu.org; Sun, 19 Aug 2012 15:09:10 -0400 In-Reply-To: <87boiuog86.fsf@gnu.org> (Bastien's message of "Wed, 01 Aug 2012 16:10:33 +0200") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Bastien Cc: org mode Hi Bastien, Bastien a =C3=A9crit > Hi Ivan, > > Ivan Kanis writes: > >> I could use properties instead. For example: >> >> ** an appointment with a reminder 5 minutes before 10:00 >> SCHEDULED: <2012-07-16 Mon 10:00> >> :PROPERTIES: >> :WARNTIME: 5 >> :END: > > I've implemented something along this idea, using APPT_WARNTIME instead > to make sure this is only useful when adding the entry to the list of > apptointment with `appt-add'. > > Please test and report any problem. I tried is this evening and unfortunately it's not working. I think the problem is in the following line in the function org-agenda-to-appt: (org-entry-get (point) "APPT_WARNTIME")) I don't think (point) is in the right place after the parsing is done in org-agenda-get-day-entries. I guess that from the entries we can find the proper point in the correct buffer. Take care, --=20 Ivan Kanis http://ivan.kanis.fr Debugging is twice as hard as writing the code in the first place. Therefore, if you write the code as cleverly as possible, you are, by definition, not smart enough to debug it. -- Brian Kernighan I am listening to "The XX - Stars".