From mboxrd@z Thu Jan 1 00:00:00 1970 From: Matt Price Subject: possible bug in ox-odt.el? Date: Sun, 25 May 2014 11:18:33 -0400 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:54318) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WoaC3-0001KH-Ew for emacs-orgmode@gnu.org; Sun, 25 May 2014 11:18:36 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WoaC2-000137-JM for emacs-orgmode@gnu.org; Sun, 25 May 2014 11:18:35 -0400 Received: from mail-qc0-x230.google.com ([2607:f8b0:400d:c01::230]:65324) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WoaC2-000132-Ei for emacs-orgmode@gnu.org; Sun, 25 May 2014 11:18:34 -0400 Received: by mail-qc0-f176.google.com with SMTP id r5so11001228qcx.35 for ; Sun, 25 May 2014 08:18:33 -0700 (PDT) List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org 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