From mboxrd@z Thu Jan 1 00:00:00 1970 From: Carsten Dominik Subject: Re: bug: org-narrow-to-subtree Date: Mon, 1 Nov 2010 20:52:04 +0100 Message-ID: <0FCA5AA0-FAF6-4129-80B3-8E2B3BF85580@gmail.com> References: Mime-Version: 1.0 (Apple Message framework v936) Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Return-path: Received: from [140.186.70.92] (port=47310 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PD0zU-0002Ii-CR for emacs-orgmode@gnu.org; Mon, 01 Nov 2010 16:28:29 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PD0zT-0005Us-3z for emacs-orgmode@gnu.org; Mon, 01 Nov 2010 16:28:28 -0400 Received: from mail-ew0-f41.google.com ([209.85.215.41]:59615) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PD0zS-0005TS-UZ for emacs-orgmode@gnu.org; Mon, 01 Nov 2010 16:28:27 -0400 Received: by mail-ew0-f41.google.com with SMTP id 25so2983923ewy.0 for ; Mon, 01 Nov 2010 13:28:26 -0700 (PDT) In-Reply-To: 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: Puneeth Cc: emacs-orgmode Hi Puneeth, I am unable to reproduce this problem.... Greetings - Carsten On Nov 1, 2010, at 2:32 PM, Puneeth wrote: > Hi, > > I hit a minor bug with the function org-narrow-to-subtree. > > When I narrow to a headline (subtree with just the headline) present > at the end of a file, the last character of the headline isn't present > in the narrowed region. [file1.org and file2.org shown at the end of > the message are examples] > > I am attaching a possible patch for the same, but I don't think that > is the "cleanest" way to handle it. Hope it'll help some one else to > fix it in a better way. > > Thanks, > Puneeth > > file1.org > ----------------- > * Hello > * World > * TestEOF > ----------------- > > file2.org > ------------------ > * Test > *** World > *** Hello 1EOF > ------------------ > _______________________________________________ > 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