unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* Function to retrieve package version
@ 2019-05-21  4:55 Paul W. Rankin
  2019-05-21  8:32 ` Michael Albinus
  2019-05-21 21:55 ` Stefan Monnier
  0 siblings, 2 replies; 13+ messages in thread
From: Paul W. Rankin @ 2019-05-21  4:55 UTC (permalink / raw)
  To: Emacs developers

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



^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2019-05-22 22:39 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-05-21  4:55 Function to retrieve package version Paul W. Rankin
2019-05-21  8:32 ` 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

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).