[Top][All Lists]

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

Re: Function to retrieve package version

From: Eric Abrahamsen
Subject: Re: Function to retrieve package version
Date: Tue, 21 May 2019 15:56:06 -0700
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux)

Stefan Monnier <address@hidden> writes:

>> (defvar my-great-package-version
>>  (package-get-version))
> C-h o package-get-version RET says:
>     package-get-version is an autoloaded compiled Lisp function in 
> ‘package.el’.
>     (package-get-version)
>       This function does not change global state, including the match data.
>     Return the version number of the package in which this is used.
>     Assumes it is used from an Elisp file placed inside the top-level 
> directory
>     of an installed ELPA package.
>     The return value is a string (or nil in case we can’t find it).

Aren't there a set of functions that start from a package name string,
rather than the current file? I thought there were functions that would
first retrieve a struct from your installed files, then extract a
name/version from that?

reply via email to

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