[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Emacs as a command line tool

From: Kevin Rodgers
Subject: Re: Emacs as a command line tool
Date: Wed, 18 Feb 2004 17:29:00 -0700
User-agent: Mozilla/5.0 (X11; U; SunOS i86pc; en-US; rv: Gecko/20020406 Netscape6/6.2.2

Pascal Bourguignon wrote:

Well, it has:

       -f function
               Execute the lisp function function.

to invoke easily a simple function.

But the problem is that  most functions and commands existing in emacs
are designed to  be passed parameters or to  be _interactive_.  If you
program your own batch functions, you can then invoke them easily with
this -f option (and with -batch and -l).

--eval '(function (quote symbol) "string" 123)'


--eval '(ediff-files "file-1" "file-2")'
--eval '(call-interactively (quote find-file))'

Kevin Rodgers

reply via email to

[Prev in Thread] Current Thread [Next in Thread]