branch: master
commit f99d4f6d72d7b5f4fa715d23145ab815fa715a09
Author: Eric Abrahamsen <e...@ericabrahamsen.net>
Commit: Eric Abrahamsen <e...@ericabrahamsen.net>

    Add gnorb-version command
    
    * packages/gnorb/gnorb-utils.el (gnorb-version): Uses pkg-info-
      function, so only works for Gnorb installed via package manager. But
      that's the only place you can get this version, so...
---
 packages/gnorb/gnorb-utils.el | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/packages/gnorb/gnorb-utils.el b/packages/gnorb/gnorb-utils.el
index 60e57b4..9352d34 100644
--- a/packages/gnorb/gnorb-utils.el
+++ b/packages/gnorb/gnorb-utils.el
@@ -76,6 +76,13 @@ with `gnorb-window-conf'.")
   :group 'gnorb
   :type 'string)
 
+(defun gnorb-version ()
+  "Return the version of currently-installed Gnorb.
+
+Only works for Gnorb installed via the package manager."
+  (interactive)
+  (pkg-info-package-version "gnorb"))
+
 ;;; this is just ghastly, but the value of this var is single regexp
 ;;; group containing various header names, and we want our value
 ;;; inside that group.

Reply via email to