Re: [Orgmode] Re: org-mode and remind integration
Hi Daniel, Actually I have used your proposed _regular expression_ only, and little rearrangement. Since my child was born last month I did not have much time. Therefore, I did not test org2rem. Many congratulations to you on your sweet little bundle of joy!! I did not tested the last suggestion of Carsten but you seem to overcome the problem I encountered. I also wanted to remove these three (defvar org2rem-scheduled-reminders nil) (defvar org2rem-deadline-reminders nil) (defvar org2rem-pure-timestamps-reminders nil) global variables, with next patch by this week end. And finally Thanks you very much Daniel for `org2rem.el' I am regular user of `remind'. On Thu, Feb 12, 2009 at 5:12 AM, Daniel Martins daniel...@gmail.com wrote: Thanks Sharap, Since my child was born last month I did not have much time. Therefore, I did not test org2rem. I did not tested the last suggestion of Carsten but you seem to overcome the problem I encountered. I am also suggest to include this patch to expand Bastien original org2rem.el Whenever I have time (to sleep!) I will test your scripts. Daniel 2009/2/11 Carsten Dominik domi...@science.uva.nl Hi Bastien, you wrote the original org2rem.el Do you agree we should apply this patch? I have not tested it as I do not use remind. - Carsten On Feb 11, 2009, at 4:33 PM, Sharad Pratap wrote: Hi Carsten, Please do apply it, (if you find it is fine.) I have joined this mailing list today only, so not able to include all peoples in thread. On Wed, Feb 11, 2009 at 8:51 PM, Carsten Dominik domi...@science.uva.nlwrote: I have not followed this discussion - should I apply this patch to org2rem.el in the distribution? - Carsten On Feb 11, 2009, at 3:23 PM, Sharad Pratap wrote: Hi Daniel, Your regular expression working fine!!, I have made few change with same regular expression, and it has worked for me. I wish `org2rem' could be as robust as `org-export-icalendar'. Like me you also want orgmode outside editor, So I have added to executable script `org2remind' and `show-agenda'. ___ 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
[Orgmode] Re: org-mode and remind integration
Hi Daniel, Your regular expression working fine!!, I have made few change with same regular expression, and it has worked for me. I wish `org2rem' could be as robust as `org-export-icalendar'. Like me you also want orgmode outside editor, So I have added to executable script `org2remind' and `show-agenda'. -- Regard (` _) h a r a d --- org2rem.el.old 2009-01-09 09:00:48.0 + +++ org2rem.el.new 2009-02-11 13:59:16.12000 + @@ -34,13 +34,21 @@ (eval-when-compile (require 'cl)) +(defvar org2rem-pure-timestamps-string ;we need it. + (concat \\( org-deadline-string \\| + org-scheduled-string \\)\\{0\\})) + (defvar org2rem-scheduled-reminders nil) (defvar org2rem-deadline-reminders nil) +(defvar org2rem-pure-timestamps-reminders nil) + (defvar pure-time nil) (defvar org2rem-scheduled-remind-file ~/.reminders.org.scheduled) (defvar org2rem-deadline-remind-file ~/.reminders.org.deadline) +(defvar org2rem-pure-timestamps-remind-file + ~/.reminders.org.pure-timestamps) (defun org2rem-list-reminders (regexp) Make a list of appointments. @@ -95,9 +103,15 @@ (setq rem-task (concat REM rem-time MSG task %) ) - (if (equal regexp org-scheduled-string) - (push rem-task org2rem-scheduled-reminders) - (push rem-task org2rem-deadline-reminders))) + + (cond + ((equal regexp org2rem-pure-timestamps-string) +(push rem-task org2rem-pure-timestamps-reminders)) + ((equal regexp org-scheduled-string) +(push rem-task org2rem-scheduled-reminders)) + ((equal regexp org-deadline-string) +(push rem-task org2rem-deadline-reminders)) + )) (defun org2rem-write-file (file reminders) Write reminders list to files. @@ -116,13 +130,19 @@ (interactive) (setq org2rem-scheduled-reminders nil) (setq org2rem-deadline-reminders nil) + (setq org2rem-pure-timestamps-string nil) (save-window-excursion (org2rem-list-reminders org-scheduled-string) (org2rem-list-reminders org-deadline-string) -(org2rem-write-file ~/.reminders.org.scheduled +(org2rem-list-reminders org2rem-pure-timestamps-string) + +(org2rem-write-file org2rem-scheduled-remind-file ;~/.reminders.org.scheduled org2rem-scheduled-reminders) -(org2rem-write-file ~/.reminders.org.deadline - org2rem-deadline-reminders))) +(org2rem-write-file org2rem-deadline-remind-file ;~/.reminders.org.deadline + org2rem-deadline-reminders) +(org2rem-write-file org2rem-pure-timestamps-remind-file ;~/.reminders.org.pure-timestamps + org2rem-pure-timestamps-reminders) +)) org2remind Description: Binary data show-agenda Description: Binary data ___ 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
Re: [Orgmode] Re: org-mode and remind integration
Hi Carsten, Please do apply it, (if you find it is fine.) I have joined this mailing list today only, so not able to include all peoples in thread. On Wed, Feb 11, 2009 at 8:51 PM, Carsten Dominik domi...@science.uva.nlwrote: I have not followed this discussion - should I apply this patch to org2rem.el in the distribution? - Carsten On Feb 11, 2009, at 3:23 PM, Sharad Pratap wrote: Hi Daniel, Your regular expression working fine!!, I have made few change with same regular expression, and it has worked for me. I wish `org2rem' could be as robust as `org-export-icalendar'. Like me you also want orgmode outside editor, So I have added to executable script `org2remind' and `show-agenda'. -- Regard (` _) h a r a d ___ 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