]> git.eshelyaron.com Git - emacs.git/commitdiff
* lisp/emacs-lisp/assoc.el (aget): Fix dynamic-scoping issue.
authorStefan Monnier <monnier@iro.umontreal.ca>
Thu, 26 Apr 2012 18:21:03 +0000 (14:21 -0400)
committerStefan Monnier <monnier@iro.umontreal.ca>
Thu, 26 Apr 2012 18:21:03 +0000 (14:21 -0400)
Fixes: debbugs:11352
lisp/ChangeLog
lisp/emacs-lisp/assoc.el

index a02521ca147f70693cf403f4433ab00f5f29cc70..87b525d7e669dc36b2c6b55bd5e96dea4efccb55 100644 (file)
@@ -1,5 +1,6 @@
 2012-04-26  Stefan Monnier  <monnier@iro.umontreal.ca>
 
+       * emacs-lisp/assoc.el (aget): Fix dynamic-scoping issue (bug#11352).
 
        * term/ns-win.el (ns-define-service):
        * progmodes/pascal.el (pascal-goto-defun):
index d3185c444d720514569a56c12a3bc11fbedccb9b..8e6f7711d5bb398c44558ca0bd2876d44a351417 100644 (file)
@@ -101,6 +101,7 @@ 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)))
     (cond ((null alist) nil)
          ((progn (asort 'copy key)