From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Xah Lee Newsgroups: gmane.emacs.help Subject: how to use ejacs to eval a file as with command line driven interpreters Date: Thu, 8 Jan 2009 07:12:45 -0800 (PST) Organization: http://groups.google.com Message-ID: <28fc357b-e4b0-410d-8cc8-3b65cbaf9fc3@z27g2000prd.googlegroups.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1231474621 21763 80.91.229.12 (9 Jan 2009 04:17:01 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 9 Jan 2009 04:17:01 +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 Jan 09 05:18:13 2009 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 1LL8p2-0007uX-JY for geh-help-gnu-emacs@m.gmane.org; Fri, 09 Jan 2009 05:18:12 +0100 Original-Received: from localhost ([127.0.0.1]:46791 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LL8nm-0003IM-Ia for geh-help-gnu-emacs@m.gmane.org; Thu, 08 Jan 2009 23:16:54 -0500 Original-Path: news.stanford.edu!newsfeed.stanford.edu!postnews.google.com!z27g2000prd.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help,comp.emacs Original-Lines: 20 Original-NNTP-Posting-Host: 24.6.175.142 Original-X-Trace: posting.google.com 1231427565 4452 127.0.0.1 (8 Jan 2009 15:12:45 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Thu, 8 Jan 2009 15:12:45 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: z27g2000prd.googlegroups.com; posting-host=24.6.175.142; posting-account=bRPKjQoAAACxZsR8_VPXCX27T2YcsyMA User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (Macintosh; U; PPC Mac OS X 10_4_11; en) AppleWebKit/525.27.1 (KHTML, like Gecko) Version/3.2.1 Safari/525.27.1, gzip(gfe), gzip(gfe) Original-Xref: news.stanford.edu gnu.emacs.help:165853 comp.emacs:97625 X-Mailman-Approved-At: Thu, 08 Jan 2009 23:16:36 -0500 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:61197 Archived-At: there's Stevey Yegge's javascript interpreter written in elisp. http://code.google.com/p/ejacs/ by default it runs in emacs as a command line console. my question is, is it possible to run ejacs with a file? e.g. i have a file x.js, which i can run in shell with spidermonkey like this: js x.js i wish to be able to use ejacs to eval a file. Otherwise it wouldn't be useful to me. Thanks. Xah =E2=88=91 http://xahlee.org/ =E2=98=84