mirror of
https://github.com/doomemacs/doomemacs
synced 2025-09-20 16:11:07 -05:00
Fix void-function mapcan on Emacs 25.x
This commit is contained in:
@@ -14,6 +14,10 @@
|
|||||||
(defalias 'if-let* #'if-let)
|
(defalias 'if-let* #'if-let)
|
||||||
(defalias 'when-let* #'when-let)
|
(defalias 'when-let* #'when-let)
|
||||||
|
|
||||||
|
;; `mapcan' was introduced in 26.1. `cl-mapcan' isn't a perfect replacement,
|
||||||
|
;; but it's close enough.
|
||||||
|
(defalias 'mapcan #'cl-mapcan)
|
||||||
|
|
||||||
(defun alist-get (key alist &optional default remove testfn)
|
(defun alist-get (key alist &optional default remove testfn)
|
||||||
"Return the value associated with KEY in ALIST.
|
"Return the value associated with KEY in ALIST.
|
||||||
If KEY is not found in ALIST, return DEFAULT.
|
If KEY is not found in ALIST, return DEFAULT.
|
||||||
|
Reference in New Issue
Block a user