all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: farbot@gmail.com
Subject: syntax / method for executing an emacs lisp function?
Date: 30 May 2006 08:22:10 -0700	[thread overview]
Message-ID: <1149002530.775420.198690@38g2000cwa.googlegroups.com> (raw)

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.

             reply	other threads:[~2006-05-30 15:22 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-05-30 15:22 farbot [this message]
2006-05-30 15:27 ` syntax / method for executing an emacs lisp function? Albert Reiner
2006-05-30 17:30 ` Kevin Rodgers
2006-05-30 19:01 ` farbot

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1149002530.775420.198690@38g2000cwa.googlegroups.com \
    --to=farbot@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.