From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eric Hanchrow Newsgroups: gmane.emacs.help Subject: Re: first emacs lisp script: hello world Date: Fri, 07 Dec 2007 09:29:31 -0800 Message-ID: <87sl2ebeh0.fsf@offby1.atm01.sea.blarg.net> References: <7A8AFE3F49003F46B77954A8E6A7E32C4F9325@atl2corpx2.corp.interland.net> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1197050227 17622 80.91.229.12 (7 Dec 2007 17:57:07 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 7 Dec 2007 17:57:07 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Dec 07 18:57:18 2007 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 1J0hRm-0007o1-5f for geh-help-gnu-emacs@m.gmane.org; Fri, 07 Dec 2007 18:57:10 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1J0hRV-0002PM-Ay for geh-help-gnu-emacs@m.gmane.org; Fri, 07 Dec 2007 12:56:53 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1J0hRG-0002P0-6A for help-gnu-emacs@gnu.org; Fri, 07 Dec 2007 12:56:38 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1J0hRE-0002Ol-EC for help-gnu-emacs@gnu.org; Fri, 07 Dec 2007 12:56:36 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1J0hRE-0002Oi-7v for help-gnu-emacs@gnu.org; Fri, 07 Dec 2007 12:56:36 -0500 Original-Received: from main.gmane.org ([80.91.229.2] helo=ciao.gmane.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1J0hRD-0000Ai-Nk for help-gnu-emacs@gnu.org; Fri, 07 Dec 2007 12:56:35 -0500 Original-Received: from list by ciao.gmane.org with local (Exim 4.43) id 1J0hIH-0003fo-JP for help-gnu-emacs@gnu.org; Fri, 07 Dec 2007 17:47:21 +0000 Original-Received: from q-static-138-125.avvanta.com ([206.124.138.125]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 07 Dec 2007 17:47:21 +0000 Original-Received: from offby1 by q-static-138-125.avvanta.com with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 07 Dec 2007 17:47:21 +0000 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 25 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: q-static-138-125.avvanta.com User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.1 (gnu/linux) Cancel-Lock: sha1:J36+IJrOHuyadAJ+U1oYn+lHSSU= X-detected-kernel: by monty-python.gnu.org: Linux 2.6, seldom 2.4 (older, 4) 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:49918 Archived-At: >>>>> "Stewart" == Stewart Haddock writes: Stewart> All right.. Here comes the new guy. I downloaded emacs, Stewart> but I can not figure out how to create a hello world Stewart> script and run it. I know this is incredibly basic, but Stewart> when you are doing this stuff by yourself it is not Stewart> always obvious. Can someone point the way? Depends what you mean by "script". If you mean a standalone program that you can invoke from the operating-system shell, then ... even if it's theoretically possible to do that, I don't think you want to. Ugh. But if, on the other hand, you just mean "a function I can invoke from within Emacs that displays \"hello world\" somewhere", there are lots of ways. Take a look at "An Introduction to Programming in Emacs Lisp", specifically the node named "1.2 Run a Program". If you're reading this message in Emacs 22 at this very minute, you can easily view that node by putting your cursor at the end of the following Lisp expression, and typing C-x C-e: (info "(eintr)Run a Program") -- ... advocating Object-Oriented Programming is like advocating Pants-Oriented Clothing. -- Steve Yegge