From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Berthier Subject: [PATCH] `file-name-base' missing in Emacs < 24.3 Date: Mon, 25 Aug 2014 16:53:01 +0200 Message-ID: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:47727) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XLvdv-0002sO-Am for emacs-orgmode@gnu.org; Mon, 25 Aug 2014 10:53:17 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XLvdp-000665-7z for emacs-orgmode@gnu.org; Mon, 25 Aug 2014 10:53:11 -0400 Received: from mail3-relais-sop.national.inria.fr ([192.134.164.104]:31519) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XLvdp-00065f-0S for emacs-orgmode@gnu.org; Mon, 25 Aug 2014 10:53:05 -0400 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: emacs-orgmode@gnu.org --=-=-= Content-Type: text/plain Hello, A recent patch introduced a call to `file-name-base' in contributed "ox-bibtex.el"; however, this function was only introduced in Emacs version 24.3. The attached patch is a basic fix for that. --=-=-= Content-Type: text/x-patch Content-Disposition: attachment; filename=0001-contrib-lisp-ox-bibtex.el-Fixup-for-Emacs-24.3.patch >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 --=-=-= Content-Type: text/plain Regards, -- Nicolas Berthier FSF Member #7975 --=-=-=--