From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nick Dokos Subject: Re: Batch execution and --script Date: Wed, 29 Aug 2012 15:13:31 -0400 Message-ID: <4514.1346267611@alphaville.americas.hpqcorp.net> References: <3611.1346264968@alphaville> Reply-To: nicholas.dokos@hp.com Return-path: Received: from eggs.gnu.org ([208.118.235.92]:39785) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T6nhn-0005yc-1L for emacs-orgmode@gnu.org; Wed, 29 Aug 2012 15:13:36 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1T6nhl-00071I-R1 for emacs-orgmode@gnu.org; Wed, 29 Aug 2012 15:13:34 -0400 Received: from g6t0185.atlanta.hp.com ([15.193.32.62]:26979) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T6nhl-000712-Ll for emacs-orgmode@gnu.org; Wed, 29 Aug 2012 15:13:33 -0400 In-Reply-To: Message from Marcelo de Moraes Serpa of "Wed, 29 Aug 2012 13:35:45 CDT." 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: Marcelo de Moraes Serpa Cc: Org Mode , Nick Daly Marcelo de Moraes Serpa 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.