mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-01 12:17:25 -05:00
fix(lib): fn! error when arglist is a cons cell
Throws a wrong-type-argument error when fn! is given a cons cell in its arguments, e.g. (fn! ((x . y)) ...)
This commit is contained in:
@ -321,9 +321,9 @@ ARGLIST."
|
||||
,(letf! (defun* allow-other-keys (args)
|
||||
(mapcar
|
||||
(lambda (arg)
|
||||
(if (listp arg)
|
||||
(allow-other-keys arg)
|
||||
arg))
|
||||
(cond ((nlistp (cdr-safe arg)) arg)
|
||||
((listp arg) (allow-other-keys arg))
|
||||
(arg)))
|
||||
(if (and (memq '&key args)
|
||||
(not (memq '&allow-other-keys args)))
|
||||
(if (memq '&aux args)
|
||||
|
Reference in New Issue
Block a user