emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Bernt Hansen <bernt@norang.ca>
To: David Frascone <dave@frascone.com>
Cc: emacs-orgmode <emacs-orgmode@gnu.org>
Subject: Re: Questions about creating new nodes (headings)
Date: Wed, 28 Apr 2010 17:13:44 -0400	[thread overview]
Message-ID: <87d3xjs2k7.fsf@gollum.intra.norang.ca> (raw)
In-Reply-To: <m2i9cf5ced21004281041s84237f9crbba1d77300a3ef1@mail.gmail.com> (David Frascone's message of "Wed\, 28 Apr 2010 11\:41\:28 -0600")

Hi David,

Comments are inline below.

David Frascone <dave@frascone.com> writes:

> Here are two questions (or maybe one question, and a bug report) from
> my note taking while reading the manual.
>
> ***** Best way to make next menu item?  M-Enter seems to work pretty well.
> I'm not to happy with the way org-mode adds a blank line after a block
> of text when doing C-S-RET from the entry line, and M-RET from the
> block of text.  Do most of you have a blank line after your text
> blocks, but before the next entry?  And, I just noticed that it
> doesn't ALWAYS add the blank line . . . tres strange.  The blank lines seem
> to have some correlation with having other blank lines after higher nodes.
> It is VERY strange behavior . . so far, unpredictable to me :)

Blank lines?  What blank lines?  Customize org-blank-before-new-entry.
I have the following setting:

,----
| org-blank-before-new-entry is a variable defined in `org.el'.
| Its value is 
| ((heading)
|  (plain-list-item))
| 
`----


If you are in the body whatever blank lines you created will stay

,----[ before M-RET ]
| * TODO foo
|   <point here>
`----

hitting M-RET gives me this

,----
| * TODO foo
|   
| * 
`----

Now you had a blank line after * TODO foo so it's the body of that item
and M-RET should preserve that.

I have org-insert-heading-respect-content set to t

I normally create headlines from the task itself so I don't press RET
on * TODO foo if I only want to make a new headline following it.  Just
* TODO foo M-RET to get

,----
| * TODO foo
| * 
`----

I get no extra blank lines with point on the heading and using C-S-RET.

>
> ***** C-<RET> does not seem to do what the info page suggests.
> It seems to go into a column selection mode.  Which, by itself, is
> very useful, and I'll have to remember that.   I can't seem to find
> the C-<RET> behavior anywhere (jump over the body, and add a new
> heading at the same level. C-S-<RET> Does do what it is supposed to,
> so, I guess a good workaround is C-S-<RET>, then backspace over the TODO.

,----
| ** TODO foo
|    
| ** TODO foo
|   foo bar baz<point here>
|   a b c
| ** More stuff 
| * rest of stuff 
`----

with point at <point here> and C-RET I get this:

,----
| ** TODO foo
|    
| ** TODO foo
|   foo bar baz
|   a b c
| ** <point here>
| ** More stuff 
| * rest of stuff 
`----

What version are you running and on what platform?

Regards,
Bernt

      parent reply	other threads:[~2010-04-28 21:14 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-04-28 17:41 Questions about creating new nodes (headings) David Frascone
2010-04-28 19:51 ` Nathan Neff
2010-04-28 20:09   ` David Frascone
2010-04-28 20:03 ` Matt Lundin
2010-04-28 21:13 ` Bernt Hansen [this message]

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=87d3xjs2k7.fsf@gollum.intra.norang.ca \
    --to=bernt@norang.ca \
    --cc=dave@frascone.com \
    --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).