guix-devel
[Top][All Lists]
Advanced

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

Re: [PATCH] emacs: Fix converting scheme into elisp expression.


From: Ludovic Courtès
Subject: Re: [PATCH] emacs: Fix converting scheme into elisp expression.
Date: Mon, 21 Mar 2016 10:38:36 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (gnu/linux)

Alex Kost <address@hidden> skribis:

> As you can see, "#F" is replaced with "nil".  The problem is: we receive
> a string with scheme expression from geiser, and it should be converted
> into elisp expression.  I don't see how to do it other than just to
> replace scheme specific things (#t, #f, #<unspecified>) with elisp
> analogs in this raw string.
>
> The attached patch improves this conversion process, but it is still
> ugly.  Are there better ideas how to perform this conversion?

The ideal solution would be to have a full-blown Scheme reader in elisp
(trivial in Guile-Emacs…).  Otherwise I’m not sure what can be done.

> From f127fc2ac741334340b650736b98ed15879a3be1 Mon Sep 17 00:00:00 2001
> From: Alex Kost <address@hidden>
> Date: Sun, 24 Jan 2016 11:16:44 +0300
> Subject: [PATCH] emacs: Fix converting scheme into elisp expression.
>
> * emacs/guix-geiser.el (guix-geiser-eval-read): Replace #f/#t with nil/t
>   only when they follow "(" or " ".

Looks good, thanks!

Ludo’.



reply via email to

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