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

> Alex Kost <alez...@gmail.com> 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 <alez...@gmail.com>
>> 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