From: Nick Dokos <ndokos@gmail.com>
To: emacs-orgmode@gnu.org
Subject: Re: possible bug in ox-odt.el?
Date: Sun, 25 May 2014 23:32:32 -0400 [thread overview]
Message-ID: <87vbst1agf.fsf@gmail.com> (raw)
In-Reply-To: CAN_Dec8TMbmHvo3Ri6HMdFNSW52CCjrrE72TUY8tiEFKT-N12g@mail.gmail.com
Matt Price <moptop99@gmail.com> writes:
> 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:
>
Not sure what that means: do you mean "load"?
> 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?
>
load-file-name is a variable that's supposed to hold the full name of
the file being loaded by `load'. It's going to be nil most of the time.
It's only while a file is being loaded that it assumes a non-nil value.
Try M-x load-file RET /path/to/ox-odt.el RET and see if you get an
error. And maybe update org.
--
Nick
prev parent reply other threads:[~2014-05-26 3:33 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-05-25 15:18 possible bug in ox-odt.el? Matt Price
2014-05-26 3:32 ` Nick Dokos [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=87vbst1agf.fsf@gmail.com \
--to=ndokos@gmail.com \
--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).