From mboxrd@z Thu Jan 1 00:00:00 1970 From: Suvayu Ali Subject: Date-tree capture confused when nearby trees have dates Date: Mon, 15 Apr 2013 01:04:44 +0200 Message-ID: <20130414230444.GA11696@kuru.dyndns-at-home.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="7JfCtLOvnd9MIVvH" Return-path: Received: from eggs.gnu.org ([208.118.235.92]:55002) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1URVye-0000dw-6i for emacs-orgmode@gnu.org; Sun, 14 Apr 2013 19:04:53 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1URVyd-0007X0-3T for emacs-orgmode@gnu.org; Sun, 14 Apr 2013 19:04:52 -0400 Received: from mail-we0-x22a.google.com ([2a00:1450:400c:c03::22a]:43083) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1URVyc-0007Wu-Sw for emacs-orgmode@gnu.org; Sun, 14 Apr 2013 19:04:51 -0400 Received: by mail-we0-f170.google.com with SMTP id z2so3232266wey.15 for ; Sun, 14 Apr 2013 16:04:49 -0700 (PDT) Content-Disposition: inline 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: Emacs Org mode --7JfCtLOvnd9MIVvH Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Hi Orgers, I came a cross a curious problem. When I try to capture with the following template: (setq org-capture-templates '(("m" "Meeting notes" entry (file+datetree "~/tmp/tests/target.org") "**** %^{prompt} %U\n%?") )) Capture gets confused and cannot find the real date-tree if there are nearby trees with headlines like this: ** 2013 June - Event 2 ** 2013 March - Event 1 You can replicate this by using the file target_before.org (attached) as a capture target. I expect the captured entry to go under * 2013 ** 2013-04 April *** 2013-04-15 Monday Instead it goes under "Topical lectures" as shown by target_after.org (attached). Is this a bug, or am I making a mistake? Any ideas? -- Suvayu Open source is the future. It sets us free. --7JfCtLOvnd9MIVvH Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename="target_before.org" * Topical lectures ** 2013 June - Dark Matter <2013-06-10 Mon>--<2013-06-12 Wed> ** 2013 March - Accelerators <2013-03-20 Wed>--<2013-03-22 Fri> * 2013 ** 2013-04 April *** 2013-04-12 Friday **** Some meeting notes [2013-04-12 Fri 14:37] Stuff ... and more stuff. --7JfCtLOvnd9MIVvH Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename="target_after.org" * Topical lectures ** 2013 June - Dark Matter <2013-06-10 Mon>--<2013-06-12 Wed> ** 2013-04 April *** 2013-04-15 Monday **** Testing meeting notes [2013-04-15 Mon 00:53] Really important notes! ** 2013 March - Accelerators <2013-03-20 Wed>--<2013-03-22 Fri> * 2013 ** 2013-04 April *** 2013-04-12 Friday **** Some meeting notes [2013-04-12 Fri 14:37] Stuff ... and more stuff. --7JfCtLOvnd9MIVvH--