refactor(lib): deprecate doom-plist-get

It's redundant with cl-getf, and so will be removed in v3.0.
This commit is contained in:
Henrik Lissner
2024-11-15 03:57:22 -05:00
parent fa0a83ff2f
commit 2373511daf

View File

@ -20,11 +20,7 @@
;;; Library ;;; Library
;;;###autoload ;;;###autoload
(defun doom-plist-get (plist prop &optional nil-value) (define-obsolete-function-alias 'doom-plist-get #'cl-getf "3.0.0")
"Return PROP in PLIST, if it exists. Otherwise NIL-VALUE."
(if-let (val (plist-member plist prop))
(cadr val)
nil-value))
;;;###autoload ;;;###autoload
(defun doom-plist-map (fn plist) (defun doom-plist-map (fn plist)