mirror of
https://git.savannah.gnu.org/git/emacs.git
synced 2024-11-24 07:20:37 +00:00
Revert "alist-get testfn argument evaluation correction"
This reverts commit 17d65c99cd
.
Please don't install unnecessary improvements on the release
branch.
This commit is contained in:
parent
856d889f3a
commit
de2239a584
@ -417,9 +417,9 @@ The return value is the last VAL in the list.
|
||||
(lambda (do key alist &optional default remove testfn)
|
||||
(macroexp-let2 macroexp-copyable-p k key
|
||||
(gv-letplace (getter setter) alist
|
||||
(macroexp-let2 nil p (if (member testfn '(nil 'eq #'eq))
|
||||
`(assq ,k ,getter)
|
||||
`(assoc ,k ,getter ,testfn))
|
||||
(macroexp-let2 nil p `(if (and ,testfn (not (eq ,testfn 'eq)))
|
||||
(assoc ,k ,getter ,testfn)
|
||||
(assq ,k ,getter))
|
||||
(funcall do (if (null default) `(cdr ,p)
|
||||
`(if ,p (cdr ,p) ,default))
|
||||
(lambda (v)
|
||||
|
Loading…
Reference in New Issue
Block a user