all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* appointments
@ 2008-04-15 17:54 Richard G Riley
  2008-04-16  5:55 ` appointments Manish
  2008-04-16  8:53 ` appointments Carsten Dominik
  0 siblings, 2 replies; 3+ messages in thread
From: Richard G Riley @ 2008-04-15 17:54 UTC (permalink / raw)
  To: org-mode


Hi,

I think this is probably a bug for default. Or is this because
"cancelled" isnt really a "finished" todo state? Using 6.0pre1 cancelled
appts are still being prompted. Here is the relative section from my
diary file (org file) and the code I use :

org file:

,----
| * Diary Entries
| ** CANCELED <2008-04-15 Tue 19:50> do this
|    CLOSED: [2008-04-15 Tue 19:46]
|    - State "CANCELED"   [2008-04-15 Tue 19:47]
|    - State "DONE"       [2008-04-15 Tue 19:46]
|    - State "WAIT"       [2008-04-15 Tue 19:46]
`----

code:

,----
| ;; Get appointments for today
| (defun my-org-agenda-to-appt ()
|   (interactive)
|   (setq appt-time-msg-list nil)
|   (let ((org-deadline-warning-days 0)) ;; will be automatic in org 5.23
|     (org-agenda-to-appt)))
| 
| ;; Run once, activate and schedule refresh
| (appt-activate t)
| 
| (my-org-agenda-to-appt)
| (appt-activate t)
| (run-at-time "24:01" nil 'my-org-agenda-to-appt)
| 
| 					; 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 'my-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)
| 			 ))
`----

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

* Re: appointments
  2008-04-15 17:54 appointments Richard G Riley
@ 2008-04-16  5:55 ` Manish
  2008-04-16  8:53 ` appointments Carsten Dominik
  1 sibling, 0 replies; 3+ messages in thread
From: Manish @ 2008-04-16  5:55 UTC (permalink / raw)
  To: Richard G Riley; +Cc: org-mode

On Tue, Apr 15, 2008 at 11:24 PM, Richard G Riley wrote:
>
>  Hi,
>
>  I think this is probably a bug for default. Or is this because
>  "cancelled" isnt really a "finished" todo state?

How have you set up org-todo-keywords?

-- Manish

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

* Re: appointments
  2008-04-15 17:54 appointments Richard G Riley
  2008-04-16  5:55 ` appointments Manish
@ 2008-04-16  8:53 ` Carsten Dominik
  1 sibling, 0 replies; 3+ messages in thread
From: Carsten Dominik @ 2008-04-16  8:53 UTC (permalink / raw)
  To: Richard G Riley; +Cc: org-mode

maybe you need to set the variable

org-agenda-skip-timestamp-if-done

Maybe we need to set it in the appt function by default?  I guess that  
even if you
want DONE items show up in the agenda, to is relatively safe to assume
that you don't want to have reminders for them?  Bastien?

- Carsten

On Apr 15, 2008, at 7:54 PM, Richard G Riley wrote:

>
> Hi,
>
> I think this is probably a bug for default. Or is this because
> "cancelled" isnt really a "finished" todo state? Using 6.0pre1  
> cancelled
> appts are still being prompted. Here is the relative section from my
> diary file (org file) and the code I use :
>
> org file:
>
> ,----
> | * Diary Entries
> | ** CANCELED <2008-04-15 Tue 19:50> do this
> |    CLOSED: [2008-04-15 Tue 19:46]
> |    - State "CANCELED"   [2008-04-15 Tue 19:47]
> |    - State "DONE"       [2008-04-15 Tue 19:46]
> |    - State "WAIT"       [2008-04-15 Tue 19:46]
> `----
>
> code:
>
> ,----
> | ;; Get appointments for today
> | (defun my-org-agenda-to-appt ()
> |   (interactive)
> |   (setq appt-time-msg-list nil)
> |   (let ((org-deadline-warning-days 0)) ;; will be automatic in org  
> 5.23
> |     (org-agenda-to-appt)))
> |
> | ;; Run once, activate and schedule refresh
> | (appt-activate t)
> |
> | (my-org-agenda-to-appt)
> | (appt-activate t)
> | (run-at-time "24:01" nil 'my-org-agenda-to-appt)
> |
> | 					; 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 'my-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)
> | 			 ))
> `----
>
>
>
>
>
> _______________________________________________
> 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] 3+ messages in thread

end of thread, other threads:[~2008-04-16  8:53 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-04-15 17:54 appointments Richard G Riley
2008-04-16  5:55 ` appointments Manish
2008-04-16  8:53 ` appointments Carsten Dominik

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.