|
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:0.9.4.1) 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)' e.g. --eval '(ediff-files "file-1" "file-2")' --eval '(call-interactively (quote find-file))' -- Kevin Rodgers
[Prev in Thread] | Current Thread | [Next in Thread] |