Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP
Path: utzoo!mnetor!uunet!seismo!ut-sally!husc6!mit-eddie!HPLABS.HP.COM!mayer%hplnpm
From: mayer%hplnpm@HPLABS.HP.COM (Niels P. Mayer)
Newsgroups: comp.emacs
Subject: Re: emacs-lisp function-results - can it be sent to a buffer
Message-ID: <8707082126.AA00610@hplnpm>
Date: Wed, 8-Jul-87 17:26:20 EDT
Article-I.D.: hplnpm.8707082126.AA00610
Posted: Wed Jul  8 17:26:20 1987
Date-Received: Sun, 12-Jul-87 05:00:32 EDT
Sender: aryeh@eddie.MIT.EDU
Lines: 19


> The lisp-interaction-mode of Emacs (which is what the *scratch* buffer is in
> by default) provides a nice REPL (read-eval-print loop) for Emacs lisp, in which
> you can type Emacs lisp expressions and have them evaluated interactively.
> The results are printed in that buffer itself.

Indeed C-J will put eval results into a lisp-interaction-mode buffer.
However, when one is in an emacs-lisp-mode buffer, one may also want to
keep a record of one's evaluation results. If I'm editing an emacs-lisp
file, I wouldn't want evaluation results getting spuriously plugged into my
code (as would happen if the buffer was in lisp-interaction-mode). It would
be consistent with gnuemacs' other language modes if the results of a C-M-X
evaluation in an emacs-lisp-mode buffer would go to the *scratch* buffer.

Anybody know how get that sort of behaviour in gnuemacs?

	-- Niels Mayer
	   Hewlett-Packard Laboratories.
	   (mayer@hplabs.hp.com)