emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* problem with appointments not cancelling
@ 2008-08-26 12:05 Richard G Riley
  2008-09-05  6:26 ` Carsten Dominik
  0 siblings, 1 reply; 2+ messages in thread
From: Richard G Riley @ 2008-08-26 12:05 UTC (permalink / raw)
  To: org-mode


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)

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: problem with appointments not cancelling
  2008-08-26 12:05 problem with appointments not cancelling Richard G Riley
@ 2008-09-05  6:26 ` Carsten Dominik
  0 siblings, 0 replies; 2+ messages in thread
From: Carsten Dominik @ 2008-09-05  6:26 UTC (permalink / raw)
  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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2008-09-05  7:15 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-08-26 12:05 problem with appointments not cancelling Richard G Riley
2008-09-05  6:26 ` Carsten Dominik

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).