From b4f39e53698eaeb43a4277a057db91e418b0c590 Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Sun, 4 Feb 2024 17:55:07 -0500 Subject: [PATCH] nit: doom-modules: reformat & declare obsolete variables defs --- lisp/doom-modules.el | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/lisp/doom-modules.el b/lisp/doom-modules.el index 0d0c5fd9b..cf9ebe471 100644 --- a/lisp/doom-modules.el +++ b/lisp/doom-modules.el @@ -8,6 +8,7 @@ (defvar doom-modules (make-hash-table :test 'equal) "A hash table of enabled modules. Set by `doom-initialize-modules'.") +(define-obsolete-variable-alias 'doom-modules-dirs 'doom-module-load-path "3.0.0") (defvar doom-module-load-path (list (file-name-concat doom-user-dir "modules") (file-name-concat doom-emacs-dir "modules")) @@ -49,12 +50,8 @@ NOT IMPLEMENTED YET. This file contains a module's metadata: their version, maintainers, checks, features, submodules, debug information, etc. And are used to locate modules in the user's file tree.") - -;; -;;; Obsolete variables - -(define-obsolete-variable-alias 'doom-modules-dirs 'doom-module-load-path "3.0.0") - +;; DEPRECATED: Module warnings will be rewritten in v3, and this variable will no longer be needed. +(make-obsolete-variable 'doom-obsolete-modules nil "3.0.0") (defconst doom-obsolete-modules '((:feature (version-control (:emacs vc) (:ui vc-gutter)) (spellcheck (:checkers spell)) @@ -97,6 +94,7 @@ syntax-checker modules obsolete. e.g. If :feature version-control is found in your `doom!' block, a warning is emitted before replacing it with :emacs vc and :ui vc-gutter.") +(make-obsolete-variable 'doom-inhibit-module-warnings nil "3.0.0") (defvar doom-inhibit-module-warnings (not noninteractive) "If non-nil, don't emit deprecated or missing module warnings at startup.")