[Top][All Lists]

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

Re: [O] bug#9695: allowed date range

From: Tassilo Horn
Subject: Re: [O] bug#9695: allowed date range
Date: Thu, 13 Oct 2011 09:28:04 +0200
User-agent: Gnus/5.110018 (No Gnus v0.18) Emacs/24.0.90 (gnu/linux)

Ivan Kanis <address@hidden> writes:


> After investigating further <2011-10-17 >--<2011-10-30 > works but not
> <2011-10-17>--<2011-10-30>. The regexp for a timestamp is defined in
> org-ts-regexp :
> "<\\([0-9]\\{4\\}-[0-9]\\{2\\}-[0-9]\\{2\\}[^\r\n>]*?\\)>"
> Shouldn't the trailing space be optional?

In your regex, there is no trailing whitespace, but are right that it is
in the original definition.

,----[ C-h v org-ts-regexp RET ]
| org-ts-regexp is a variable defined in `org.el'.
| Its value is
| "<\\([0-9]\\{4\\}-[0-9]\\{2\\}-[0-9]\\{2\\} [^\r\n>]*?\\)>"
|                                            ^

Strangely, that timestamp regex didn't change for 3 years...

Oh, now I see what's wrong.  All time stamps consist of the date and
then the day's name abbreviation, which is missing with your example.
Correct would be

  <2011-10-17 Mon>--<2011-10-30 Sun>


reply via email to

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