Ihor Radchenko writes:
> See the attached patch where I applied the idea across Org, where it
> made sense. Note that I did not alter `org-odt--export-wrap' because
> `save-buffer' there is applied only when XML files are opened as buffers
> in Emacs, presumably manually. Interactive
David Lukes writes:
> * lisp/ox-odt.el (org-odt-template, org-odt--export-wrap):
> `write-region' instead of `save-buffer'.
>
> `write-file' and `save-buffer' trigger major mode changes, which leads
> to various mode-related hooks being run. This is undesirable: running
> these on generated
Noted, will do!
David
David Lukes writes:
> * lisp/ox-odt.el (org-odt-template, org-odt--export-wrap):
> `write-region' instead of `save-buffer'.
Let us know when you manage to get the FSF assignment.
--
Ihor Radchenko,
Org mode contributor,
Learn more about Org mode at https://orgmode.org/.
Support Org
* lisp/ox-odt.el (org-odt-template, org-odt--export-wrap):
`write-region' instead of `save-buffer'.
`write-file' and `save-buffer' trigger major mode changes, which leads
to various mode-related hooks being run. This is undesirable: running
these on generated files is wasted time and