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: Alex Kost
Subject: Re: [PATCH] emacs: Fix converting scheme into elisp expression.
Date: Wed, 23 Mar 2016 11:28:42 +0300
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (gnu/linux)

Ludovic Courtès (2016-03-21 12:38 +0300) wrote:

> 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.

I also thought about Guile Emacs.  Maybe some day it will become simply
"Emacs" that we use all the time...  Until then this hacky way will
probably be kept, thanks for replying!

>> 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!

Committed.

-- 
Alex



reply via email to

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