emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Christian Moe <mail@christianmoe.com>
To: Bastien <bzg@gnu.org>
Cc: Bernt Hansen <bernt@norang.ca>,
	emacs-orgmode@gnu.org,
	Carsten Dominik <carsten.dominik@gmail.com>
Subject: Re: Highlighting bug with org-agenda-set-restriction-lock
Date: Sun, 07 Apr 2013 16:05:24 +0200	[thread overview]
Message-ID: <m2r4imxwpn.fsf@christianmoe.com> (raw)
In-Reply-To: <87bo9qu4qq.fsf@bzg.ath.cx>


Didn't `M-RET' on an ordinary line of text also turn that line into a
heading, about the same as doing `C-c *' on that line? At least with
point in the first column (not sure about other cases)? My memory may be
faulty, but lately I've found myself trying to do that, and scratching
my head that it's not working as I thought it did. (I agree, of course,
that the current behavior agrees with the docs, and that the behavior I
seem to remember was redundant, but I also seem to remember it as pretty
handy.)

Yours,
Christian


Bastien writes:

> Hi Bernt,
>
> Bernt Hansen <bernt@norang.ca> writes:
>
>> Org file has this
>>
>> ,----
>> | * One
>> | two
>> | three
>> | four
>> | five
>> `----
>>
>> Put the cursor on first column of line two and hit M-S-RET gives me this
>>
>> ,----
>> | * One
>> | two
>> | * TODO 
>> | three
>> | four
>> | five
>> `----
>
> Okay, I see this too.
>
>> It seems to work correctly when there is no heading above the text
>> (ie. One is not a headline)
>
> That's what I tested after your previous email, yes.
>
> I need to think harder about this and to get more feedback, because
> the new behavior seems the correct one to me.  Also, it is in sync
> with the docstring of `org-insert-heading-respect-content':
>
>   Non-nil means insert new headings after the current subtree.  When
>   nil, the new heading is created directly after the current line.
>                                            ^^^^^
>
> This is about *inserting* a new heading, not about turning the current
> line into a heading (which is fine to have when there is no heading
> above, of course.)  Also, reverting to the old behavior would move
> S-M-RET closer to C-c *.
>
> Let's see if other users find the current behavior annoying, and let
> me know how annoying it is to you!
>
> Thanks,

  parent reply	other threads:[~2013-04-07 14:03 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-04-05 13:12 Highlighting bug with org-agenda-set-restriction-lock Bernt Hansen
2013-04-05 13:20 ` Bernt Hansen
2013-04-05 14:12 ` Carsten Dominik
2013-04-05 14:23   ` Carsten Dominik
2013-04-05 14:46     ` Carsten Dominik
2013-04-05 15:48       ` Bernt Hansen
2013-04-06  5:17         ` Carsten Dominik
2013-04-05 14:46     ` Bernt Hansen
2013-04-05 14:50       ` Carsten Dominik
2013-04-06 20:33       ` Bastien
2013-04-06 21:16         ` Bernt Hansen
2013-04-06 21:25           ` Bastien
2013-04-07  0:29             ` Bernt Hansen
2013-04-07  7:33               ` Bastien
2013-04-07 12:08                 ` Bernt Hansen
2013-04-07 14:05                 ` Christian Moe [this message]
2013-04-07 18:43                   ` Bernt Hansen
2013-04-10 22:36                     ` Bastien

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=m2r4imxwpn.fsf@christianmoe.com \
    --to=mail@christianmoe.com \
    --cc=bernt@norang.ca \
    --cc=bzg@gnu.org \
    --cc=carsten.dominik@gmail.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).