From mboxrd@z Thu Jan 1 00:00:00 1970 From: Alex Kost Subject: Re: [PATCH] emacs: Fix converting scheme into elisp expression. Date: Wed, 23 Mar 2016 11:28:42 +0300 Message-ID: <871t7138ed.fsf@gmail.com> References: <87fuvkcj5h.fsf@gmail.com> <874mc09nmr.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:39316) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aie9k-0003g0-KW for guix-devel@gnu.org; Wed, 23 Mar 2016 04:28:45 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aie9i-0003ME-5H for guix-devel@gnu.org; Wed, 23 Mar 2016 04:28:44 -0400 In-Reply-To: <874mc09nmr.fsf@gnu.org> ("Ludovic \=\?utf-8\?Q\?Court\=C3\=A8s\=22'\?\= \=\?utf-8\?Q\?s\?\= message of "Mon, 21 Mar 2016 10:38:36 +0100") List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org To: Ludovic =?utf-8?Q?Court=C3=A8s?= Cc: guix-devel@gnu.org Ludovic Court=C3=A8s (2016-03-21 12:38 +0300) wrote: > Alex Kost 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, #) 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=E2=80=A6). Otherwise I=E2=80=99m not sure what c= an 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 >> 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. --=20 Alex