[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
- [PATCH 5/7] emacs: Add 'guix-packages-by-license' command., (continued)
- [PATCH 5/7] emacs: Add 'guix-packages-by-license' command., Alex Kost, 2016/01/22
- [PATCH 1/7] emacs: Rename 'file-path' to 'file-name'., Alex Kost, 2016/01/22
- [PATCH 6/7] emacs: list: Support displaying URL links., Alex Kost, 2016/01/22
- [PATCH 7/7] emacs: Add interface for licenses., Alex Kost, 2016/01/22
- [PATCH 3/7] emacs: Add 'guix-browse-license-url' command., Alex Kost, 2016/01/22
- [PATCH 2/7] licenses: Add a list of licenses., Alex Kost, 2016/01/22