[Top][All Lists]

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

Re: GNU ELPA package for CC-mode

From: Tom Tromey
Subject: Re: GNU ELPA package for CC-mode
Date: Sat, 25 Aug 2018 15:17:57 -0600
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1.50 (gnu/linux)

>>>>> "Stefan" == Stefan Monnier <address@hidden> writes:

>> We do this in Flycheck, but it makes retrieving the version number
>> less convenient.  Maybe package.el could provide a simple function
>> which, given a package name, returns the installed version?

Stefan> Yes, it'd be nice.

>> (Maybe there's one already?)

Stefan> The closest I could find are: (lm-header "version") and `bbdb-version`.

lm-header is what package.el itself uses.

I suspect this could be done by using a combination of the
load-file-name hack; see the end of:

(info "(elisp) Multi-file Packages")

combined with lm-header.  To make it even better maybe this could be
done using eval-when-compile so that the bytecode just has a constant.


reply via email to

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