emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Rainer Thiel <r.thiel@uni-jena.de>
To: "[Orgmode]" <emacs-orgmode@gnu.org>
Subject: Fwd: how to remove automatically an intermediate odt-File
Date: Mon, 14 Sep 2020 08:07:07 +0200	[thread overview]
Message-ID: <CADqAsT=cieuDyfpX-sLiu=yu_Dg4ELZ1kndp_j23AQVOwnkWCg@mail.gmail.com> (raw)
In-Reply-To: <87imchn26k.fsf@kyleam.com>

---------- Forwarded message ---------
Von: Kyle Meyer <kyle@kyleam.com>
Date: So., 13. Sept. 2020 um 17:09 Uhr
Subject: Re: how to remove automatically an intermediate odt-File
To: <r.thiel@uni-jena.de>


Hi Rainer,

Rainer Thiel writes:

> Thanks for the help, but I cannot get it right.  I am always getting
> the message «error: Unknown add-function location ‘org-odt-convert’».

org-odt-convert is defined in ox-odt, so if that library isn't loaded
yet, you'll need to explicitly load it before that snippet:

    (require 'ox-odt)

Or you could use eval-after-load, as in the next snippet.

> Where exactly do I have to place this code snippet?  I am sorry should
> I be overlooking something obvious.

Anywhere in your Emacs customization should do.  If you wanted to avoid
loading ox-odt at startup, you do something like this:

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

> Thank you very much again,

Happy to help, but in the future please keep your replies on list.  That
(1) allows others to help and give feedback and (2) may help other
readers that had the same question as you.


-- 
Prof. Dr. Rainer Thiel
Institut für Altertumswissenschaften
07737 Jena, Germany (EU)
r.thiel@uni-jena.de


      parent reply	other threads:[~2020-09-14  6:10 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
     [not found]   ` <CADqAsTmRxj_CNbHB0XROBKW_uzPHxqsDwJKFD0SyUvtvnHyrdw@mail.gmail.com>
     [not found]     ` <87imchn26k.fsf@kyleam.com>
2020-09-14  6:07       ` Rainer Thiel [this message]

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='CADqAsT=cieuDyfpX-sLiu=yu_Dg4ELZ1kndp_j23AQVOwnkWCg@mail.gmail.com' \
    --to=r.thiel@uni-jena.de \
    --cc=emacs-orgmode@gnu.org \
    /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).