emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Empty lines between headers
@ 2009-01-30  0:57 Cameron Horsburgh
  2009-01-30  6:46 ` Carsten Dominik
  2009-01-30  7:45 ` Jörg Hagmann
  0 siblings, 2 replies; 5+ messages in thread
From: Cameron Horsburgh @ 2009-01-30  0:57 UTC (permalink / raw)
  To: emacs-orgmode

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/

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Empty lines between headers
  2009-01-30  0:57 Empty lines between headers Cameron Horsburgh
@ 2009-01-30  6:46 ` Carsten Dominik
  2009-01-30  8:06   ` Cameron Horsburgh
  2009-01-30  7:45 ` Jörg Hagmann
  1 sibling, 1 reply; 5+ messages in thread
From: Carsten Dominik @ 2009-01-30  6:46 UTC (permalink / raw)
  To: Cameron Horsburgh; +Cc: emacs-orgmode

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

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Empty lines between headers
  2009-01-30  0:57 Empty lines between headers Cameron Horsburgh
  2009-01-30  6:46 ` Carsten Dominik
@ 2009-01-30  7:45 ` Jörg Hagmann
  2009-01-30 16:32   ` Matthew Lundin
  1 sibling, 1 reply; 5+ messages in thread
From: Jörg Hagmann @ 2009-01-30  7:45 UTC (permalink / raw)
  To: Cameron Horsburgh; +Cc: 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

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Empty lines between headers
  2009-01-30  6:46 ` Carsten Dominik
@ 2009-01-30  8:06   ` Cameron Horsburgh
  0 siblings, 0 replies; 5+ messages in thread
From: Cameron Horsburgh @ 2009-01-30  8:06 UTC (permalink / raw)
  To: Carsten Dominik; +Cc: emacs-orgmode

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/

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Empty lines between headers
  2009-01-30  7:45 ` Jörg Hagmann
@ 2009-01-30 16:32   ` Matthew Lundin
  0 siblings, 0 replies; 5+ messages in thread
From: Matthew Lundin @ 2009-01-30 16:32 UTC (permalink / raw)
  To: Jörg Hagmann; +Cc: emacs-orgmode


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

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2009-01-30 16:32 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-01-30  0:57 Empty lines between headers Cameron Horsburgh
2009-01-30  6:46 ` Carsten Dominik
2009-01-30  8:06   ` Cameron Horsburgh
2009-01-30  7:45 ` Jörg Hagmann
2009-01-30 16:32   ` Matthew Lundin

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).