emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Orgmode] Re: org-mode and remind integration


From: Daniel Martins
Subject: [Orgmode] Re: org-mode and remind integration
Date: Sun, 11 Jan 2009 18:19:20 -0200

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 <address@hidden>
Hi Daniel,

"Daniel Martins" <address@hidden> 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


reply via email to

[Prev in Thread] Current Thread [Next in Thread]