diff options
| author | Glenn Morris | 2013-11-13 18:44:54 -0800 |
|---|---|---|
| committer | Glenn Morris | 2013-11-13 18:44:54 -0800 |
| commit | 1c276bdd9e23690dddc0888845234da081a36ff7 (patch) | |
| tree | a949c9036760203d6b84e0eab06099d52d2bac69 | |
| parent | e3d71abf441c0c8c4685de2b2c1bce51004bda97 (diff) | |
| download | emacs-1c276bdd9e23690dddc0888845234da081a36ff7.tar.gz emacs-1c276bdd9e23690dddc0888845234da081a36ff7.zip | |
* lisp/obsolete/assoc.el (aget): Prefix dynamic variable.
| -rw-r--r-- | lisp/ChangeLog | 6 | ||||
| -rw-r--r-- | lisp/obsolete/assoc.el | 12 |
2 files changed, 12 insertions, 6 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 8fb153fec66..2fd6cbc1aca 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,9 @@ | |||
| 1 | 2013-11-14 Glenn Morris <rgm@gnu.org> | ||
| 2 | |||
| 3 | * obsolete/assoc.el (aget): Prefix dynamic variable. | ||
| 4 | |||
| 5 | * allout-widgets.el (allout-widgets): No need to autoload defgroup. | ||
| 6 | |||
| 1 | 2013-11-14 Stefan Monnier <monnier@iro.umontreal.ca> | 7 | 2013-11-14 Stefan Monnier <monnier@iro.umontreal.ca> |
| 2 | 8 | ||
| 3 | * widget.el, hfy-cmap.el: Remove bogus package version number. | 9 | * widget.el, hfy-cmap.el: Remove bogus package version number. |
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. | |||
| 102 | 102 | ||
| 103 | If no key-value pair matching KEY could be found in ALIST, or ALIST is | 103 | If no key-value pair matching KEY could be found in ALIST, or ALIST is |
| 104 | nil then nil is returned. ALIST is not altered." | 104 | nil then nil is returned. ALIST is not altered." |
| 105 | (defvar copy) | 105 | (defvar assoc--copy) |
| 106 | (let ((copy (copy-alist alist))) | 106 | (let ((assoc--copy (copy-alist alist))) |
| 107 | (cond ((null alist) nil) | 107 | (cond ((null alist) nil) |
| 108 | ((progn (asort 'copy key) | 108 | ((progn (asort 'assoc--copy key) ; dynamic binding |
| 109 | (anot-head-p copy key)) nil) | 109 | (anot-head-p assoc--copy key)) nil) |
| 110 | ((cdr (car copy))) | 110 | ((cdr (car assoc--copy))) |
| 111 | (keynil-p nil) | 111 | (keynil-p nil) |
| 112 | ((car (car copy))) | 112 | ((car (car assoc--copy))) |
| 113 | (t nil)))) | 113 | (t nil)))) |
| 114 | 114 | ||
| 115 | 115 | ||