branch: elpa/vm
commit 790c95503d8e130f97a68ab502eb5c77f35011c8
Author: Mark Diekhans <[email protected]>
Commit: Mark Diekhans <[email protected]>

    Address problem with 8.3.1 change where some user configurations for emacs 
30 need vm to evaluate autoloads.el.
---
 lisp/vm.el | 11 ++++++-----
 1 file changed, 6 insertions(+), 5 deletions(-)

diff --git a/lisp/vm.el b/lisp/vm.el
index 2ba6154bf9b..0a177fd027c 100644
--- a/lisp/vm.el
+++ b/lisp/vm.el
@@ -6,7 +6,7 @@
 ;; Copyright (C) 2003-2006 Robert Widhopf-Fenk
 ;; Copyright (C) 2024-2025 The VM Developers
 ;;
-;; Version: 8.3.2.snapshot
+;; Version: 8.3.2
 ;; Maintainer: [email protected]
 ;; URL: https://gitlab.com/emacs-vm/vm
 ;; Package-Requires: ((emacs "28.1") (vcard "0.2.2"))
@@ -99,10 +99,11 @@
 ;; yet does bbdb-vm.el  (require 'vm-autoloads). This workds around
 ;; this issue, yet allows vm.el to work if evaluated without going through
 ;; vm-autoloads.
-(if (<= emacs-major-version 28)
-    (progn
-      (load-library "vm-autoloads")
-      (provide 'vm-autoloads)))
+(cond ((<= emacs-major-version 28)
+       (progn
+        (load-library "vm-autoloads")
+        (provide 'vm-autoloads)))
+      (t (require 'vm-autoloads)))
 
 ;;;###autoload
 (cl-defun vm (&optional folder &key read-only interactive

Reply via email to