From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric Schulte Subject: Re: Re: Whitespace and outline structure... Date: Wed, 12 Dec 2007 09:07:27 -0800 Message-ID: <18272.5455.565230.491260@gargle.gargle.HOWL> References: <87odcxxxkg.fsf@enki.rimspace.net> <873au9gxkh.fsf@bzg.ath.cx> <87fxy9e3oq.fsf@shellarchive.co.uk> <874pepfgcm.fsf@bzg.ath.cx> <87k5nkf6ob.fsf@enki.rimspace.net> <87hcio9c3u.fsf@bzg.ath.cx> Reply-To: eschulte@mitre.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1J2V2k-0006hI-DS for emacs-orgmode@gnu.org; Wed, 12 Dec 2007 12:06:46 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1J2V2j-0006fk-IQ for emacs-orgmode@gnu.org; Wed, 12 Dec 2007 12:06:45 -0500 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1J2V2j-0006fa-Co for emacs-orgmode@gnu.org; Wed, 12 Dec 2007 12:06:45 -0500 Received: from smtp-bedford.mitre.org ([129.83.20.191]) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1J2V2j-0003Qx-3D for emacs-orgmode@gnu.org; Wed, 12 Dec 2007 12:06:45 -0500 Received: from smtp-bedford.mitre.org (localhost.localdomain [127.0.0.1]) by smtp-bedford.mitre.org (8.13.1/8.13.1) with ESMTP id lBCH6hqB007188 for ; Wed, 12 Dec 2007 12:06:44 -0500 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: emacs-orgmode@gnu.org I'm not sure if this is the case for others as well, but I care more about the number of lines of whitespace preceding headings in folded org files. I would find an option like... (setq org-preceding-blank-lines '((org-level-1 . 2) (org-level-2 . 1) (list-item . 1) (t . delete))) to be more helpful. Then when folding a subtree Orgmode would check the next header following the subtree, and count back. Just throwing this out there, Thanks, Eric On Wednesday, December 12, at 17:24, Carsten Dominik wrote: > On Dec 12, 2007 4:17 PM, Bastien wrote: > > Yes. Considering an option like: > > > > (setq org-allow-blank-lines ;; or org-allow-max-blank-lines > > '((org-level-1 . 2) > > (org-level-2 . 1) > > (list-item . 1) > > (t . delete)) > > > > The rule for handling trailing blank lines would be as follow : when > > moving/cutting a subtree of level N, only allow a definite number of > > trailing blank lines (L_n). If there is more than L_n lines, try to > > decide whether these additional blank lines are part of the subtree > > above... etc. If blank lines cannot be attached to a subtree, either > > delete them, or reject them at the end of the subtree. > > > > Not sure how this could be implemented, but I just wanted to clarify > > what I had in mind. > > I am not sure an option is the right thing here, because it will continue to > remain difficult to figure out where to put the boundaries. > > The best might be to look *before* a heading and see how many empty > lines there are, and then include up to that many lines below the subtree. > It seems to me that this might get quite close to the right behavior, > but I am sure there will be cases where also this idea will not work > correctly. > > - Carsten > > > _______________________________________________ > 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