emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* 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
@ 2022-07-06 16:40 Guillaume MULLER
  2022-07-07 11:01 ` Ihor Radchenko
  0 siblings, 1 reply; 6+ messages in thread
From: Guillaume MULLER @ 2022-07-06 16:40 UTC (permalink / raw)
  To: emacs-orgmode


[-- 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 --]

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

end of thread, other threads:[~2022-07-09  3:44 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-07-06 16:40 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 Guillaume MULLER
2022-07-07 11:01 ` 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

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