emacs-elpa-diffs
[Top][All Lists]
Advanced

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

[elpa] externals/gnorb 632b03d 367/449: Add gnorb-version command


From: Stefan Monnier
Subject: [elpa] externals/gnorb 632b03d 367/449: Add gnorb-version command
Date: Fri, 27 Nov 2020 23:16:13 -0500 (EST)

branch: externals/gnorb
commit 632b03d6bd5abdd59baf3771eaa73e319c2d399c
Author: Eric Abrahamsen <eric@ericabrahamsen.net>
Commit: Stefan Monnier <monnier@iro.umontreal.ca>

    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...
---
 gnorb-utils.el | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/gnorb-utils.el b/gnorb-utils.el
index ef2a013..f4a0aff 100644
--- a/gnorb-utils.el
+++ b/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

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