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

From: [email-masked] (Ludovic Courtès)
Date: Mon, 22 May 2017 00:24:08 +0200

Alex Kost <[email-masked]> 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’.