guix-patches
[Top][All Lists]
Advanced

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

bug#26802: [PATCH 4/4] build: emacs: Fix `store-file->elisp-source-file'


From: Ludovic Courtès
Subject: bug#26802: [PATCH 4/4] build: emacs: Fix `store-file->elisp-source-file'.
Date: Mon, 22 May 2017 00:24:08 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/25.2 (gnu/linux)

Alex Kost <address@hidden> skribis:

>> +  (let ((extension ".el"))
>> +    (let-values (((name version)
>> +                  (package-name->name+version
>> +                   (strip-store-file-name
>> +                    (string-drop-right
>> +                     file (string-length extension))))))
>> +      (string-append name extension))))

Pro tip: (string-drop-right …) can be replaced by:

  (basename file ".el")

:-)

Ludo’.





reply via email to

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