From mboxrd@z Thu Jan 1 00:00:00 1970 From: Tassilo Horn Subject: Re: bug#9695: allowed date range Date: Thu, 13 Oct 2011 09:28:04 +0200 Message-ID: <87mxd5jqpn.fsf@thinkpad.tsdh.de> References: <87ty7kd8oh.fsf@kanis.fr> <87ehyiitv7.fsf__48109.1452217244$1318487785$gmane$org@googlemail.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([140.186.70.92]:37339) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1REFiL-0004S4-7M for emacs-orgmode@gnu.org; Thu, 13 Oct 2011 03:28:26 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1REFiK-0005Rm-Br for emacs-orgmode@gnu.org; Thu, 13 Oct 2011 03:28:25 -0400 Received: from lo.gmane.org ([80.91.229.12]:54423) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1REFiK-0005Rf-6a for emacs-orgmode@gnu.org; Thu, 13 Oct 2011 03:28:24 -0400 Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1REFiD-000504-Uu for emacs-orgmode@gnu.org; Thu, 13 Oct 2011 09:28:17 +0200 Received: from tsdh.uni-koblenz.de ([141.26.67.142]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 13 Oct 2011 09:28:17 +0200 Received: from tassilo by tsdh.uni-koblenz.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 13 Oct 2011 09:28:17 +0200 List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org Ivan Kanis writes: Hi! > 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> Bye, Tassilo