From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Xavier Maillard Newsgroups: gmane.emacs.help Subject: Re: how to learn lisp Date: Wed, 22 Oct 2008 02:25:26 +0200 Organization: GNU's Not UNIX! Message-ID: <200810220025.m9M0PQAd018851@zogzog.maillard.mobi> References: <87r66ah1uo.fsf@lion.rapttech.com.au> Reply-To: Xavier Maillard NNTP-Posting-Host: lo.gmane.org X-Trace: ger.gmane.org 1224635413 5498 80.91.229.12 (22 Oct 2008 00:30:13 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 22 Oct 2008 00:30:13 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: Tim X Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Oct 22 02:31:14 2008 connect(): Connection refused Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1KsRd2-0000hy-Tg for geh-help-gnu-emacs@m.gmane.org; Wed, 22 Oct 2008 02:31:13 +0200 Original-Received: from localhost ([127.0.0.1]:55710 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KsRbx-0001GB-CC for geh-help-gnu-emacs@m.gmane.org; Tue, 21 Oct 2008 20:30:05 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KsRbL-00015i-7J for help-gnu-emacs@gnu.org; Tue, 21 Oct 2008 20:29:27 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KsRbK-000155-AB for help-gnu-emacs@gnu.org; Tue, 21 Oct 2008 20:29:26 -0400 Original-Received: from [199.232.76.173] (port=36437 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KsRbK-000150-6C for help-gnu-emacs@gnu.org; Tue, 21 Oct 2008 20:29:26 -0400 Original-Received: from master.uucpssh.org ([193.218.105.66]:51071) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1KsRbJ-0002Zu-S5 for help-gnu-emacs@gnu.org; Tue, 21 Oct 2008 20:29:26 -0400 Original-Received: by master.uucpssh.org (Postfix, from userid 10) id EEE47F6D87; Wed, 22 Oct 2008 02:28:10 +0200 (CEST) Original-Received: from zogzog.maillard.mobi (IDENT:1000@localhost [127.0.0.1]) by zogzog.maillard.mobi (8.14.2/8.13.8) with ESMTP id m9M0PQCT018852; Wed, 22 Oct 2008 02:25:26 +0200 Original-Received: (from xma@localhost) by zogzog.maillard.mobi (8.14.2/8.13.8/Submit) id m9M0PQAd018851; Wed, 22 Oct 2008 02:25:26 +0200 In-reply-to: <87r66ah1uo.fsf@lion.rapttech.com.au> (message from Tim X on Tue, 21 Oct 2008 17:57:35 +1100) User-Agent: Rmail in GNU Emacs 23.0.60.12 on GNU/Linux Jabber-ID: xma01@jabber.fr X-uucpssh: Found to be clean X-uucpssh-SpamCheck: not spam, SpamAssassin (not cached, score=-4.4, required 4.6, autolearn=not spam, ALL_TRUSTED -1.80, BAYES_00 -2.60, SPF_HELO_PASS -0.00) X-uucpssh-From: xma@gnu.org X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:59012 Archived-At: Hi, > you haven't seen it yet, there is a -batch option for starting up > Emacs. If you create an Emacs Lisp file, for example - hello_world.el > - you can then execute this file in the same manner you would execute > a Perl/Python/Ruby/Tcl script by typing "emacs -batch -l > hello_world.el". An alternative and useful way to start playing with elisp that is faster than running scripts with batch mode is IELM mod (e.g. m-x ielm). It provides an elisp REPL where you can evaluate various elisp forms. I second that. This is the best tool to start with when learning. I did that way a long time ago. -batch option is, IMO, a bad idea for a beginner since the user has to know what -batch implies internally (what it does, what it can't do, etc.). Regards Xavier -- http://www.gnu.org http://www.april.org http://www.lolica.org