diff --git a/lisp/ChangeLog b/lisp/ChangeLog index d5c3bc92674..404f228f9b2 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -1,3 +1,8 @@ +2009-08-30 Juanma Barranquero + + * subr.el (do-after-load-evaluation): Fix last change: use `mapc' + instead of `dolist' to avoid a recursive require when bootstrapping. + 2009-08-30 Stefan Monnier * emacs-lisp/lisp.el (field-complete): Use minibuffer-complete. diff --git a/lisp/subr.el b/lisp/subr.el index 436da221cef..43bce3055b6 100644 --- a/lisp/subr.el +++ b/lisp/subr.el @@ -1688,11 +1688,12 @@ This function makes or adds to an entry on `after-load-alist'." (defun do-after-load-evaluation (abs-file) "Evaluate all `eval-after-load' forms, if any, for ABS-FILE. ABS-FILE, a string, should be the absolute true name of a file just loaded." - (dolist (a-l-element after-load-alist) - (when (and (stringp (car a-l-element)) - (string-match-p (car a-l-element) abs-file)) - ;; discard the file name regexp - (mapc #'eval (cdr a-l-element))))) + (mapc #'(lambda (a-l-element) + (when (and (stringp (car a-l-element)) + (string-match-p (car a-l-element) abs-file)) + ;; discard the file name regexp + (mapc #'eval (cdr a-l-element)))) + after-load-alist)) (defun eval-next-after-load (file) "Read the following input sexp, and run it whenever FILE is loaded.