emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Bastien <bzg@altern.org>
To: Daniel Pittman <daniel@rimspace.net>
Cc: emacs-orgmode@gnu.org
Subject: Re: Whitespace and outline structure...
Date: Tue, 11 Dec 2007 14:39:26 +0100	[thread overview]
Message-ID: <873au9gxkh.fsf@bzg.ath.cx> (raw)
In-Reply-To: <87odcxxxkg.fsf@enki.rimspace.net> (Daniel Pittman's message of "Tue, 11 Dec 2007 22:47:27 +1100")

Hi Daniel,

Daniel Pittman <daniel@rimspace.net> 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

  reply	other threads:[~2007-12-11 13:39 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-12-11 11:47 Whitespace and outline structure Daniel Pittman
2007-12-11 13:39 ` Bastien [this message]
2007-12-11 13:55   ` Phil Jackson
2007-12-11 14:36     ` Bastien
2007-12-12 12:17       ` Daniel Pittman
2007-12-12 15:17         ` Bastien
2007-12-12 16:24           ` Carsten Dominik
2007-12-12 17:07             ` Eric Schulte
2007-12-12 17:36             ` Eric Schulte

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=873au9gxkh.fsf@bzg.ath.cx \
    --to=bzg@altern.org \
    --cc=daniel@rimspace.net \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).