From mboxrd@z Thu Jan 1 00:00:00 1970 From: ludo@gnu.org (Ludovic =?utf-8?Q?Court=C3=A8s?=) Subject: Re: [PATCH] emacs: Fix converting scheme into elisp expression. Date: Mon, 21 Mar 2016 10:38:36 +0100 Message-ID: <874mc09nmr.fsf@gnu.org> References: <87fuvkcj5h.fsf@gmail.com> 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]:60538) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ahwIO-0005VG-8S for guix-devel@gnu.org; Mon, 21 Mar 2016 05:38:44 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ahwIJ-0000Ou-6A for guix-devel@gnu.org; Mon, 21 Mar 2016 05:38:44 -0400 In-Reply-To: <87fuvkcj5h.fsf@gmail.com> (Alex Kost's message of "Mon, 21 Mar 2016 11:47:06 +0300") 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: Alex Kost Cc: guix-devel@gnu.org 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 can= be done. > 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! Ludo=E2=80=99.