From: Nick Dokos <nicholas.dokos@hp.com>
To: Marcelo de Moraes Serpa <celoserpa@gmail.com>
Cc: Org Mode <emacs-orgmode@gnu.org>, Nick Daly <nick.m.daly@gmail.com>
Subject: Re: Batch execution and --script
Date: Wed, 29 Aug 2012 15:13:31 -0400 [thread overview]
Message-ID: <4514.1346267611@alphaville.americas.hpqcorp.net> (raw)
In-Reply-To: Message from Marcelo de Moraes Serpa <celoserpa@gmail.com> of "Wed, 29 Aug 2012 13:35:45 CDT." <CACHMzOGCPE0rtozs+oxXRdfvibrc-Sw4M9cigEq9PcL17iJnuA@mail.gmail.com>
Marcelo de Moraes Serpa <celoserpa@gmail.com> wrote:
> Is that somewhere in the manual or Worg? Perhaps it should be added. I
> never contributed to Worg, I will look into how tonight.
The --script is described in the emacs manual, but no example is
provided. Adding it to Worg (maybe with a two-stage explanation:
trivial "Hello World" example, followed by an org-specific example)
is a good idea.
For contributing to Worg, see the "Maintenance of Worg" section:
http://orgmode.org/worg/#sec-4
> This is a subject that should be explored more. I see a lot of
> potential in having CLI .el scripts (i.e taking the emacs GUI out of
> the equation).
Note that you could do this even before --script was invented:
emacs --batch -l /path/to/somefile.el
is exactly equivalent to the --script invocation of somefile.el, which
in turn is more or less[fn:1] equivalent to stuffing the above command
line into a bash script file, making *that* executable and running it.
The --script method is a bit more convenient but it is just "syntactic
sugar".
Nick
Footnotes:
[fn:1] There is an extra fork/exec of bash in this method, but that's about it.
prev parent reply other threads:[~2012-08-29 19:13 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-08-29 15:47 Batch execution and --script Marcelo de Moraes Serpa
2012-08-29 16:42 ` Nick Daly
2012-08-29 17:50 ` Marcelo de Moraes Serpa
2012-08-30 5:34 ` Bastien
2012-11-28 2:18 ` Bernt Hansen
2012-12-04 14:25 ` Bastien
2012-08-29 18:29 ` Nick Dokos
2012-08-29 18:35 ` Marcelo de Moraes Serpa
2012-08-29 18:59 ` Thorsten Jolitz
2012-08-29 19:13 ` Nick Dokos [this message]
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=4514.1346267611@alphaville.americas.hpqcorp.net \
--to=nicholas.dokos@hp.com \
--cc=celoserpa@gmail.com \
--cc=emacs-orgmode@gnu.org \
--cc=nick.m.daly@gmail.com \
/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).