mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-01 12:17:25 -05:00
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:
@ -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)
|
||||||
|
Reference in New Issue
Block a user