From mboxrd@z Thu Jan 1 00:00:00 1970 From: Carsten Dominik Subject: Re: [PATCH] org-narrow-to-subtree: prevent prepending text to the next headline while narrowed Date: Fri, 22 Jan 2010 11:30:10 +0100 Message-ID: References: <4B544258.4040305@jboecker.de> Mime-Version: 1.0 (Apple Message framework v936) Content-Type: text/plain; charset=ISO-8859-1; format=flowed; delsp=yes Content-Transfer-Encoding: quoted-printable Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NYGmT-0001St-94 for emacs-orgmode@gnu.org; Fri, 22 Jan 2010 05:30:21 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NYGmN-0001LJ-Pg for emacs-orgmode@gnu.org; Fri, 22 Jan 2010 05:30:20 -0500 Received: from [199.232.76.173] (port=60889 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NYGmN-0001Kv-KV for emacs-orgmode@gnu.org; Fri, 22 Jan 2010 05:30:15 -0500 Received: from mail-fx0-f216.google.com ([209.85.220.216]:61521) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1NYGmM-0003Iu-Ll for emacs-orgmode@gnu.org; Fri, 22 Jan 2010 05:30:15 -0500 Received: by fxm8 with SMTP id 8so93603fxm.26 for ; Fri, 22 Jan 2010 02:30:13 -0800 (PST) In-Reply-To: <4B544258.4040305@jboecker.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: =?ISO-8859-1?Q?Jan_B=F6cker?= Cc: Org Mode Applied (but not yet pushed because of hardware upgrade at =20 repo.or.cz), thanks. I had implemented it the other way round because that would avoid =20 making new empty lines by accident, but I do agree that swallowing a =20 headline is by fare the more severe problem. Thanks. - Carsten On Jan 18, 2010, at 12:13 PM, Jan B=F6cker wrote: > Consider the following situation: > > * A > Some text. > * B > > - Place the cursor on A, press C-x n w (org-narrow-to-subtree). > - Go to the very end of the buffer and insert "xyz". > - C-x n w (widen). > > You end up with: > > * A > Some Text > xyz* B > > > The attached one-line patch fixes this by passing `nil' for the > `to-heading' parameter of `org-end-of-subtree'. > <0001-org-narrow-to-subtree-prevent-prepending-text-to-=20 > the.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