From: Guillaume MULLER <guillaume.muller@univ-st-etienne.fr>
To: emacs-orgmode@gnu.org
Subject: org-meta-return / org-insert-heading does not insert new heading in middle of heading even id org-M-RET-may-split-line is set
Date: Wed, 6 Jul 2022 18:40:27 +0200 [thread overview]
Message-ID: <f4488fe3-5018-7caa-997e-8f4ebe6d8ce2@univ-st-etienne.fr> (raw)
[-- Attachment #1.1: Type: text/plain, Size: 1289 bytes --]
Hi,
I thought I already reported this bug, but I cannot find it anymore in the mailing list archives (https://lists.gnu.org/archive/cgi-bin/namazu.cgi?query=org-meta-return&submit=Search%21&idxname=emacs-orgmode&max=20&result=normal&sort=date%3Alate) nor in the accepted bugs (https://updates.orgmode.org/?sort-bugs-by=date#bugs) so I'm reporting it (again?). Please forgive me if I'm duplicating it, but FYI it is still present today.
I'm using DoomEmacs (latest), which uses "Org mode version 9.6 (9.6-??-e9da29b6f)".
When the cursor is in the middle of a heading (<> denots the cursor):
* heading number<> one
Hiting Meta-Ret results in:
* heading number one
* <>
Whereas it should result in:
* heading number
* <>one
At least if org-M-RET-may-split-line is set correctly.
By default, on my config org-M-RET-may-split-line is set to 'nil', but changing to whatever ("Always" or (default . t)) results in the same behavior.
The documentation for org-meta-return points to org-insert-heading which says:
"If point is in the middle of a line, split it and create a new headline with the text in the current line after point (see org-M-RET-may-split-line on how to modify this behavior)."
So this is actually a bug.
Cheers, keep up the good work!
GM
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 236 bytes --]
next reply other threads:[~2022-07-06 16:41 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-07-06 16:40 Guillaume MULLER [this message]
2022-07-07 11:01 ` org-meta-return / org-insert-heading does not insert new heading in middle of heading even id org-M-RET-may-split-line is set Ihor Radchenko
2022-07-07 15:52 ` Guillaume MULLER
2022-07-08 4:49 ` Ihor Radchenko
2022-07-08 13:52 ` Guillaume MULLER
2022-07-09 3:44 ` Ihor Radchenko
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=f4488fe3-5018-7caa-997e-8f4ebe6d8ce2@univ-st-etienne.fr \
--to=guillaume.muller@univ-st-etienne.fr \
--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).