guix-devel
[Top][All Lists]
Advanced

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

Re: [PATCH 3/7] emacs: Add 'guix-browse-license-url' command.


From: Alex Kost
Subject: Re: [PATCH 3/7] emacs: Add 'guix-browse-license-url' command.
Date: Mon, 25 Jan 2016 22:18:42 +0300
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (gnu/linux)

Ludovic Courtès (2016-01-23 20:13 +0300) wrote:

> Alex Kost <address@hidden> skribis:
>
>> * emacs/guix-main.scm (license-names, license-name->license)
>>   (license-name->uri): New procedures.
>> * emacs/guix-read.el (guix-license-names, guix-read-license-name): New
>>   procedures.
>> * emacs/guix-license.el: New file.
>> * emacs.am (ELFILES): Add it.
>
> [...]
>
>> +;;; Licenses
>
> I’d do:
>
>   (define %licenses
>     (delay (module-map thing from previous message…)))
>
>> +(define (license-names)
>> +  "Return a list of names of available licenses."
>> +  (map license-name %licenses))
>
> So here it’d become: (force %licenses).
>
> Other than that, LGTM!

I used delay/force and "(filter license? (module-map …))" advice from
the other message and pushed this patchset.  Thank you for your very
useful and informative comments!

-- 
Alex



reply via email to

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