From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bastien Subject: Re: Whitespace and outline structure... Date: Tue, 11 Dec 2007 14:39:26 +0100 Message-ID: <873au9gxkh.fsf@bzg.ath.cx> References: <87odcxxxkg.fsf@enki.rimspace.net> 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 1J25Kk-0003Gj-L8 for emacs-orgmode@gnu.org; Tue, 11 Dec 2007 08:39:38 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1J25Ki-0003EK-W0 for emacs-orgmode@gnu.org; Tue, 11 Dec 2007 08:39:38 -0500 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1J25Ki-0003E9-K5 for emacs-orgmode@gnu.org; Tue, 11 Dec 2007 08:39:36 -0500 Received: from nf-out-0910.google.com ([64.233.182.184]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1J25Ki-0006ZH-Eg for emacs-orgmode@gnu.org; Tue, 11 Dec 2007 08:39:36 -0500 Received: by nf-out-0910.google.com with SMTP id f5so1444271nfh for ; Tue, 11 Dec 2007 05:39:34 -0800 (PST) In-Reply-To: <87odcxxxkg.fsf@enki.rimspace.net> (Daniel Pittman's message of "Tue, 11 Dec 2007 22:47:27 +1100") 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: Daniel Pittman Cc: emacs-orgmode@gnu.org Hi Daniel, Daniel Pittman writes: > There are two specific problems: > > I put multiple blank lines before a top level heading to get visible > whitespace, in this sort of structure: > > * Some Stuff > ** A first item. > ** Blah Blah > > > * Other Stuff -- with a line even when 'Some Stuff' is folded. > ** Another Item. > > > If I was then to move '** Blah Blah' under the 'Other Stuff' heading > using the built-in structure management tools those extra blank lines > move with it. > > This means that 'Other Stuff' is now joined up, visually, to 'A First > Item', which I didn't want, and that there is visible whitespace between > 'Blah Blah' and 'Another Item' as well... The problem is that there is no way to tell that the two blank lines after "** Blah blah" are part of "** Blah blah" or part of "* Some stuff". If they are part of "** Blah blah" they should move with it. If they are part of "* Some stuff" then they should move with this first-level tree, not with the second-level tree. But instead of trying to decide to what subtree blank lines belong, we should instead let the user define how many blank lines he wants to allow after headings / list items. (setq org-allow-blank-lines '((org-level-1 . 2) (org-level-2 . 1) (list-item . 1)) This way we would have: M-x org-delete-trailing-blank-lines which would delete blank lines that are not allowed. And possibly a way to decide whether trailing lines at the end of a subtree should move with the subtree or not. What do you think? -- Bastien