From: Eli Zaretskii Date: Sun, 4 Aug 2024 08:52:12 +0000 (+0300) Subject: Fix ':defer nil' in 'use-package' X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=734a0a8536c0a1d480702f175dab12466a1752a6;p=emacs.git 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) --- 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'.