Morgan Smith <[email protected]> writes:

> I made a change to the first patch so now the buffer position of the
> local-variables is saved and used to put them back when the buffer is
> unmodified.
>
> I've also tacked on a new patch to make the macro hygienic.
>
> Other then that everything is the same.

Thanks!

> Subject: [PATCH 1/5] Preserve "Local Variables" block without preserving
>  following text
>
> * lisp/org-macs.el (org-preserve-local-variables): Extract "Local
> Variables" block exactly to prevent preserving text that follows the
> block.

Please add Reported-by: and Link: lines to the commit message.

> Subject: [PATCH 3/5] Preserve "Local Variables" block when inserting a heading
>
> *lisp/org.el (org-insert-heading): When we are respecting content,

"*lisp..." -> "* lisp..."

Also, please try the original reproducer and then undo several
times. You will see mess.

-- 
Ihor Radchenko // yantar92,
Org mode maintainer,
Learn more about Org mode at <https://orgmode.org/>.
Support Org development at <https://liberapay.com/org-mode>,
or support my work at <https://liberapay.com/yantar92>

Reply via email to