Hi folks, In the last few days hitting M-<enter> on a headline has inserted an empty line between the headline and the new line I'm trying to create. I end up with: ,---- | | * header 1 | | * header 2 | `---- instead of ,---- | | * header 1 | * header 2 | `---- I'm guessing I've mucked something up, but I'm not sure what. Ideas? -- Cameron Horsburgh Blog: http://spiritcry.wordpress.com/
Hi Cameron,
a relatively recent change is causing this new behavior.
The default is now to automatically insert an empty line
if the current headline does also have an empty line before it.
So If you have an empty line before "header 1", then you
will get an empty line before "header 2". However, if you
then go back and remove the empty line before "header 2"
and afterwards insert a "header 3", no empty line will be
inserted.
The same is true for plain list items.
It seems to me that this is the best behavior, but if
you always prefer no empty line, customize the variable
`org-blank-before-new-entry'.
HTH
- Carsten
On Jan 30, 2009, at 1:57 AM, Cameron Horsburgh wrote:
> Hi folks,
>
> In the last few days hitting M-<enter> on a headline has inserted an
> empty line between the headline and the new line I'm trying to
> create. I end up with:
>
> ,----
> |
> | * header 1
> |
> | * header 2
> |
> `----
>
>
> instead of
>
> ,----
> |
> | * header 1
> | * header 2
> |
> `----
>
> I'm guessing I've mucked something up, but I'm not sure what. Ideas?
>
> --
>
> Cameron Horsburgh
>
> Blog: http://spiritcry.wordpress.com/
>
>
> _______________________________________________
> 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
This also happens with lists:
1. item
2. item
but not if you have
1. item
2. item
and then add a third item with M-<enter>
I suppose that's intended? If yes, I don't think it's convenient.
Cheers, Jörg
Cameron Horsburgh wrote:
> Hi folks,
>
> In the last few days hitting M-<enter> on a headline has inserted an
> empty line between the headline and the new line I'm trying to
> create. I end up with:
>
> ,----
> |
> | * header 1
> |
> | * header 2
> |
> `----
>
>
> instead of
>
> ,----
> |
> | * header 1
> | * header 2
> |
> `----
>
> I'm guessing I've mucked something up, but I'm not sure what. Ideas?
>
>
--
Prof. Jörg Hagmann-Zanolari MD
University of Basel
Department of Biomedicine
Institute of Biochemistry and Genetics
Mattenstrasse 28
CH-4058 Basel
Switzerland
Phone +41 (0)61 267 3565
On Fri, Jan 30, 2009 at 07:46:21AM +0100, Carsten Dominik wrote: > Hi Cameron, > > a relatively recent change is causing this new behavior. > > The default is now to automatically insert an empty line > if the current headline does also have an empty line before it. > > So If you have an empty line before "header 1", then you > will get an empty line before "header 2". However, if you > then go back and remove the empty line before "header 2" > and afterwards insert a "header 3", no empty line will be > inserted. > The same is true for plain list items. > > It seems to me that this is the best behavior, but if > you always prefer no empty line, customize the variable > `org-blank-before-new-entry'. Ah, I could SWEAR I tried getting rid of blank lines, but it seems I didn't. Now to customise that variable and report my customisation. The idea you had about org-mode spyware isn't so bad. I'm sure there's a startup somewhere that would pay for that information ;-) -- Cameron Horsburgh Blog: http://spiritcry.wordpress.com/
Hi Jörg, Jörg Hagmann <joerg.hagmann@unibas.ch> writes: > This also happens with lists: > > 1. item > > 2. item > > but not if you have > 1. item > 2. item > and then add a third item with M-<enter> > > I suppose that's intended? If yes, I don't think it's convenient. If you don't like this behavior, you can turn it off by adding the following to your .emacs file: (setq org-blank-before-new-entry '((heading) (plain-list-item))) Best, Matt > > Cheers, Jörg > > Cameron Horsburgh wrote: >> Hi folks, >> >> In the last few days hitting M-<enter> on a headline has inserted an >> empty line between the headline and the new line I'm trying to >> create. I end up with: >> >> ,---- >> | | * header 1 >> | | * header 2 >> | `---- >> >> >> instead of >> >> ,---- >> | | * header 1 >> | * header 2 >> | `---- >> >> I'm guessing I've mucked something up, but I'm not sure what. Ideas? >> >> > > -- > Prof. Jörg Hagmann-Zanolari MD > University of Basel > Department of Biomedicine > Institute of Biochemistry and Genetics > Mattenstrasse 28 > CH-4058 Basel > Switzerland > Phone +41 (0)61 267 3565 > > > > _______________________________________________ > 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