From mboxrd@z Thu Jan 1 00:00:00 1970 From: Carsten Dominik Subject: Re: Bug with inserting a heading in narrowed buffer ? Date: Thu, 17 Jul 2008 09:58:04 -0700 Message-ID: <07642543-7ADA-433E-B4AF-1D806C299AAC@uva.nl> References: <50fed86f0807161906n4f22b65co7379dd870f5a0a34@mail.gmail.com> Mime-Version: 1.0 (Apple Message framework v924) Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KJWnx-0004qs-I1 for emacs-orgmode@gnu.org; Thu, 17 Jul 2008 12:58:09 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KJWnw-0004qe-20 for emacs-orgmode@gnu.org; Thu, 17 Jul 2008 12:58:09 -0400 Received: from [199.232.76.173] (port=35530 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KJWnv-0004qT-OT for emacs-orgmode@gnu.org; Thu, 17 Jul 2008 12:58:07 -0400 Received: from korteweg.uva.nl ([146.50.98.70]:48264) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1KJWnu-0007o2-Rb for emacs-orgmode@gnu.org; Thu, 17 Jul 2008 12:58:07 -0400 In-Reply-To: <50fed86f0807161906n4f22b65co7379dd870f5a0a34@mail.gmail.com> 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: Jeff Li Cc: emacs-orgmode@gnu.org Fixed, thanks. - Carsten On Jul 16, 2008, at 7:06 PM, Jeff Li wrote: > Hi, Carsten and list, > > It seems there is a bug with inserting a new heading in a narrowed > org-mode buffer. I am using version 6.05 > > The bug can be reproduced with the following 2 lines test file: > > * heading A > * heading B > > 1. narrow to "heading A" subtree. (C-x n s) > 2. goto the end of the buffer > 3. insert a new heading. > 4. widen the buffer again > > Now one can see the "heading B" is folded into the newly created > heading. > > The problem seems to stem from the fact that "org-insert-heading" is > unaware it is at the beginning of a new heading, because the buffer > is narrowed. > > Thanks, > > -Jeff > _______________________________________________ > Emacs-orgmode mailing list > Remember: use `Reply All' to send replies to the list. > Emacs-orgmode@gnu.org > http://lists.gnu.org/mailman/listinfo/emacs-orgmode