From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: farbot@gmail.com Newsgroups: gmane.emacs.help Subject: syntax / method for executing an emacs lisp function? Date: 30 May 2006 08:22:10 -0700 Organization: http://groups.google.com Message-ID: <1149002530.775420.198690@38g2000cwa.googlegroups.com> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" X-Trace: sea.gmane.org 1149003642 21626 80.91.229.2 (30 May 2006 15:40:42 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 30 May 2006 15:40:42 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue May 30 17:40:41 2006 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1Fl6Kj-0003bj-5a for geh-help-gnu-emacs@m.gmane.org; Tue, 30 May 2006 17:40:38 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Fl6Ki-0005te-9I for geh-help-gnu-emacs@m.gmane.org; Tue, 30 May 2006 11:40:36 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!postnews.google.com!38g2000cwa.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 28 Original-NNTP-Posting-Host: 146.115.30.162 Original-X-Trace: posting.google.com 1149002535 4810 127.0.0.1 (30 May 2006 15:22:15 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Tue, 30 May 2006 15:22:15 +0000 (UTC) User-Agent: G2/0.2 X-HTTP-UserAgent: Mozilla/5.0 (Macintosh; U; PPC Mac OS X Mach-O; en-US; rv:1.8.0.3) Gecko/20060426 Firefox/1.5.0.3,gzip(gfe),gzip(gfe) Complaints-To: groups-abuse@google.com Injection-Info: 38g2000cwa.googlegroups.com; posting-host=146.115.30.162; posting-account=zl7zWA0AAACtTQDq8H67s6vpS4MFW6MQ Original-Xref: shelby.stanford.edu gnu.emacs.help:139664 Original-To: help-gnu-emacs@gnu.org 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:35287 Archived-At: I'm writing a language mode for emacs, but have never used emacs before (the mode is for others to use). I've searched for hours, but can't find the incantation I need. I'd appreciate some pointers to specific help files or techniques. I'd like to run the regexp-opt command to optimize my list of keywords. For example: (regexp-opt '("TRUE" "FALSE") t) I've tried a bunch of methods from inside emacs, but it always says there is "no match" for regexp-opt. I've had the best luck on the command line using 'emacs --eval' option, but one of two things happens: 1) it dislikes my syntax (badly placed ()s, unmatched '), or 2) it accepts the syntax, and opens emacs and shows a *scratch* buffer in "(Lisp Interaction)" mode -- but there are no function results present. In the *Messages* buffer, I find my command echoed, but still no function results. I also tried typing commands in Lisp Interaction mode -- but neither return nor enter makes them execute. I'm thinking I need to figure out how to execute from a file instead of the command line -- since some of my keyword lists are quite long (not sure how much fits on the command line). I'm running emacs 21.2.1 from the command line on Mac OS X 10.4.6. Thanks for any pointers you might have.