From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Daniel Martins" Subject: Re: org-mode and remind integration Date: Sat, 10 Jan 2009 11:21:02 -0200 Message-ID: <6ac505ad0901100521n7562cc33y942b3bf131621fd4@mail.gmail.com> References: <6ac505ad0812310353yedc8ac6x4e59dc377a6d009b@mail.gmail.com> <368A47AA-30D5-40B0-9ECD-57B0361B89AA@uva.nl> <6ac505ad0901090057x40d163edr1366a45fb08ed405@mail.gmail.com> <87d4ew5yse.fsf@rat.lan> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1663732541==" Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LLdly-0002uK-Gd for emacs-orgmode@gnu.org; Sat, 10 Jan 2009 08:21:06 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LLdlw-0002u8-T9 for Emacs-orgmode@gnu.org; Sat, 10 Jan 2009 08:21:05 -0500 Received: from [199.232.76.173] (port=51190 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LLdlw-0002u5-N9 for Emacs-orgmode@gnu.org; Sat, 10 Jan 2009 08:21:04 -0500 Received: from rv-out-0708.google.com ([209.85.198.242]:18186) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1LLdlw-0000BJ-6h for Emacs-orgmode@gnu.org; Sat, 10 Jan 2009 08:21:04 -0500 Received: by rv-out-0708.google.com with SMTP id k29so11826666rvb.6 for ; Sat, 10 Jan 2009 05:21:02 -0800 (PST) In-Reply-To: <87d4ew5yse.fsf@rat.lan> 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: Olaf Dietsche Cc: bastien.guerry@ens.fr, Emacs-orgmode@gnu.org --===============1663732541== Content-Type: multipart/alternative; boundary="----=_Part_209852_25702718.1231593662313" ------=_Part_209852_25702718.1231593662313 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Olaf, Thank you very much for your diff. I worked fine and I learned a bit of lisp. Me, as an ex-Fortran77 programmer, am suffering a lot with emacs lisp. After o couple of hours trying to catch all timestamps outside SCHEDULE: and DEADLINE: lines I gave up and ask for help Originally we had (org2rem-scheduled-reminders (org2rem-list-reminders org-scheduled-string)) (org2rem-deadline-reminders (org2rem-list-reminders org-deadline-string)) I tried to catch all timestamps outside SCHEDULE: and DEADLINE: using something like (org2rem-pure-timestamps-reminders (org2rem-list-reminders (concat "\\(" org-deadline-string "\\|" org-scheduled-string "\\)\\{0\\}"))) In te beginning I create (defvar org2rem-pure-timestamps-remind-file "~/.reminders.org.pure-timestamps") and at the end I add an extra line to export these reminds in a different file (org2rem-write-file org2rem-scheduled-remind-file org2rem-scheduled-reminders) (org2rem-write-file org2rem-deadline-remind-file org2rem-deadline-reminders) (org2rem-write-file org2rem-pure-timestamps-remind-file org2rem-pure-timestamps-reminders) I tried first to create a local variable ;;; (org2rem-pure-timestamps-string ;;; (concat "\\(" org-deadline-string "\\|" ;;; org-scheduled-string "\\)\\{0\\}")) ;;; (org2rem-pure-timestamps-reminders ;;; (org2rem-list-reminders org2rem-pure-timestamps-string) ;;; ) but it did not work either. I am probably having Any help for this stupid doubt? Thank you Daniel 2009/1/9 Olaf Dietsche > > > Yes, I am. > [...] > > I am sending the last version of org2rem which integrates timed reminds > from > > DEADLINE: and SCHEDULE: lines > [...] > > > > 2009/1/9 Carsten Dominik > > > >> Is any action happening on this? Is someone trying to fix org2rem? > >> - Carsten > > I have no idea of remind. > > This is an untested patch, but you get the idea. Avoid global > variables, if you can. If you use global variables, you have > prerequisites and side effects, which complicate following the > code. This is not lisp specific. > > Regards, Olaf > > ------=_Part_209852_25702718.1231593662313 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Olaf,

Thank you very much for your diff. I worked fine  and I learned a bit of lisp.

Me, as an ex-Fortran77 programmer, am suffering a lot with emacs lisp.

After o couple of hours trying to catch all timestamps outside SCHEDULE: and DEADLINE: lines I gave up and ask for help




Originally we had

    (org2rem-scheduled-reminders (org2rem-list-reminders org-scheduled-string))
    (org2rem-deadline-reminders (org2rem-list-reminders org-deadline-string))


I tried to catch all timestamps outside SCHEDULE: and DEADLINE:
using something like

    (org2rem-pure-timestamps-reminders
     (org2rem-list-reminders
          (concat  "\\(" org-deadline-string "\\|"
               org-scheduled-string  "\\)\\{0\\}")))


In te beginning I create

(defvar org2rem-pure-timestamps-remind-file
  "~/.reminders.org.pure-timestamps")

and at the end I add an extra line to export these reminds in a different file
      (org2rem-write-file org2rem-scheduled-remind-file
              org2rem-scheduled-reminders)
      (org2rem-write-file org2rem-deadline-remind-file
              org2rem-deadline-reminders)
      (org2rem-write-file org2rem-pure-timestamps-remind-file
              org2rem-pure-timestamps-reminders)

I tried first to create a local variable


;;;     (org2rem-pure-timestamps-string
;;;           (concat  "\\(" org-deadline-string "\\|"
;;;                org-scheduled-string  "\\)\\{0\\}"))

;;;     (org2rem-pure-timestamps-reminders
;;;      (org2rem-list-reminders org2rem-pure-timestamps-string)
;;;      )

but it did not work either.




I am probably having

Any help for this stupid doubt?


Thank you

Daniel


2009/1/9 Olaf Dietsche <olaf+list.orgmode@olafdietsche.de>
> Yes, I am.
[...]
> I am sending the last version of org2rem which integrates timed reminds from
> DEADLINE: and SCHEDULE: lines
[...]
>
> 2009/1/9 Carsten Dominik <dominik@science.uva.nl>
>
>> Is any action happening on this?  Is someone trying to fix org2rem?
>> - Carsten

I have no idea of remind.

This is an untested patch, but you get the idea. Avoid global
variables, if you can. If you use global variables, you have
prerequisites and side effects, which complicate following the
code. This is not lisp specific.

Regards, Olaf


------=_Part_209852_25702718.1231593662313-- --===============1663732541== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ 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 --===============1663732541==--