branch: elpa/vm
commit 19560f7d372fe43be51fd926088c584940c7a083
Author: Mark Diekhans <[email protected]>
Commit: Mark Diekhans <[email protected]>
check emacs version the offical way
---
lisp/vm.el | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/lisp/vm.el b/lisp/vm.el
index 663bba20d28..db9c5fc452e 100644
--- a/lisp/vm.el
+++ b/lisp/vm.el
@@ -58,8 +58,8 @@
(eval-when-compile (require 'cl-lib))
(require 'package)
-(defconst vm-min-emacs-version 28
- "Minimum required Emacs major version supported by VM.")
+(defconst vm-min-emacs-version "28.0"
+ "Minimum Emacs version supported by VM.")
(defvar enable-multibyte-characters)
@@ -86,11 +86,11 @@
(&optional arg))
;; Don't get any farther if emacs is too old
-(when (< emacs-major-version vm-min-emacs-version)
- (error "VM requires Emacs %d or later" vm-min-emacs-version))
+(when (version< emacs-version vm-min-emacs-version)
+ (error "VM requires Emacs %s or later" vm-min-emacs-version))
-;; Ensure that vm-autoloads is loaded in case the user is using VM 7.x
+;; Ensure that vm-autoloads is loaded in case the user is using VM
;; autoloads
(if (not (featurep 'xemacs))