Heading structure commands !13

merged merged by cmc on 2026-10-05 04:08 UTC · krz/orgstar:phase2-structure into main

Discussion

cmc

Phase 2, plan D1.

  • EmacsBuffer: whole-text buffer with Emacs point/marker rules and org's outline primitives, for porting multi-line commands; commitBuffer gives one minimal edit.
  • Ported from Org 9.8.7: insert heading (M-RET, C-RET, M-S-RET), move subtree, promote/demote subtree, heading motion (C-c C-n/p/f/b/u, skipping folded headings), set tags (C-c C-q).
  • Prompts: onPrompt in the editor, answered in an echo-area field.
  • Oracle matches Emacs on all variants, every caret, and on notes, work-notes and cleberg.net content; the oracle now unfolds after #+STARTUP.

229 tests pass.