diff options
author | Nicolas Berthier <nberth@member.fsf.org> | 2014-08-25 16:01:20 +0200 |
---|---|---|
committer | Bastien Guerry <bzg@altern.org> | 2014-12-01 16:52:20 +0100 |
commit | b31a5152c8ede83ed7eaaa7de5bafb32286a825d (patch) | |
tree | dae76bd6fa69b16bdfd6916bc55cf36771c095ed | |
parent | c4fd9e415a54e16c3bf2de88133967d15cb255bb (diff) | |
download | org-mode-b31a5152c8ede83ed7eaaa7de5bafb32286a825d.tar.gz |
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.
-rw-r--r-- | contrib/lisp/ox-bibtex.el | 3 |
1 files changed, 2 insertions, 1 deletions
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. |