From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bernt Hansen Subject: Re: Date tree capture regexp for headline matching has changed. Date: Mon, 09 May 2011 21:17:10 -0400 Message-ID: <87fwoncq21.fsf@norang.ca> References: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([140.186.70.92]:54424) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QJbZj-0004gY-VR for emacs-orgmode@gnu.org; Mon, 09 May 2011 21:17:24 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QJbZg-0005Cm-N9 for emacs-orgmode@gnu.org; Mon, 09 May 2011 21:17:23 -0400 Received: from mho-04-ewr.mailhop.org ([204.13.248.74]:60441 helo=mho-02-ewr.mailhop.org) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QJbZg-00058K-LL for emacs-orgmode@gnu.org; Mon, 09 May 2011 21:17:20 -0400 In-Reply-To: (Charles Cave's message of "Tue, 10 May 2011 01:03:05 +0000 (UTC)") 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: Charles Cave Cc: emacs-orgmode@gnu.org Charles Cave writes: > I compared org-datetre.el from 7.4 to 7.5 and got the following > diff output (edited) > > I can see that the regular expression has become more restricted > with the addition of \\w+$" at the end. > > At least I know what to manually change to make orgmode work the > way I want it. > > > 105c105 (this is the org-datetree-find-day-create function > 7.4: (let ((re (format "^\\*+[ \t]+%d-%02d-\\([0123][0-9]\\)[ \t\n]" year month)) > --- > 7.5: (let ((re (format "^\\*+[ \t]+%d-%02d-\\([0123][0-9]\\) \\w+$" year month)) Hi Charles, According to git blame, this change was done in ,---- | commit d9eeb15ab9d55316f08cd7efe818119bb7e5fc56 | Author: Bastien Guerry | Date: Tue Feb 15 06:07:53 2011 +0100 | | Fix bug when jumping to a datetree from the agenda. | | Datetree entries have a fixed form now: | | * 2011 | ** 2011-02 monthname | *** 2011-02-13 dayname | | These headings will not be recognized as datetrees: | | * 2011 A task for 2011 | ** 2011-02 several words | *** 2011-02-13 several words | | Thanks to Detlef Steuer for reporting this. `---- Regards, Bernt