[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Gcl-devel] Keychords for Evaluation (formerly Evaluation with GCL as an

From: Adrienne Thompson
Subject: [Gcl-devel] Keychords for Evaluation (formerly Evaluation with GCL as an Inferior Lisp)
Date: Tue, 6 Sep 2005 02:46:05 -0400

> Your problem should not be dependant on the inferior lisp program.
> With emacs "", I've got not problem with
> inferior-lisp-mode. Typing C-x C-e at the end of each of the following
> s-expressions:

I didn't mean to imply that the behaviour of the keychords was
characteristic of GCL; CLISP gave the same results. One of the Emacs lists
might have been a better forum for the question.

You're right, the commands "C-h-a lisp-eval-last-sexp", and "C-h-k C-x C-e"
do indicate that C-x C-e is also a bona fide command for evaluation in an
inferior Lisp. C-x C-e appears to differ from C-M-x and C-c C-e in the
position of point within the defun; literally the "last sexpression" is
evaluated as indicated earlier with quoted expressions abbreviated with the
apostrophe, and variables that are not delimited.
For instance, the second sexpression in:

(setf last-sexp 'c-x-c-e entire-defuns 'c-m-x)
(mapcar #'cons '(c-x-c-e c-m-x) '((last-sexp) (entire-defuns))))

evaluates using C-M-x, or C-c C-e, with point immediately before, after, or
anywhere within
the defun to:


whereas typing C-x C-e at the end of the variable "last-sexp" evaluates only to:


Using C-x C-e appears to be useful for evaluating single sexpressions which
are either not defuns, or are contained within defuns when evaluation of the
entire defun is not required. My point, though,  is that from a user's point
of view, section V.10 "Running an External Lisp" ought to clarify the
differences in application of the pertinent keychords, in particular, the
keychord C-c C-e compared with C-M-x, which are both bound to
lisp-eval-defun. One may be redundant. I would be happy to have further


reply via email to

[Prev in Thread] Current Thread [Next in Thread]