guix-devel
[Top][All Lists]
Advanced

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

Re: [PATCH 4/6] gnu: Add emacs-constants.


From: Federico Beffa
Subject: Re: [PATCH 4/6] gnu: Add emacs-constants.
Date: Sat, 9 Jan 2016 11:42:52 +0100

On Tue, Jan 5, 2016 at 11:08 PM, Ludovic Courtès <address@hidden> wrote:
> Federico Beffa <address@hidden> skribis:

>> +(define* (uncompressed-file-fetch url hash-algo hash
>> +                                  #:optional name
>> +                                  #:key (system (%current-system))
>> +                                  (guile (default-guile)))
>> +  (mlet %store-monad ((drv (url-fetch url hash-algo hash name
>> +                                      #:system system
>> +                                      #:guile guile)))
>> +    (gexp->derivation (or name (basename url))
>> +                      #~(begin
>> +                          (mkdir #$output)
>> +                          (setenv "PATH"
>> +                                  (string-append #$gzip "/bin"))
>> +                          (chdir #$output)
>> +                          (copy-file #$drv (basename #$url))))))
>
> The dependency on gzip can be removed.
>
> Also, the second derivation is okay, but kind of wasteful: it only
> serves to move the file in a directory so the patch-application logic
> can work.

Of course it would be better if the patch logic would recognize this
case. Then we wouldn't need the above procedure.

>
> However, I’m unsure the patch in question really belongs here.  After
> all, there’s just one file, and additionally it’s called ‘constants.el’!
> ;-)

I'm not sure I understand what you are trying to say. Could you please
be more explicit.

>
>> diff --git a/gnu/packages/patches/emacs-constants-lisp-like.patch 
>> b/gnu/packages/patches/emacs-constants-lisp-like.patch
>> new file mode 100644
>> index 0000000..5ec37f3
>> --- /dev/null
>> +++ b/gnu/packages/patches/emacs-constants-lisp-like.patch
>> @@ -0,0 +1,81 @@
>> +Add Scheme support
>
> This is too terse, and I feel like the patch really does upstream work.
>
> It seems that the file has a new home (or is it just a mirror?) at
>
>   https://github.com/emacsmirror/constants/blob/master/constants.el
>
> Is the patch yours?  If yes, could you find an upstream to submit it
> too?  If there’s no such thing, you could always become the upstream.
> ;-)

The above URL is just a snapshot of the file. No activity whatsoever.

Yes, the patch is mine, following suggestions in the file itself. It
is to make the package usable with lisp like syntax so that you don't
get e.g.:

c = 2.99...e8

when you insert a constant in a scheme/lisp buffer. Isn't this project
fanatic about scheme? ;-)

I don't think there is an upstream. In any case I have no intention of
becoming one.

Thanks for the review.
Regards,
Fede



reply via email to

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