* Questions about creating new nodes (headings)
@ 2010-04-28 17:41 David Frascone
2010-04-28 19:51 ` Nathan Neff
` (2 more replies)
0 siblings, 3 replies; 5+ messages in thread
From: David Frascone @ 2010-04-28 17:41 UTC (permalink / raw)
To: emacs-orgmode
[-- Attachment #1.1: Type: text/plain, Size: 1075 bytes --]
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 :)
***** 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.
[-- Attachment #1.2: Type: text/html, Size: 1176 bytes --]
[-- Attachment #2: Type: text/plain, Size: 201 bytes --]
_______________________________________________
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Questions about creating new nodes (headings)
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
2 siblings, 1 reply; 5+ messages in thread
From: Nathan Neff @ 2010-04-28 19:51 UTC (permalink / raw)
To: David Frascone; +Cc: emacs-orgmode
On Wed, Apr 28, 2010 at 12:41 PM, David Frascone <dave@frascone.com> wrote:
> 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?
I think you want to customize the org-blank-before-new-entry variable.
http://orgmode.org/worg/org-faq.php#blank-line-after-headlines-and-list-items
<snip>
***** 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.
I think this is an Aquamacs thing -- Aquamacs overrides the C-Ret binding with
some cua-set-rectangle-mark function that I know nothing about.
What I have found is that C-Ret runs "org-insert-heading-respect-content",
(except on Aquamacs).
Anyway, M-Ret will do the *same thing* (to the best of my knowledge)
/if/ you have this setting:
(setq org-insert-heading-respect-content t)
And I think that most people that use org-mode do indeed set
org-insert-heading-respect-content.
So, I don't bother w/C-Ret, and just use M-Ret all the time, after
setting the above variable to 't
HTH,
--Nate
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Questions about creating new nodes (headings)
2010-04-28 17:41 Questions about creating new nodes (headings) David Frascone
2010-04-28 19:51 ` Nathan Neff
@ 2010-04-28 20:03 ` Matt Lundin
2010-04-28 21:13 ` Bernt Hansen
2 siblings, 0 replies; 5+ messages in thread
From: Matt Lundin @ 2010-04-28 20:03 UTC (permalink / raw)
To: David Frascone; +Cc: emacs-orgmode
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 :)
See the docstring for org-blank-before-new-entry:
- i.e., "C-h v org-blank-before-new-entry"
If you never want a blank line, the simplest setting is:
(setq org-blank-before-new-entry nil)
> ***** 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.
I cannot reproduce this behavior. C-RET correctly creates a new headline
beneath the current entry.
Best,
Matt
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Questions about creating new nodes (headings)
2010-04-28 19:51 ` Nathan Neff
@ 2010-04-28 20:09 ` David Frascone
0 siblings, 0 replies; 5+ messages in thread
From: David Frascone @ 2010-04-28 20:09 UTC (permalink / raw)
To: Nathan Neff; +Cc: emacs-orgmode
[-- Attachment #1.1: Type: text/plain, Size: 1428 bytes --]
On Wed, Apr 28, 2010 at 1:51 PM, Nathan Neff <nathan.neff@gmail.com> wrote:
>
>
> I think you want to customize the org-blank-before-new-entry variable.
>
>
> http://orgmode.org/worg/org-faq.php#blank-line-after-headlines-and-list-items
>
Nice! That almost fixed it. But, I think the documentation is a bit
wrong. Try this:
* Item One
* Item Two
* Item Three
* Item Four
* Item Five
Try to hit M-<RET> at the end of Item Three. Even though there are no
blanks before Three, it will still add the blank. It looks forward as well
as backward.
M-<RET> after Item Four will also add the blank. It's not a big deal, just
a slight documentation issue. Now that I know how it behaves, I can make it
do what I want easily :)
>
> I think this is an Aquamacs thing -- Aquamacs overrides the C-Ret binding
> with
> some cua-set-rectangle-mark function that I know nothing about.
>
> What I have found is that C-Ret runs "org-insert-heading-respect-content",
> (except on Aquamacs).
>
> Anyway, M-Ret will do the *same thing* (to the best of my knowledge)
> /if/ you have this setting:
>
> (setq org-insert-heading-respect-content t)
>
> And I think that most people that use org-mode do indeed set
> org-insert-heading-respect-content.
>
> So, I don't bother w/C-Ret, and just use M-Ret all the time, after
> setting the above variable to 't
> HTH,
>
>
Perfect! Fixed and fixed!
We can consider this thread closed!
-Dave
[-- Attachment #1.2: Type: text/html, Size: 2147 bytes --]
[-- Attachment #2: Type: text/plain, Size: 201 bytes --]
_______________________________________________
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Questions about creating new nodes (headings)
2010-04-28 17:41 Questions about creating new nodes (headings) David Frascone
2010-04-28 19:51 ` Nathan Neff
2010-04-28 20:03 ` Matt Lundin
@ 2010-04-28 21:13 ` Bernt Hansen
2 siblings, 0 replies; 5+ messages in thread
From: Bernt Hansen @ 2010-04-28 21:13 UTC (permalink / raw)
To: David Frascone; +Cc: emacs-orgmode
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
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2010-04-28 21:14 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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
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).