emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Kevin Van Horn <kevin.vanhorn@themodellers.com>
To: Bastien <bzg@gnu.org>
Cc: "'emacs-orgmode@gnu.org'" <emacs-orgmode@gnu.org>
Subject: Re: M-<RET> does not work as described in the manual
Date: Mon, 26 May 2014 23:07:49 +0000	[thread overview]
Message-ID: <5584B0454A4CFE4C8A3BF4F54273C67EC0A6D320@S2376M11.CDSmail.pvt> (raw)
In-Reply-To: <87sinx3yyz.fsf@bzg.ath.cx>

[-- Attachment #1: Type: text/plain, Size: 2004 bytes --]

Thank you for your help -- I have been beating my head against this for quite some time. Putting the cursor at the beginning of the line does in fact work.

I'm going to argue that there is still a problem here, though. Here's what I read at http://orgmode.org/manual/Structure-editing.html:

"If the command is used at the beginning of a headline, the new headline is created before the current line."

That doesn't say "beginning of line". I think where my cursor was sitting was the only reasonable interpretation of "beginning of headline". Furthermore, there's nothing in that paragraph that tells me to expect the behavior I did see.

The behavior I encountered is confusing because it is discontinuous -- as demonstrated in the attached images, if I have the cursor one character into the heading, then everything after the cursor goes on the lower line and everything before the cursor goes on the upper line. If I move the cursor one character to the left then this is suddenly reversed. And if I move the cursor all the way to the beginning of the line we revert back to the "everything after the cursor goes on the lower line" behavior.

Kevin S. Van Horn, Ph.D. | Principal Engineer
D: 801.290.3823 | Salt Lake City Office (Mountain Time)

-----Original Message-----
From: Bastien Guerry [mailto:bastienguerry@gmail.com] On Behalf Of Bastien
Sent: Sunday, May 25, 2014 11:12 PM
To: Kevin Van Horn
Cc: 'emacs-orgmode@gnu.org'
Subject: Re: M-<RET> does not work as described in the manual

Hi Kevin,

Kevin Van Horn <kevin.vanhorn@themodellers.com> writes:

> The attached PNG files illustrate the problem, for two different
> cases: one without any notes under the heading, and one with notes 
> under the heading.

In the screenshots, I see that the point is not really at the start of the line when you hit M-RET, but at the start of the heading's content.
You need to put the point at the start of the line.

Or am I missing something?


[-- Attachment #2: before.png --]
[-- Type: image/png, Size: 36676 bytes --]

[-- Attachment #3: after.png --]
[-- Type: image/png, Size: 36746 bytes --]

  reply	other threads:[~2014-05-26 23:09 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-05-18 22:02 M-<RET> does not work as described in the manual Kevin Van Horn
2014-05-20 17:24 ` Igor Sosa Mayor
2014-05-21  1:46 ` Bastien
2014-05-22 16:51   ` Kevin Van Horn
2014-05-22 17:01     ` Bastien
2014-05-22 18:16       ` Kevin Van Horn
2014-05-23  5:34         ` Bastien
2014-05-23 22:02         ` Kevin Van Horn
2014-05-24  4:23           ` Bastien
2014-05-26  3:26             ` Kevin Van Horn
2014-05-26  5:12               ` Bastien
2014-05-26 23:07                 ` Kevin Van Horn [this message]
2014-05-27  1:04                   ` Charles Millar
2014-05-29 17:54                   ` 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:

  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=5584B0454A4CFE4C8A3BF4F54273C67EC0A6D320@S2376M11.CDSmail.pvt \
    --to=kevin.vanhorn@themodellers.com \
    --cc=bzg@gnu.org \
    --cc=emacs-orgmode@gnu.org \


* 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


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