From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: [PATCH 2/3] org-datetree.el: Add support for ISO week trees. Date: Thu, 03 Sep 2015 07:55:08 +0200 Message-ID: <87fv2w82tf.fsf@nicolasgoaziou.fr> References: <5814117.7UzEcaoqyZ@descartes> <87oahk8ug6.fsf@nicolasgoaziou.fr> <2604417.dNsH2en53f@descartes> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:56890) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZXNSm-00005b-3c for emacs-orgmode@gnu.org; Thu, 03 Sep 2015 01:53:32 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZXNSl-00005g-6U for emacs-orgmode@gnu.org; Thu, 03 Sep 2015 01:53:32 -0400 Received: from relay4-d.mail.gandi.net ([2001:4b98:c:538::196]:55165) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZXNSk-00005S-Vy for emacs-orgmode@gnu.org; Thu, 03 Sep 2015 01:53:31 -0400 In-Reply-To: <2604417.dNsH2en53f@descartes> (=?utf-8?Q?=22R=C3=BCdiger?= Sonderfeld"'s message of "Thu, 03 Sep 2015 01:14:43 +0100") 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: =?utf-8?Q?R=C3=BCdiger?= Sonderfeld Cc: emacs-orgmode@gnu.org, =?utf-8?Q?R=C3=BCdiger?= Sonderfeld R=C3=BCdiger Sonderfeld writes: > On Wednesday 02 September 2015 21:58:17 Nicolas Goaziou wrote: >> R=C3=BCdiger Sonderfeld writes: >> > + (let ((prop (org-find-property "DATE_WEEK_TREE"))) >>=20 >> I don't think we need to introduce a new property for that. DATE_TREE is >> enough. > > Since DATE_TREE and DATE_WEEK_TREE (or WEEK_TREE instead?) are structured= =20 > differently it might make sense to keep the property separated. If you want both a date tree and a week tree in the same, you probably want them to start at the same level, don't you? >> > + ;; ISO 8601 week format is %G-W%V(-%u) >> > + (org-datetree--find-create "^\\*+[ >> > \t]+\\([12][0-9]\\{3\\}\\)\\(\\s-*?\\([ >> > \t]:[[:alnum:]:_@#%%]+:\\)?\\s-*$\\)" >> Isn't this line too long? > > What's the limit? Because if it's 80 char then I'd need to do some `conc= at'=20 > ugliness because the regex is over 80 char long. You can use continuation markup, i.e., "\\n". Regards,