emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Richard G Riley <rileyrgdev@googlemail.com>
To: org-mode <emacs-orgmode@gnu.org>
Subject: problem with appointments not cancelling
Date: Tue, 26 Aug 2008 14:05:59 +0200	[thread overview]
Message-ID: <2k63po0ymw.fsf@googlemail.com> (raw)


I have the following in one of my org files but the reminder is still
popping up (or was until the original scheduled time was passed). What
do I need to call to have a cancelled org entry removed from the
reminder mechanism? I use the gtk reminder system and include the code
below. Does the org-agenda-to-appt not remove closed/cancelled entries?
(Note I changed the run-at-time parameters to run now and repeat every
while).

1) org entry

** CANCELED gf 
   SCHEDULED: <2008-08-26 Tue 14:00> CLOSED: [2008-08-26 Tue 13:50]

2) code

;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
; For org appointment reminders

; 5 minute warnings
(setq appt-message-warning-time '15)
(setq appt-display-interval '5)

; Update appt each time agenda opened.
(add-hook 'org-finalize-agenda-hook 'org-agenda-to-appt)

; Setup zenify, we tell appt to use window, and replace default function
(setq appt-display-format 'window)
(setq appt-disp-window-function (function my-appt-disp-window))

(defun my-appt-disp-window (min-to-app new-time msg)                      
  (save-window-excursion (shell-command (concat 
    "/usr/bin/zenity --info --title='Appointment' --text='" 
    msg
    "' &"
    ) nil nil)
))

;; activate and schedule refresh
(appt-activate t)
(run-at-time nil 3600 'org-agenda-to-appt)

             reply	other threads:[~2008-08-26 12:06 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-08-26 12:05 Richard G Riley [this message]
2008-09-05  6:26 ` problem with appointments not cancelling Carsten Dominik

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=2k63po0ymw.fsf@googlemail.com \
    --to=rileyrgdev@googlemail.com \
    --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).