all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Eric S Fraga <e.fraga@ucl.ac.uk>
To: Tassilo Horn <tassilo@member.fsf.org>
Cc: emacs-orgmode@gnu.org
Subject: Re: bug#9695: allowed date range
Date: Thu, 13 Oct 2011 08:48:25 +0100	[thread overview]
Message-ID: <87lisp9vsm.fsf@pinto.chemeng.ucl.ac.uk> (raw)
In-Reply-To: <87mxd5jqpn.fsf@thinkpad.tsdh.de> (Tassilo Horn's message of "Thu, 13 Oct 2011 09:28:04 +0200")

Tassilo Horn <tassilo@member.fsf.org> writes:

> Ivan Kanis <ivan.kanis@googlemail.com> 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

Although the day is optional according to the regexp.  I would
definitely like to have the regexp with the space optional as well as
there are cases where I want to type the date in directly (not in org
mode for whatever reason).  In those cases, it is easy to type
2011-01-01 or whatever but it's not necessarily trivial to determine the
day of the week...

Actually, interesting thought experiment: does org actually do any
consistency checks, comparing the date and the day of the week?

-- 
: Eric S Fraga (GnuPG: 0xC89193D8FFFCF67D) in Emacs 24.0.90.1
: using Org-mode version 7.7 (release_7.7.380.g54d7df)

  reply	other threads:[~2011-10-13  7:48 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-10-07 17:15 bug#9695: 24.0.90; org time range is broken Ivan Kanis
2011-10-12  6:53 ` bug#9695: allowed date range Ivan Kanis
2012-03-23  1:30   ` Glenn Morris
2012-03-23  1:30   ` Glenn Morris
2011-10-12  6:53 ` Ivan Kanis
2011-10-13  7:28   ` Tassilo Horn
2011-10-13  7:48     ` Eric S Fraga [this message]
2011-10-13  7:57       ` Tassilo Horn
2011-10-13  8:02         ` Carsten Dominik
2011-10-13 10:15           ` Eric S Fraga
2011-10-13  8:27       ` Carsten Dominik
2011-10-13 10:14         ` Eric S Fraga
2011-10-13 13:04           ` Tassilo Horn
2011-10-16 13:45         ` Michael Brand
2011-11-09 18:18           ` Carsten Dominik
2011-11-09 21:32             ` Michael Brand
2011-11-03 17:22         ` Michael Brand

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

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

  git send-email \
    --in-reply-to=87lisp9vsm.fsf@pinto.chemeng.ucl.ac.uk \
    --to=e.fraga@ucl.ac.uk \
    --cc=emacs-orgmode@gnu.org \
    --cc=tassilo@member.fsf.org \
    /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 external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.