Hello,
Nicolas Goaziou writes:
>> The problem is due to `eobp' returning t when point is on the last
>> character of the narrowed buffer (as explained in its docstring).
>> Since those `eobp' predicates in `org-insert-heading' are probably
>> there to ensure a newline at the end of the *file*, c
Hello,
Leo Vivier writes:
> * lisp/org.el (org-insert-heading): Check if narrowed before inserting
> newline at eob
>
> When narrowed into an org-buffer (e.g. when capturing), adding a new
> heading with C- or M- on the last line of a
> buffer (i.e. that not without a newline at the end) would r
* lisp/org.el (org-insert-heading): Check if narrowed before inserting
newline at eob
When narrowed into an org-buffer (e.g. when capturing), adding a new
heading with C- or M- on the last line of a
buffer (i.e. that not without a newline at the end) would result in
the insertion of a newline at t
* lisp/org.el (org-insert-heading): Check if narrowed before inserting
newline at eob
When narrowed into an org-buffer (e.g. when capturing), adding a new
heading with C- or M- on the last line of a
buffer (i.e. that not without a newline at the end) would result in
the insertion of a newline at t