emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Kyle Meyer <kyle@kyleam.com>
To: r.thiel@uni-jena.de
Cc: emacs-orgmode@gnu.org
Subject: Re: how to remove automatically an intermediate odt-File
Date: Sun, 13 Sep 2020 01:14:50 -0400	[thread overview]
Message-ID: <87pn6qmf5h.fsf@kyleam.com> (raw)
In-Reply-To: <CADqAsT=W2hqsduXuW2N3H+5fdEFhqdVwgBJ9aLFk4WhOQMs9wA@mail.gmail.com>

Rainer Thiel writes:

> I have set org-odt-preferred-output-format to docx, which works fine.
> How can I have the intermediate odt-file removed automatically after
> the docx-file is created?

Here's one (lightly tested) option:

    (advice-add :after #'org-odt-convert
                (lambda (&optional in-file &rest _)
                  (when in-file
                    (delete-file in-file)))
                '((name . "org-odt-convert--delete-odt")))


  reply	other threads:[~2020-09-13  5:15 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-09-09 14:42 how to remove automatically an intermediate odt-File Rainer Thiel
2020-09-13  5:14 ` Kyle Meyer [this message]
     [not found]   ` <CADqAsTmRxj_CNbHB0XROBKW_uzPHxqsDwJKFD0SyUvtvnHyrdw@mail.gmail.com>
     [not found]     ` <87imchn26k.fsf@kyleam.com>
2020-09-14  6:07       ` Fwd: " Rainer Thiel

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87pn6qmf5h.fsf@kyleam.com \
    --to=kyle@kyleam.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=r.thiel@uni-jena.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).