emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* possible bug in ox-odt.el?
@ 2014-05-25 15:18 Matt Price
  2014-05-26  3:32 ` Nick Dokos
  0 siblings, 1 reply; 2+ messages in thread
From: Matt Price @ 2014-05-25 15:18 UTC (permalink / raw)
  To: Org Mode

Hello,

for some time I've noticed that the export to odt options were not
being offered in the export menu options (C-c E-c), even though I have
(require ox-odt) in my startup file.  Attempts to evaluate ox-odt
manually failed with this error:

defconst: Wrong type argument: stringp, nil

I've tracked the problem down to org-odt-lib-dir:

(defconst org-odt-lib-dir
  (file-name-directory load-file-name)
  "Location of ODT exporter.
Use this to infer values of `org-odt-styles-dir' and
`org-odt-schema-dir'.")


from what I can tell, 'load-file-name' appears to be nil.  Replacing

  (file-name-directory load-file-name)

with a string like:

  "/home/matt/src/org-mode/lisp/ox-odt.el"

fixes the problem for me, but that doesn't seem like a very robust
solution.  I don't understand emacs internals very well, but is this
possibly a bug in ox-odt.el, or more likely something in my own
(poorly maintained) setup files?

Thanks,

Matt

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2014-05-26  3:33 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-05-25 15:18 possible bug in ox-odt.el? Matt Price
2014-05-26  3:32 ` Nick Dokos

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).