From mboxrd@z Thu Jan 1 00:00:00 1970 From: Carsten Dominik Subject: Re: problem with appointments not cancelling Date: Fri, 5 Sep 2008 08:26:48 +0200 Message-ID: References: <2k63po0ymw.fsf@googlemail.com> Mime-Version: 1.0 (Apple Message framework v926) Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KbVXv-0006KZ-Vy for emacs-orgmode@gnu.org; Fri, 05 Sep 2008 03:15:56 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KbVXt-0006IY-EC for emacs-orgmode@gnu.org; Fri, 05 Sep 2008 03:15:54 -0400 Received: from [199.232.76.173] (port=33791 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KbVXt-0006IG-AJ for emacs-orgmode@gnu.org; Fri, 05 Sep 2008 03:15:53 -0400 Received: from mx20.gnu.org ([199.232.41.8]:39709) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1KbVXt-0001RU-2a for emacs-orgmode@gnu.org; Fri, 05 Sep 2008 03:15:53 -0400 Received: from ug-out-1314.google.com ([66.249.92.172]) by mx20.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1KbVXs-0004Au-0N for emacs-orgmode@gnu.org; Fri, 05 Sep 2008 03:15:52 -0400 Received: by ug-out-1314.google.com with SMTP id a2so24872ugf.17 for ; Fri, 05 Sep 2008 00:15:51 -0700 (PDT) In-Reply-To: <2k63po0ymw.fsf@googlemail.com> 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: Richard G Riley Cc: org-mode Hi Richard, what is your value of org-agenda-skip-scheduled-if-done? I believe that this variable will be respected with your appt setup. If you don't want to set this variable for normal agenda display, try (add-hook 'org-finalize-agenda-hook (lambda () (let ((org-agenda-skip-scheduled-if-done t)) (org-agenda-to-appt)))) HTH - Carsten On Aug 26, 2008, at 2:05 PM, Richard G Riley wrote: > > 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) > > > > > > _______________________________________________ > 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