From f60b3b4f2d9159ac367c08bfb7e024d0faeb1d3b Mon Sep 17 00:00:00 2001 Message-ID: From: Ihor Radchenko Date: Sat, 9 Dec 2023 11:37:02 +0100 Subject: [PATCH 1/2] lisp/ox-odt.el: Do not open the generated exported file in the background * lisp/ox-odt.el (org-odt--export-wrap): Do not open the exported file in the background. Such behavior is not consistent with the other export backends and is not documented (users don't know about it). * etc/ORG-NEWS (ODT export no longer opens the exported file in the background): Document the breaking change. --- etc/ORG-NEWS | 7 +++++++ lisp/ox-odt.el | 3 --- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/etc/ORG-NEWS b/etc/ORG-NEWS index 59c45b2aa..439323f00 100644 --- a/etc/ORG-NEWS +++ b/etc/ORG-NEWS @@ -13,6 +13,13 @@ Please send Org bug reports to mailto:emacs-orgmode@gnu.org. * Version 9.7 (not released yet) ** Important announcements and breaking changes +*** ODT export no longer opens the exported file in the background + +ODT exporter used to open the exported file in ~archive-mode~ "for +examination". This was not documented, was done in the background, +and is not consistent with all other export backends. Now, this +feature is removed. + *** ~org-src-associate-babel-session~ and ~org-babel--associate-session~ are now obsolete This functionality is not documented, rarely used and can be achieved diff --git a/lisp/ox-odt.el b/lisp/ox-odt.el index 8d3a48394..e51547f48 100644 --- a/lisp/ox-odt.el +++ b/lisp/ox-odt.el @@ -4081,9 +4081,6 @@ (defmacro org-odt--export-wrap (out-file &rest body) (message "Created %s" (expand-file-name target)) ;; Cleanup work directory and work files. (funcall --cleanup-xml-buffers) - ;; Open the OpenDocument file in archive-mode for - ;; examination. - (find-file-noselect target t) ;; Return exported file. (cond ;; Case 1: Conversion desired on exported file. Run the -- 2.42.0