From 362e07699a767ea16d99a7f67f6fcb92d1521e0c Mon Sep 17 00:00:00 2001 From: Nicolas Berthier Date: Mon, 25 Aug 2014 16:01:20 +0200 Subject: [PATCH] contrib/lisp/ox-bibtex.el: Fixup for Emacs < 24.3 * contrib/lisp/ox-bibtex.el (org-bibtex-process-bib-files): Avoid using `file-name-base', only available since Emacs version 24.3. --- contrib/lisp/ox-bibtex.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/contrib/lisp/ox-bibtex.el b/contrib/lisp/ox-bibtex.el index 7cb8972..4016480 100644 --- a/contrib/lisp/ox-bibtex.el +++ b/contrib/lisp/ox-bibtex.el @@ -200,7 +200,8 @@ Return new parse tree." (file-name-sans-extension file) file)) ;; Outpufiles of bibtex2html will be put into current working directory ;; so define a variable for this. - (setq out-file (file-name-base file)) + (setq out-file (file-name-sans-extension + (file-name-nondirectory file))) ;; limit is set: collect citations throughout the document ;; in TEMP-FILE and pass it to "bibtex2html" as "-citefile" ;; argument. -- 2.0.0.rc4