summaryrefslogtreecommitdiff
path: root/lisp/obsolete
diff options
context:
space:
mode:
Diffstat (limited to 'lisp/obsolete')
-rw-r--r--lisp/obsolete/assoc.el12
1 files changed, 6 insertions, 6 deletions
diff --git a/lisp/obsolete/assoc.el b/lisp/obsolete/assoc.el
index 9d8ffed4c9c..acf79a284c0 100644
--- a/lisp/obsolete/assoc.el
+++ b/lisp/obsolete/assoc.el
@@ -102,14 +102,14 @@ returned.
If no key-value pair matching KEY could be found in ALIST, or ALIST is
nil then nil is returned. ALIST is not altered."
- (defvar copy)
- (let ((copy (copy-alist alist)))
+ (defvar assoc--copy)
+ (let ((assoc--copy (copy-alist alist)))
(cond ((null alist) nil)
- ((progn (asort 'copy key)
- (anot-head-p copy key)) nil)
- ((cdr (car copy)))
+ ((progn (asort 'assoc--copy key) ; dynamic binding
+ (anot-head-p assoc--copy key)) nil)
+ ((cdr (car assoc--copy)))
(keynil-p nil)
- ((car (car copy)))
+ ((car (car assoc--copy)))
(t nil))))