Re: [PATCH] ox-odt: Prevent auto-formatting in export buffers

2023-04-02 Thread Ihor Radchenko
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

Re: [PATCH] ox-odt: Prevent auto-formatting in export buffers

2023-03-18 Thread Ihor Radchenko
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

Re: [PATCH] ox-odt: Prevent auto-formatting in export buffers

2022-10-03 Thread David Lukeš
Noted, will do! David

Re: [PATCH] ox-odt: Prevent auto-formatting in export buffers

2022-10-02 Thread Ihor Radchenko
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

[PATCH] ox-odt: Prevent auto-formatting in export buffers

2022-10-01 Thread David Lukes
* 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