From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jules Bean Subject: [BUG] Org-capture breaks if captured-to file is open in a narrowed buffer Date: Thu, 9 Sep 2010 12:38:05 +0100 Message-ID: <20100909113805.GO26017@roobarb.crazydogs.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from [140.186.70.92] (port=36406 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OtfSE-0004qm-V1 for emacs-orgmode@gnu.org; Thu, 09 Sep 2010 07:38:14 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OtfSA-0001kx-Qq for emacs-orgmode@gnu.org; Thu, 09 Sep 2010 07:38:10 -0400 Received: from roobarb.crazydogs.org ([93.93.128.87]:45272 helo=roobarb.jellybean.co.uk) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OtfSA-0001kj-H1 for emacs-orgmode@gnu.org; Thu, 09 Sep 2010 07:38:06 -0400 Received: from jules by roobarb.jellybean.co.uk with local (Exim 4.69) (envelope-from ) id 1OtfS9-000402-ML for emacs-orgmode@gnu.org; Thu, 09 Sep 2010 12:38:05 +0100 Content-Disposition: inline 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 If I run org-capture with the template: ("t" "Todo" entry (file+headline "/Users/jules/work/TODO.org" "Tasks") "* TODO %? (Captured at %u) %i %a ") whilst I have narrowed (using, e.g., org-narrow-to-subtree) the buffer that contains TODO.org, a new "* Tasks" headline is inserted at the end of my narrowing and the new entry is added there, which messes up the hierarchy of the file. Thanks, Jules