From: Michael Albinus <michael.albinus@gmx.de>
To: "Paul W. Rankin" <hello@paulwrankin.com>
Cc: Emacs developers <emacs-devel@gnu.org>
Subject: Re: Function to retrieve package version
Date: Tue, 21 May 2019 10:32:58 +0200 [thread overview]
Message-ID: <87woiki4w5.fsf@gmx.de> (raw)
In-Reply-To: <m2pnocmmn6.fsf@paulwrankin.com> (Paul W. Rankin's message of "Tue, 21 May 2019 14:55:57 +1000")
"Paul W. Rankin" <hello@paulwrankin.com> writes:
> wrt. http://lists.gnu.org/archive/html/help-gnu-emacs/2019-05/msg00022.html
>
> I would like an easy function that retrieves the version of the
> current package, e.g.
>
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> ;;; my-great-package.el --- A great package
>
> ;; Copyright (c) 1952-2019 Free Software Foundation, Inc.
>
> ;; Author: Mr. Big Pants <mister@bigpants.com>
> ;; Version: 2.7.0
> ;; Package-Requires: ((emacs "24.5"))
>
> (defvar my-great-package-version
> (package-get-version))
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>
> my-great-package-version
> -> "2.7.0"
(or (lm-header "package-version")
(lm-header "version"))
Best regards, Michael.
next prev parent reply other threads:[~2019-05-21 8:32 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-05-21 4:55 Function to retrieve package version Paul W. Rankin
2019-05-21 8:32 ` Michael Albinus [this message]
2019-05-21 9:08 ` Paul W. Rankin
2019-05-21 9:40 ` Michael Albinus
2019-05-21 20:18 ` Richard Stallman
2019-05-22 2:02 ` Paul W. Rankin
2019-05-22 2:26 ` Eli Zaretskii
2019-05-22 2:49 ` Paul W. Rankin
2019-05-22 7:49 ` Michael Albinus
2019-05-22 7:50 ` Eli Zaretskii
2019-05-22 22:39 ` Richard Stallman
2019-05-21 21:55 ` Stefan Monnier
2019-05-21 22:56 ` Eric Abrahamsen
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87woiki4w5.fsf@gmx.de \
--to=michael.albinus@gmx.de \
--cc=emacs-devel@gnu.org \
--cc=hello@paulwrankin.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.