Daniel Martins | 31 Dec 12:52

org-mode and remind integration


I changed from planner-el to org-mode after reading Sachas comments and some videos: mostly Carsten and Russell ones.

However I use remind a lot. I like wyrd for remote operation and I have remind - diary - ical and planner-el very integrated.

I think that org-mode would be improved from using remind. The ical -> org-mode could be done using the longer path

ical -> remind -> diary -> org-mode

Via

ical -> remind:  http://wiki.43folders.com/index.php/ICal2Rem

remind -> diary:   Sacha's rem2diary

diary -> org-mode:  (setq org-agenda-include-diary t)       


the reverse path could be directly

org-mode -> ical

.reminders.org.deadline
 .reminders.org.scheduled

However if I want to add all my appts in
.reminders.org.deadline and
 .reminders.org.scheduled
  from inside org-mode

I think that

org2rem

is lacking a few features

1. It does not work with priorities since

*** TODO  [#A] something
    DEADLINE: <2009-01-05>

generates

REM 30 Dec 2008 MSG [#A] something

which yields problems with remind parser

org2rem should eliminate the priorities at all

REM 30 Dec 2008 MSG something

or eliminate the brackets
REM 30 Dec 2008 MSG #A something


2. timed deadlines are not included
*** TODO  something
    DEADLINE: <2008-12-31 Wed 19:00>


generates
REM 31 Dec 2008 MSG something%

and should generate

REM 31 Dec 2008 AT 19:00 MSG something%



I tried to send an emacs bug report but as I do not use Emacs for sending email (yet!).  It seems that the bug was not reported.

I must also admit that gnus always frightened me!

First thanks for all the good work done with org-mode


Daniel


_______________________________________________
Emacs-orgmode mailing list
Remember: use `Reply All' to send replies to the list.
Emacs-orgmode <at> gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Carsten Dominik | 9 Jan 09:17
Favicon

Re: org-mode and remind integration

Is any action happening on this?  Is someone trying to fix org2rem?

- Carsten

On Dec 31, 2008, at 12:53 PM, Daniel Martins wrote:


I changed from planner-el to org-mode after reading Sachas comments and some videos: mostly Carsten and Russell ones.

However I use remind a lot. I like wyrd for remote operation and I have remind - diary - ical and planner-el very integrated.

I think that org-mode would be improved from using remind. The ical -> org-mode could be done using the longer path

ical -> remind -> diary -> org-mode

Via

ical -> remind:  http://wiki.43folders.com/index.php/ICal2Rem

remind -> diary:   Sacha's rem2diary

diary -> org-mode:  (setq org-agenda-include-diary t)       


the reverse path could be directly

org-mode -> ical

.reminders.org.deadline
 .reminders.org.scheduled

However if I want to add all my appts in
.reminders.org.deadline and
 .reminders.org.scheduled
  from inside org-mode

I think that

org2rem

is lacking a few features

1. It does not work with priorities since

*** TODO  [#A] something
    DEADLINE: <2009-01-05>

generates

REM 30 Dec 2008 MSG [#A] something

which yields problems with remind parser

org2rem should eliminate the priorities at all

REM 30 Dec 2008 MSG something

or eliminate the brackets
REM 30 Dec 2008 MSG #A something


2. timed deadlines are not included
*** TODO  something
    DEADLINE: <2008-12-31 Wed 19:00>


generates
REM 31 Dec 2008 MSG something%

and should generate

REM 31 Dec 2008 AT 19:00 MSG something%



I tried to send an emacs bug report but as I do not use Emacs for sending email (yet!).  It seems that the bug was not reported.

I must also admit that gnus always frightened me!

First thanks for all the good work done with org-mode


Daniel



_______________________________________________
Emacs-orgmode mailing list
Remember: use `Reply All' to send replies to the list.
Emacs-orgmode <at> gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Daniel Martins | 9 Jan 09:57

Re: org-mode and remind integration

Yes, I am.

My poor capabilibies on Emacs Lisp are constraining my efforts a bit.


I am sending the last version of org2rem which integrates timed reminds from DEADLINE: and SCHEDULE: lines

I lack a way to add timestamps

Brackets are another problem with remind

Something like

**** Shop   [1/5] [60%]
    SCHEDULED: <2009-01-12 Mon +1w>
- [ ]  2 dvds
- [ ]  1 cd
- [ ]  1 disk
- [X] extra 1
- [X] extra 2

I opt to kill all the bracketed enclosed regions

REM 12 Jan 2009 MSG Shop   %

Since
REM 12 Jan 2009 MSG Shop 1/5 60% %

may generate a problem due to %

Daniel

2009/1/9 Carsten Dominik <dominik <at> science.uva.nl>
Is any action happening on this?  Is someone trying to fix org2rem?

- Carsten

On Dec 31, 2008, at 12:53 PM, Daniel Martins wrote:


I changed from planner-el to org-mode after reading Sachas comments and some videos: mostly Carsten and Russell ones.

However I use remind a lot. I like wyrd for remote operation and I have remind - diary - ical and planner-el very integrated.

I think that org-mode would be improved from using remind. The ical -> org-mode could be done using the longer path

ical -> remind -> diary -> org-mode

Via

ical -> remind:  http://wiki.43folders.com/index.php/ICal2Rem

remind -> diary:   Sacha's rem2diary

diary -> org-mode:  (setq org-agenda-include-diary t)       


the reverse path could be directly

org-mode -> ical

.reminders.org.deadline
 .reminders.org.scheduled

However if I want to add all my appts in
.reminders.org.deadline and
 .reminders.org.scheduled
  from inside org-mode

I think that

org2rem

is lacking a few features

1. It does not work with priorities since

*** TODO  [#A] something
    DEADLINE: <2009-01-05>

generates

REM 30 Dec 2008 MSG [#A] something

which yields problems with remind parser

org2rem should eliminate the priorities at all

REM 30 Dec 2008 MSG something

or eliminate the brackets
REM 30 Dec 2008 MSG #A something


2. timed deadlines are not included
*** TODO  something
    DEADLINE: <2008-12-31 Wed 19:00>


generates
REM 31 Dec 2008 MSG something%

and should generate

REM 31 Dec 2008 AT 19:00 MSG something%



I tried to send an emacs bug report but as I do not use Emacs for sending email (yet!).  It seems that the bug was not reported.

I must also admit that gnus always frightened me!

First thanks for all the good work done with org-mode


Daniel




Attachment (org2rem.el): application/octet-stream, 4285 bytes
_______________________________________________
Emacs-orgmode mailing list
Remember: use `Reply All' to send replies to the list.
Emacs-orgmode <at> gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Olaf Dietsche | 9 Jan 15:39

Re: org-mode and remind integration

"Daniel Martins" <danielemc <at> gmail.com> writes:

> 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 <at> 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

Attachment (org2rem.el.diff): text/x-diff, 2316 bytes
_______________________________________________
Emacs-orgmode mailing list
Remember: use `Reply All' to send replies to the list.
Emacs-orgmode <at> gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Daniel Martins | 10 Jan 14:21

Re: org-mode and remind integration

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 <at> 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 <at> 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


_______________________________________________
Emacs-orgmode mailing list
Remember: use `Reply All' to send replies to the list.
Emacs-orgmode <at> gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Olaf Dietsche | 10 Jan 22:18

Re: org-mode and remind integration

Hi Daniel,

"Daniel Martins" <danielemc <at> gmail.com> writes:

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

With time, it'll get better.

> After o couple of hours trying to catch all timestamps outside SCHEDULE: and
> DEADLINE: lines I gave up and ask for help
[...]
> 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\\}")))
>
[...]
> 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?

I don't think, this is a question of a local variable vs. inlining the
regexp. It's more a matter of an appropriate regular expression. Did
you try an empty string instead?

e.g.: (org2rem-pure-timestamps-reminders (org2rem-list-reminders ""))

Or did I miss your problem completely?

Regards, Olaf

_______________________________________________
Emacs-orgmode mailing list
Remember: use `Reply All' to send replies to the list.
Emacs-orgmode <at> gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode

Daniel Martins | 11 Jan 21:19

Re: org-mode and remind integration

I did your test wuth a null regexp

It is a regexp problem!



Org-mode has two variables: org-deadline-string and org-scheduled-string (see below)

and I want to match tasks which have a timestamp, ie satisfies the org-ts-regexp2

BUT DO NOT  have org-deadline-string NOR org-scheduled-string

I tried


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


in order that a regexp such as

"\\(org-deadline-string\\|org-scheduled-string\\)\\{0\\}"

would match only zero {0} occurrences of (org-deadline-string|org-scheduled-string)
but this seems to be a mistake.

Any hint??

Daniel





--- Details ---

org-deadline-string is a variable defined in `org.el'.
Its value is "DEADLINE:"


org-scheduled-string is a variable defined in `org.el'.
Its value is "SCHEDULED:"


org-ts-regexp2 is a variable defined in `org.el'.
Its value is
"<\\(\\([0-9]\\{4\\}\\)-\\([0-9]\\{2\\}\\)-\\([0-9]\\{2\\}\\) +\\([^]-+0-9> \n ]*\\)\\( \\([0-9]\\{2\\}\\):\\([0-9]\\{2\\}\\)\\)?\\)[^>\n]\\{0,16\\}>"

Documentation:
Regular expression matching time stamps, with groups.










2009/1/10 Olaf Dietsche <olaf+list.orgmode <at> olafdietsche.de>
Hi Daniel,

"Daniel Martins" <danielemc <at> gmail.com> writes:

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

With time, it'll get better.

> After o couple of hours trying to catch all timestamps outside SCHEDULE: and
> DEADLINE: lines I gave up and ask for help
[...]
> 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\\}")))
>
[...]
> 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?

I don't think, this is a question of a local variable vs. inlining the
regexp. It's more a matter of an appropriate regular expression. Did
you try an empty string instead?

e.g.: (org2rem-pure-timestamps-reminders (org2rem-list-reminders ""))

Or did I miss your problem completely?

Regards, Olaf

_______________________________________________
Emacs-orgmode mailing list
Remember: use `Reply All' to send replies to the list.
Emacs-orgmode <at> gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Olaf Dietsche | 13 Jan 22:06

Re: org-mode and remind integration

"Daniel Martins" <danielemc <at> gmail.com> writes:

> I did your test wuth a null regexp
>
> It is a regexp problem!
>
> Org-mode has two variables: org-deadline-string and org-scheduled-string
> (see below)
>
> and I want to match tasks which have a timestamp, ie satisfies the
> org-ts-regexp2
>
> BUT DO NOT  have org-deadline-string NOR org-scheduled-string
>
> I tried
>
>     (org2rem-pure-timestamps-string
>           (concat  "\\(" org-deadline-string "\\|"
>                org-scheduled-string  "\\)\\{0\\}"))
>
> in order that a regexp such as
>
> "\\(org-deadline-string\\|org-scheduled-string\\)\\{0\\}"
>
> would match only zero {0} occurrences of
> (org-deadline-string|org-scheduled-string)
> but this seems to be a mistake.
>
> Any hint??

I can only suggest the empty regexp, as before:

     (org2rem-pure-timestamps-string "")

If this doesn't work, I don't know.

Regards, Olaf

_______________________________________________
Emacs-orgmode mailing list
Remember: use `Reply All' to send replies to the list.
Emacs-orgmode <at> gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Gmane