From: Oliver Scholz <alkibiades@gmx.de>
Subject: Re: REPL
Date: Sat, 04 Dec 2004 12:21:49 +0100 [thread overview]
Message-ID: <878y8e48c2.fsf@ID-87814.user.uni-berlin.de> (raw)
In-Reply-To: 30uhh2F34su3sU1@uni-berlin.de
[Since M-x ielm has already been pointed to by others ...]
Elvin Peterson <elvin_peterson@yahoo.com> writes:
[...]
> IIRC, the REPL code for COMMON LISP is just a couple of lines, so I
> was hoping someone would post similar stuff for emacs.
Sure, to get a very basic REPL in Emacs is simple:
;; Because we use `loop' for the looks of it:
(require 'cl)
(let* ((buffer (generate-new-buffer "*tmp*"))
(standard-output buffer))
(switch-to-buffer buffer)
;; The REPL:
(loop (print (eval (read)))))
The extra code in ielm is to get something a tiny little bit more
comfortable.
Oliver
--
14 Frimaire an 213 de la Révolution
Liberté, Egalité, Fraternité!
next prev parent reply other threads:[~2004-12-04 11:21 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-11-27 18:55 REPL Elvin Peterson
2004-11-27 19:17 ` REPL Maciek Pasternacki
2004-11-27 19:50 ` REPL Marco Gidde
2004-11-28 17:53 ` REPL Elvin Peterson
2004-11-28 21:48 ` REPL Marco Gidde
2004-11-29 11:48 ` REPL Kai Grossjohann
2004-12-04 11:21 ` Oliver Scholz [this message]
2004-12-04 12:17 ` REPL Pascal Bourguignon
[not found] ` <mailman.1833.1101583655.27204.help-gnu-emacs@gnu.org>
2004-11-28 17:55 ` REPL Elvin Peterson
2004-11-28 19:36 ` REPL Pascal Bourguignon
2004-11-28 22:01 ` REPL Marco Gidde
2004-11-29 18:30 ` REPL Elvin Peterson
2004-11-30 21:53 ` REPL Alan Mackenzie
2004-11-30 23:31 ` REPL Joe Corneli
2004-12-02 8:24 ` REPL Friedrich Dominicus
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
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=878y8e48c2.fsf@ID-87814.user.uni-berlin.de \
--to=alkibiades@gmx.de \
/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.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).