guix-devel
[Top][All Lists]
Advanced

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

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


From: Alex Kost
Subject: [PATCH] emacs: Fix converting scheme into elisp expression.
Date: Mon, 21 Mar 2016 11:47:06 +0300
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (gnu/linux)

There is a bug in "scheme → elisp" conversion in the emacs interface.
It can be seen with the following recipe:

1. M-x guix-licenses

2. Move to "FreeBSD" license and press "i" to describe it.

3. In the *Guix License Info* buffer you can see:

  https://www.gnu.org/licenses/license-listnilreeBSD

while it should be:

  https://www.gnu.org/licenses/license-list#FreeBSD

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?

Attachment: 0001-emacs-Fix-converting-scheme-into-elisp-expression.patch
Description: Text Data


reply via email to

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