[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Using Emacs Lisp for script writing
From: |
Cecil Westerhof |
Subject: |
Re: Using Emacs Lisp for script writing |
Date: |
Thu, 17 Dec 2009 00:31:27 +0100 |
User-agent: |
Gnus/5.11 (Gnus v5.11) Emacs/22.3 (gnu/linux) |
Sam Steingold <sds@gnu.org> writes:
>> I already use 'emacs -batch' for scripting where no user input is used,
>> but I would like to use it also for interactive scripting. Until now I
>> did not find any usable information about this. Anybody using Emacs for
>> interactive scripts?
>
> I use clisp for all scripting, interactive and not.
> Common Lisp is more powerful than Emacs Lisp and clisp is faster than
> emacs.
Okay. I'll look into that. Emacs is more general, because it will be
installed on more systems. But when Common Lisp is a better option, I
should maybe go for it.
By the way. I have been looking into Common Lisp and I understood that
the following is correct:
(list a: 1)
But I get:
*** - READ uit #<INPUT CONCATENATED-STREAM #<INPUT STRING-INPUT-STREAM>
#<IO TERMINAL-STREAM>>: er is geen package met naam "A"
Mogelijkheden om opnieuw te beginnen:
ABORT :R1 ABORT
ABORT :R2 ABORT
ABORT :R3 ABORT
What is going wrong here?
On the system is the version: GNU CLISP 2.39. So maybe I should update.
>> Also I use three evals. One to define the function, one to compile it
>> and one to call it. Can this be done better?
>
> yes. you do not need any evals.
> you put your function into a file, byte-compile the file, and then load
> the file and call the function from the command line.
I thought about this, but the functionality is run from a bash-script. I
like to have everything in one file, but maybe I should work with
several files.
--
Cecil Westerhof
Senior Software Engineer
LinkedIn: http://www.linkedin.com/in/cecilwesterhof
- Using Emacs Lisp for script writing, Cecil Westerhof, 2009/12/16
- Re: Using Emacs Lisp for script writing, Andreas Politz, 2009/12/18
- Message not available
- Re: Using Emacs Lisp for script writing, Cecil Westerhof, 2009/12/21
- Re: Using Emacs Lisp for script writing, Sam Steingold, 2009/12/21
- Re: Using Emacs Lisp for script writing, Sam Steingold, 2009/12/21
- Re: Using Emacs Lisp for script writing, Tim X, 2009/12/21
- Re: Using Emacs Lisp for script writing, Cecil Westerhof, 2009/12/21
- Re: Using Emacs Lisp for script writing, Tim X, 2009/12/22
- Re: Using Emacs Lisp for script writing, Cecil Westerhof, 2009/12/22