From mboxrd@z Thu Jan 1 00:00:00 1970 From: Charles Cave Subject: Solved the problem of org-capture apparently not working Date: Sat, 5 Feb 2011 00:32:21 +0000 (UTC) Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Return-path: Received: from [140.186.70.92] (port=51101 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PlW4t-0002Xw-Fk for emacs-orgmode@gnu.org; Fri, 04 Feb 2011 19:32:40 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PlW4s-0002W4-E1 for emacs-orgmode@gnu.org; Fri, 04 Feb 2011 19:32:39 -0500 Received: from lo.gmane.org ([80.91.229.12]:55367) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PlW4s-0002Vu-7F for emacs-orgmode@gnu.org; Fri, 04 Feb 2011 19:32:38 -0500 Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1PlW4m-0002Cj-Kc for emacs-orgmode@gnu.org; Sat, 05 Feb 2011 01:32:33 +0100 Received: from c211-30-220-217.thorn2.nsw.optusnet.com.au ([211.30.220.217]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 05 Feb 2011 01:32:32 +0100 Received: from charles.cave by c211-30-220-217.thorn2.nsw.optusnet.com.au with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 05 Feb 2011 01:32:32 +0100 List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org In early January I posted what I thought was a bug report with org-capture. I found that capturing to a date-tree didn't always work and in one file the capture was written to the wrong place. Well, the problem was with the data! One of my headings began with 2011. The tree looked something like this (edited) * 2010 ** 2010-12 December *** 2010-12-05 Sunday **** A heading **** 2011 Actions <---------- this caused the problem **** Another heading ... *** 2010-12-06 Monday ... ... In 2011 when I captured into this file's date-tree, org-capture found the headline 2011 Actions which matched the algorithm and the captured item appeared at the end of the headings at that level. My suggestion to eliminate the problem is to modify the org-capture algorithm so years have to match beginning of line + one asterisk + one space + the year Similarly, months could match beginning of line + two asterisks + one space + the year + hyphen + month number + space + Monthname. But the chance of this format heading appearing outside a date-tree would be very low. Charles