emacs-devel
[Top][All Lists]
Advanced

[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: Jonas Bernoulli
Subject: Re: What's the right way to extract a package's version from the header metadata?
Date: Thu, 30 Dec 2021 02:13:02 +0100

"Bozhidar Batsov" <bozhidar@batsov.dev> writes:

> (defconst cider-version
>   (eval-when-compile
>     (lm-version (or load-file-name buffer-file-name)))
>   "The current version of CIDER.")

Cute ;D

Also check out magit's horror show; the *function* magit-version.
(No, I won't post that code here.)

That's what happens if you also want to support "installed using
a shallow git repo", "installed using symlinks into a git repo",
and all kinds of other funky installation methods.



reply via email to

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