emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: "Daniel Martins" <danielemc@gmail.com>
To: Olaf Dietsche <olaf+list.orgmode@olafdietsche.de>
Cc: bastien.guerry@ens.fr, Emacs-orgmode@gnu.org
Subject: Re: org-mode and remind integration
Date: Sun, 11 Jan 2009 18:19:20 -0200	[thread overview]
Message-ID: <6ac505ad0901111219k14af64fevd74608b6a806d813@mail.gmail.com> (raw)
In-Reply-To: <87wsd2508n.fsf@rat.lan>


[-- Attachment #1.1: Type: text/plain, Size: 2635 bytes --]

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@olafdietsche.de<olaf%2Blist.orgmode@olafdietsche.de>
>

> Hi Daniel,
>
> "Daniel Martins" <danielemc@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
>

[-- Attachment #1.2: Type: text/html, Size: 3921 bytes --]

[-- Attachment #2: Type: text/plain, Size: 204 bytes --]

_______________________________________________
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

  reply	other threads:[~2009-01-11 20:19 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-12-31 11:53 org-mode and remind integration Daniel Martins
2009-01-09  8:17 ` Carsten Dominik
2009-01-09  8:57   ` Daniel Martins
2009-01-09 14:39     ` Olaf Dietsche
2009-01-10 13:21       ` Daniel Martins
2009-01-10 21:18         ` Olaf Dietsche
2009-01-11 20:19           ` Daniel Martins [this message]
2009-01-13 21:06             ` Olaf Dietsche
  -- strict thread matches above, loose matches on Subject: below --
2009-02-11 14:23 Sharad Pratap

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=6ac505ad0901111219k14af64fevd74608b6a806d813@mail.gmail.com \
    --to=danielemc@gmail.com \
    --cc=Emacs-orgmode@gnu.org \
    --cc=bastien.guerry@ens.fr \
    --cc=olaf+list.orgmode@olafdietsche.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).