On 2/11/2024 9:40 AM, Juri Linkov wrote: >> @@ -725,7 +725,7 @@ outline-insert-heading >> (not (string-match (concat "\\`\\(?:" outline-regexp "\\)") >> (concat head " ")))) >> (setq head (concat head " "))) >> - (unless (bolp) (end-of-line) (newline)) >> + (unless (bolp) (goto-char (pos-bol)) (newline)) > > This looks like a typo. So it is. Fixed.