mirror of
https://github.com/doomemacs/doomemacs.git
synced 2025-12-06 02:30:33 -08: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:
parent
fa0a83ff2f
commit
2373511daf
1 changed files with 1 additions and 5 deletions
|
|
@ -20,11 +20,7 @@
|
|||
;;; Library
|
||||
|
||||
;;;###autoload
|
||||
(defun doom-plist-get (plist prop &optional nil-value)
|
||||
"Return PROP in PLIST, if it exists. Otherwise NIL-VALUE."
|
||||
(if-let (val (plist-member plist prop))
|
||||
(cadr val)
|
||||
nil-value))
|
||||
(define-obsolete-function-alias 'doom-plist-get #'cl-getf "3.0.0")
|
||||
|
||||
;;;###autoload
|
||||
(defun doom-plist-map (fn plist)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue