From mboxrd@z Thu Jan 1 00:00:00 1970 From: Kaushal Modi Subject: Re: Cannot get the EXPORT_FILE_NAME override to work Date: Thu, 04 May 2017 15:36:56 +0000 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=94eb2c1a1a40a1b7cd054eb48b56 Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:60706) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1d6IoY-0006u9-7k for emacs-orgmode@gnu.org; Thu, 04 May 2017 11:37:16 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1d6IoX-000503-2V for emacs-orgmode@gnu.org; Thu, 04 May 2017 11:37:10 -0400 Received: from mail-lf0-x230.google.com ([2a00:1450:4010:c07::230]:33831) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1d6IoW-0004zZ-PT for emacs-orgmode@gnu.org; Thu, 04 May 2017 11:37:08 -0400 Received: by mail-lf0-x230.google.com with SMTP id t144so10329855lff.1 for ; Thu, 04 May 2017 08:37:08 -0700 (PDT) In-Reply-To: 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" To: emacs-org list --94eb2c1a1a40a1b7cd054eb48b56 Content-Type: text/plain; charset=UTF-8 Here's the motive for this question. I am working on this project ( https://github.com/kaushalmodi/eless ) that is basically a bash script. I have eless.org and am tangling the bash script eless from that, plus all the documentation (HTML, Info, README.md, CONTRIBUTING.md, etc.). The publish project alist is here: https://github.com/kaushalmodi/eless/blob/master/build/build.el If EXPORT_FILE_NAME starting working for me, I would not need these completion functions for publish that just do the file renaming: (defun eless/readme-completion-fn (proj-plist) (let* ((pub-dir (plist-get proj-plist :publishing-directory)) (before-name (concat pub-dir "eless.md")) (after-name (concat pub-dir "README.md"))) (rename-file before-name after-name :ok-if-already-exists))) (defun eless/contributing-completion-fn (proj-plist) (let* ((pub-dir (plist-get proj-plist :publishing-directory)) (before-name (concat pub-dir "eless.md")) (after-name (concat pub-dir "CONTRIBUTING.md"))) (rename-file before-name after-name :ok-if-already-exists))) (defun eless/wiki-tcsh-completion-fn (proj-plist) (let* ((pub-dir (plist-get proj-plist :publishing-directory)) (before-name (concat pub-dir "eless.md")) (after-name (concat pub-dir "Example eless Config in tcsh.md"))) (rename-file before-name after-name :ok-if-already-exists))) -- Kaushal Modi --94eb2c1a1a40a1b7cd054eb48b56 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Here's the motive for this question.

I am working on this project (=C2=A0https://github.com/kaushalmodi/eless=C2=A0) that is basical= ly a bash script.

I have eless.org and am tangling the bash script eless from that, plus all= the documentation (HTML, Info, README.md, CONTRIBUTING.md, etc.). The publ= ish project alist is here:=C2=A0https://github.com/kaushalmodi/eless/blob/= master/build/build.el

If EXPORT_FILE_NAME star= ting working for me, I would not need these completion functions for publis= h that just do the file renaming:

(defun eles= s/readme-completion-fn (proj-plist)
=C2=A0 (let* ((pub-dir (plist= -get proj-plist :publishing-directory))
=C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0(before-name (concat pub-dir "el= ess.md"))
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0(after-name = (concat pub-dir "README.md")))
=C2=A0 =C2=A0 (rename-fi= le before-name after-name :ok-if-already-exists)))

(defun eless/contributing-completion-fn (proj-plist)
=C2=A0 (let= * ((pub-dir (plist-get proj-plist :publishing-directory))
=C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0(before-name (concat pub-dir "eless.md"))
=C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0(after-name (concat pub-dir "CONTRIBUTING.md")))
= =C2=A0 =C2=A0 (rename-file before-name after-name :ok-if-already-exists)))<= /div>

(defun eless/wiki-tcsh-completion-fn (proj-plist)<= /div>
=C2=A0 (let* ((pub-dir (plist-get proj-plist :publishing-director= y))
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0(before-name (concat pub-di= r "eless.md"))
=C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0(after-name (concat pub-dir "Example eless = Config in tcsh.md")))
=C2=A0 = =C2=A0 (rename-file before-name after-name :ok-if-already-exists)))

--

Kaushal Modi

--94eb2c1a1a40a1b7cd054eb48b56--