From: "Paul W. Rankin" <hello@paulwrankin.com>
To: Emacs developers <emacs-devel@gnu.org>
Subject: Function to retrieve package version
Date: Tue, 21 May 2019 14:55:57 +1000 [thread overview]
Message-ID: <m2pnocmmn6.fsf@paulwrankin.com> (raw)
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"
--
https://www.paulwrankin.com
next reply other threads:[~2019-05-21 4:55 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-05-21 4:55 Paul W. Rankin [this message]
2019-05-21 8:32 ` Function to retrieve package version Michael Albinus
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=m2pnocmmn6.fsf@paulwrankin.com \
--to=hello@paulwrankin.com \
--cc=emacs-devel@gnu.org \
/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.