emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Ivan Kanis <ivan.kanis@googlemail.com>
To: Bastien <bzg@gnu.org>
Cc: org mode <emacs-orgmode@gnu.org>
Subject: Re: implement appt warntime
Date: Sun, 19 Aug 2012 21:09:02 +0200	[thread overview]
Message-ID: <87628eem29.fsf@kanis.fr> (raw)
In-Reply-To: <87boiuog86.fsf@gnu.org> (Bastien's message of "Wed, 01 Aug 2012 16:10:33 +0200")

Hi Bastien,

Bastien <bzg@gnu.org> a écrit

> Hi Ivan,
>
> Ivan Kanis <ivan.kanis@googlemail.com> 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,
-- 
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".

  reply	other threads:[~2012-08-19 19:09 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-07-16 10:46 implement appt warntime Ivan Kanis
2012-07-17 20:42 ` Moritz Ulrich
2012-08-01 14:10 ` Bastien
2012-08-19 19:09   ` Ivan Kanis [this message]
2012-08-19 19:50     ` Bastien
2012-08-21 18:36       ` Ivan Kanis

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87628eem29.fsf@kanis.fr \
    --to=ivan.kanis@googlemail.com \
    --cc=bzg@gnu.org \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).