[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: What's the right way to extract a package's version from the header
From: |
Thierry Volpiatto |
Subject: |
Re: What's the right way to extract a package's version from the header metadata? |
Date: |
Wed, 29 Dec 2021 18:22:16 +0000 |
Stefan Monnier <monnier@iro.umontreal.ca> writes:
>> Basically I want to extract the package version from the *Version:*
>> header instead of having to duplicate it. I know of
>> package-get-package-version, but I assume it won't work for people
>> who didn't install my packages via package.el.
>
> `package-get-version` should work but only if they had the foresight to
> put it in a directory whose name ends in "-<version>" or whose name is
> just `cider` (i.e. the name of your package) :-(
Why doing this instead of adding such infos to *.pkg.el file of package?
IIRC package.el is creating such file from source file headers instead
of using the existing file if it exists (I already asked for this in the
past).
--
Thierry