emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Kaushal Modi <kaushal.modi@gmail.com>
To: emacs-org list <emacs-orgmode@gnu.org>
Subject: Re: Cannot get the EXPORT_FILE_NAME override to work
Date: Thu, 04 May 2017 15:36:56 +0000	[thread overview]
Message-ID: <CAFyQvY1dvjD_JVp3tvhaUGmsEoHQ30e6aYtuBAYkgw2Fy9+kqQ@mail.gmail.com> (raw)
In-Reply-To: <CAFyQvY0n1SQ+oV_vCn+9u9P8T=2mhwKrrMCxbe_+reC9PseutA@mail.gmail.com>

[-- Attachment #1: Type: text/plain, Size: 1412 bytes --]

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

[-- Attachment #2: Type: text/html, Size: 2193 bytes --]

  reply	other threads:[~2017-05-04 15:37 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-05-04 15:30 Cannot get the EXPORT_FILE_NAME override to work Kaushal Modi
2017-05-04 15:36 ` Kaushal Modi [this message]
2017-05-04 16:40 ` Nick Dokos
2017-05-04 17:02   ` Kaushal Modi
2017-05-04 17:33     ` Nick Dokos
2017-05-04 18:28       ` Kaushal Modi
2017-05-04 19:56         ` Kaushal Modi

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CAFyQvY1dvjD_JVp3tvhaUGmsEoHQ30e6aYtuBAYkgw2Fy9+kqQ@mail.gmail.com \
    --to=kaushal.modi@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).