From mboxrd@z Thu Jan 1 00:00:00 1970 From: Carsten Dominik Subject: Re: [BUG] Org-capture breaks if captured-to file is open in a narrowed buffer Date: Fri, 24 Sep 2010 17:17:22 +0200 Message-ID: <5A1D62F6-007C-44F3-9C46-14A8E21408F9@gmail.com> References: <20100909113805.GO26017@roobarb.crazydogs.org> <87r5gyx5wt.wl%dmaus@ictsoc.de> <877hicxotf.wl%dmaus@ictsoc.de> <871v8jz5nd.wl%dmaus@ictsoc.de> Mime-Version: 1.0 (Apple Message framework v936) Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Return-path: Received: from [140.186.70.92] (port=33204 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OzAJO-00042T-09 for emacs-orgmode@gnu.org; Fri, 24 Sep 2010 11:35:51 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OzA44-00072x-1r for emacs-orgmode@gnu.org; Fri, 24 Sep 2010 11:19:57 -0400 Received: from mail-ey0-f169.google.com ([209.85.215.169]:56505) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OzA43-00072r-To for emacs-orgmode@gnu.org; Fri, 24 Sep 2010 11:19:56 -0400 Received: by eyh5 with SMTP id 5so976700eyh.0 for ; Fri, 24 Sep 2010 08:19:55 -0700 (PDT) In-Reply-To: <871v8jz5nd.wl%dmaus@ictsoc.de> 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: David Maus Cc: Jules Bean , emacs-orgmode@gnu.org On Sep 24, 2010, at 2:29 PM, David Maus wrote: > Carsten Dominik wrote: > >> On Sep 23, 2010, at 9:06 PM, David Maus wrote: > >>> David Maus wrote: >>>> Jules Bean wrote: >>>>> 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. >>> >>>> I can confirm this with >>> >>>> Org-mode version 7.01trans (release_7.01h.497.g59fa) >>> >>>> GNU Emacs 23.2.1 (i486-pc-linux-gnu, GTK+ Version 2.20.0) >>>> of 2010-08-14 on raven, modified by Debian >>> >>> Attached should fix this problem. > >> Looks good to me. > >> - Carsten > > Okay, pushed to master. Thank you for all your work, David. - Carsten