Browse Source

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.
Nicolas Berthier 7 years ago
parent
commit
b31a5152c8
1 changed files with 2 additions and 1 deletions
  1. 2 1
      contrib/lisp/ox-bibtex.el

+ 2 - 1
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.