From mboxrd@z Thu Jan 1 00:00:00 1970 From: Leo Subject: Empty lines in subtrees (was: [bug] misbehavior of org-shiftmetaup) Date: Fri, 13 Apr 2007 10:50:26 +0100 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HcITw-0003KC-An for emacs-orgmode@gnu.org; Fri, 13 Apr 2007 05:54:16 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HcITu-0003IC-KU for emacs-orgmode@gnu.org; Fri, 13 Apr 2007 05:54:15 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HcITs-0003Gj-EQ for emacs-orgmode@gnu.org; Fri, 13 Apr 2007 05:54:12 -0400 Received: from main.gmane.org ([80.91.229.2] helo=ciao.gmane.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1HcIPb-0005vl-Li for emacs-orgmode@gnu.org; Fri, 13 Apr 2007 05:49:47 -0400 Received: from list by ciao.gmane.org with local (Exim 4.43) id 1HcIPT-0004HN-Ng for emacs-orgmode@gnu.org; Fri, 13 Apr 2007 11:49:39 +0200 Received: from sl392.st-edmunds.cam.ac.uk ([131.111.223.202]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 13 Apr 2007 11:49:39 +0200 Received: from sdl.web by sl392.st-edmunds.cam.ac.uk with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 13 Apr 2007 11:49:39 +0200 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 ----- Me (2007-04-12) wrote:----- > Dear Carsten, > > I think this bug has been there for quite some time as it is also in > 4.67c. > > To reproduce: > o Open the attached file and set it in org-mode > o Go to "* Heading 1" and issue 'C-x n s' > o Move cursor to subtree: "** Item 2" > o M-x org-shiftmetaup [...] This bug is now fixed in org 4.71. However, it will now add an empty line to the subtree, and then bring all empty lines along when org-shiftmetaup. So after shuffling a few times, users can be left with: ,---- | * Heading 1 | ** Item 1 | Read this book. | ** Item 2 | Go to supermarket and get a printer | | | | | * Heading 2 `---- I guess this is because: When narrowing to subtree, the "newline" at the end of the last subtree is left out and thus org-shiftmetaup introduce another one. Regards, -- Leo (GPG Key: 9283AA3F)