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 09:01:33 +0200 Message-ID: References: <20100909113805.GO26017@roobarb.crazydogs.org> <87r5gyx5wt.wl%dmaus@ictsoc.de> <877hicxotf.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=50067 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Oz2Hr-0006Ri-80 for emacs-orgmode@gnu.org; Fri, 24 Sep 2010 03:01:40 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1Oz2Hp-00045n-7c for emacs-orgmode@gnu.org; Fri, 24 Sep 2010 03:01:39 -0400 Received: from mail-ew0-f41.google.com ([209.85.215.41]:37126) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Oz2Ho-00045d-Tz for emacs-orgmode@gnu.org; Fri, 24 Sep 2010 03:01:37 -0400 Received: by ewy28 with SMTP id 28so835123ewy.0 for ; Fri, 24 Sep 2010 00:01:36 -0700 (PDT) In-Reply-To: <877hicxotf.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 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 > > Best, > -- David > -- > OpenPGP... 0x99ADB83B5A4478E6 > Jabber.... dmjena@jabber.org > Email..... dmaus@ictsoc.de > <0001-Widen-to-remove-possible-restrictions-in-target- > buff.patch>_______________________________________________ > Emacs-orgmode mailing list > Please use `Reply All' to send replies to the list. > Emacs-orgmode@gnu.org > http://lists.gnu.org/mailman/listinfo/emacs-orgmode - Carsten