From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: TheFlyingDutchman Newsgroups: gmane.emacs.help Subject: Re: how to learn lisp Date: Mon, 20 Oct 2008 22:36:04 -0700 (PDT) Organization: http://groups.google.com Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1224598965 6070 80.91.229.12 (21 Oct 2008 14:22:45 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 21 Oct 2008 14:22:45 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Oct 21 16:23:43 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 1KsI8y-00081P-Fb for geh-help-gnu-emacs@m.gmane.org; Tue, 21 Oct 2008 16:23:32 +0200 Original-Received: from localhost ([127.0.0.1]:56099 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KsI7t-0007xt-0H for geh-help-gnu-emacs@m.gmane.org; Tue, 21 Oct 2008 10:22:25 -0400 Original-Path: news.stanford.edu!newsfeed.stanford.edu!postnews.google.com!y29g2000hsf.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 16 Original-NNTP-Posting-Host: 192.91.147.35 Original-X-Trace: posting.google.com 1224567364 31900 127.0.0.1 (21 Oct 2008 05:36:04 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Tue, 21 Oct 2008 05:36:04 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: y29g2000hsf.googlegroups.com; posting-host=192.91.147.35; posting-account=9bWHAAoAAAAxSFC_2O_ssTETNW9NhMbW User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.0.3705; .NET CLR 1.1.4322; .NET CLR 2.0.50727; InfoPath.1; MS-RTC LM 8),gzip(gfe),gzip(gfe) Original-Xref: news.stanford.edu gnu.emacs.help:163629 X-Mailman-Approved-At: Tue, 21 Oct 2008 10:20:13 -0400 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:58981 Archived-At: On Oct 12, 9:34=A0pm, "jacklisp" wrote: > how to learn lisp I have studied the Emacs Lisp manual on more than one occassion and never got much past evaluating (+ 2 2) in a buffer. But recently I was looking to modify my .emacs file and came across something that I wasn't aware of that I find very helpful for learning the Lisp part of Emacs Lisp (as opposed to the "Emacs API" part of Emacs Lisp). So if 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". In batch mode the (message ... ) function acts like a print/printf statement in other languages, so you can start with (message "%s" "hello world") and go on from there the way you typically would learning a standalone language.