guile-user
[Top][All Lists]
Advanced

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

Re: emacs lisp compatible names


From: Ludovic Courtès
Subject: Re: emacs lisp compatible names
Date: Thu, 12 Mar 2020 17:29:24 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/26.3 (gnu/linux)

Hi!

Sam Halliday <address@hidden> skribis:

> I read in the Guile manual's section on the Emacs lisp frontend that
> there is special falsey treatment for nil and empty lists, etc etc.
>
> But I was left wondering if all the other language constructs of emacs
> lisp are implemented, e.g. optional parameters, its lisp-2 nature.
>
> Also, now that Emacs lisp has opt-in lexical scoping, is that something
> that can be used from the Guile emulation?
>
> Additionally, what about the stdlib functions? Are there aliases so that
> I don't need to remember the Guile names for mapcar and progn? :-D

Emacs Lisp support in Guile needs love.  But! You can give it a try from
the REPL:

--8<---------------cut here---------------start------------->8---
scheme@(guile-user)> ,L elisp
Happy hacking with Emacs Lisp!  To switch back, type `,L scheme'.
elisp@(guile-user)> (progn t)
$1 = #t
elisp@(guile-user)> (mapcar (lambda (x) (+ 1 x)) '(1 2 3))
$2 = (2 3 4)
--8<---------------cut here---------------end--------------->8---

The bad news is that one has to remember the elisp names for ‘map’ and
‘begin’.  :-)

Ludo’.




reply via email to

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