From: Nick Dokos <nicholas.dokos@hp.com>
To: emacs-orgmode@gnu.org
Subject: Re: Bug in behavior of M-RET with latest Org-mode
Date: Mon, 25 Feb 2013 00:13:06 -0500 [thread overview]
Message-ID: <14212.1361769186@alphaville> (raw)
In-Reply-To: Message from "John Wiegley" <johnw@newartisans.com> of "Sun, 24 Feb 2013 22:25:41 CST." <m2d2vp3tq2.fsf@newartisans.com>
John Wiegley <johnw@newartisans.com> wrote:
> In Org I've liked that fact that hitting M-RET in a list of headlines which
> have no intervening whitespace, will add a new headline without whitespace.
> Example:
>
> * One
> * Two<cursor>
> * Three
>
> If hit M-RET at the <cursor>, I'll would get:
>
> * One
> * Two
> * <cursor>
> * Three
>
> With the latest Org, I get:
>
> * One
> * Two
> * <cursor>
>
> * Three
>
> Is this just a regression, or has the core behavior been changed to do this?
> Is there a new variable I need to tweak to get the old behavior?
>
This I think:
,----
| org-blank-before-new-entry is a variable defined in `org.el'.
| Its value is ((heading) (plain-list-item))
| Original value was
| ((heading . auto)
| (plain-list-item . auto))
|
|
| Documentation:
| Should `org-insert-heading' leave a blank line before new heading/item?
| The value is an alist, with `heading' and `plain-list-item' as CAR,
| and a boolean flag as CDR. The cdr may also be the symbol `auto', in
| which case Org will look at the surrounding headings/items and try to
| make an intelligent decision whether to insert a blank line or not.
|
| For plain lists, if the variable `org-empty-line-terminates-plain-lists' is
| set, the setting here is ignored and no empty line is inserted, to avoid
| breaking the list structure.
`----
Given that this was introduced a long time ago however, I'm not sure what
caused the recent change in behavior:
,----
| $ git show 15ad97ac
| commit 15ad97ac3ce0857b92d94cc02d15025fcce05b7d
| Author: Carsten Dominik <carsten.dominik@gmail.com>
| Date: Thu Jan 8 09:30:55 2009 +0100
|
| Editing: Automatic empty lines before new entries.
|
| The variable `org-blank-before-new-entry' regulates if Org should
| insert a blank line before a new entry, when making a new headline or
| plain list item. Up to now, the possible values in each case where t
| or nil, i.e. unconditionally do or don't insert a blank line.
|
| Now each setting can also be `auto'. If this is the case, Org will
| look if the current entry, of which the command creates a sibling,
| does have a blank line before it. If yes, it will also make a blank
| line. If not, it will not. This seems so useful that I have made
| this behavior the default.
`----
Nick
next prev parent reply other threads:[~2013-02-25 5:13 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-07-10 17:41 Problem with org-babel and shell scripts John Wiegley
2012-07-10 20:08 ` Bastien
[not found] ` <johnw@newartisans.com>
2012-07-10 18:53 ` Nick Dokos
2013-02-25 5:13 ` Nick Dokos [this message]
2013-02-25 5:39 ` Bug in behavior of M-RET with latest Org-mode Nick Dokos
2013-03-03 17:07 ` Bastien
-- strict thread matches above, loose matches on Subject: below --
2013-02-25 4:25 John Wiegley
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=14212.1361769186@alphaville \
--to=nicholas.dokos@hp.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).