emacs-orgmode
[Top][All Lists]
Advanced

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

Re: [O] org-capture, datetree, and tags


From: Bastien
Subject: Re: [O] org-capture, datetree, and tags
Date: Fri, 22 Feb 2013 14:56:06 +0100
User-agent: Gnus/5.130006 (Ma Gnus v0.6) Emacs/24.3.50 (gnu/linux)

Hi Tim,

Tim Burt <address@hidden> writes:

> :  (defun org-datetree-find-year-create (year)
> :    (let ((re "^\\*+[ \t]+\\([12][0-9][0-9][0-9]\\)[ 
> \t]*\\(:[[:alnum:address@hidden)*:*[ \t]*$")
> :          match)
> I've tested with the following headlines:
>  - 2013
>    - both with and without trailing spaces
>  - 2013 :abc:
>  - 2013 :abc123:
>  - 2013 :abc123:_underscore:@attaboy::
>  - 2013 :noexport:
>
> Any comments on the regular expression are welcome before I make
> patch.

Thanks for working on fixing this.

The more or less standard regexp for tags-till-end-of-line is this:

   :[[:alnum:address@hidden:]*[ \t]*$
                    ^

With * if you want to match headlines with no tag.

Please have a look at this page before submitting a patch:
http://orgmode.org/worg/org-contribute.html#sec-5

Thanks!

-- 
 Bastien



reply via email to

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