From 734a0a8536c0a1d480702f175dab12466a1752a6 Mon Sep 17 00:00:00 2001 From: Eli Zaretskii Date: Sun, 4 Aug 2024 11:52:12 +0300 Subject: [PATCH] Fix ':defer nil' in 'use-package' * lisp/use-package/use-package-core.el (use-package-normalize-keywords): Use 'plist-get' instead of 'plist-member'. (Bug#72414) (cherry picked from commit bfb1aee99898d7704a64ee124217b9e9ca43d66d) --- lisp/use-package/use-package-core.el | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lisp/use-package/use-package-core.el b/lisp/use-package/use-package-core.el index dd4efd3831d..8c3241d5ee0 100644 --- a/lisp/use-package/use-package-core.el +++ b/lisp/use-package/use-package-core.el @@ -726,9 +726,9 @@ extending any keys already present." ;; If at this point no :load, :defer or :no-require has been seen, then ;; :load the package itself. - (when (and (not (plist-member args :load)) - (not (plist-member args :defer)) - (not (plist-member args :no-require))) + (when (and (not (plist-get args :load)) + (not (plist-get args :defer)) + (not (plist-get args :no-require))) (setq args (append args `(:load (,name))))) ;; Sort the list of keywords based on the order of `use-package-keywords'. -- 2.39.2