Hi!

Sam Halliday <sam.halli...@gmail.com> 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