From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Jeff Li" Subject: Bug with inserting a heading in narrowed buffer ? Date: Wed, 16 Jul 2008 22:06:15 -0400 Message-ID: <50fed86f0807161906n4f22b65co7379dd870f5a0a34@mail.gmail.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0163765210==" Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KJIsu-0007Ki-B6 for emacs-orgmode@gnu.org; Wed, 16 Jul 2008 22:06:20 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KJIss-0007KW-Vb for emacs-orgmode@gnu.org; Wed, 16 Jul 2008 22:06:20 -0400 Received: from [199.232.76.173] (port=54169 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KJIss-0007KT-RP for emacs-orgmode@gnu.org; Wed, 16 Jul 2008 22:06:18 -0400 Received: from qw-out-1920.google.com ([74.125.92.144]:19067) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1KJIsr-0002ah-J5 for emacs-orgmode@gnu.org; Wed, 16 Jul 2008 22:06:17 -0400 Received: by qw-out-1920.google.com with SMTP id 5so411631qwf.24 for ; Wed, 16 Jul 2008 19:06:16 -0700 (PDT) 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: emacs-orgmode@gnu.org --===============0163765210== Content-Type: multipart/alternative; boundary="----=_Part_22259_27135550.1216260375688" ------=_Part_22259_27135550.1216260375688 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline 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 ------=_Part_22259_27135550.1216260375688 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline
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
------=_Part_22259_27135550.1216260375688-- --===============0163765210== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ 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 --===============0163765210==--