aboutsummaryrefslogtreecommitdiffstats
path: root/lisp
diff options
context:
space:
mode:
authorJuanma Barranquero2009-08-29 22:27:19 +0000
committerJuanma Barranquero2009-08-29 22:27:19 +0000
commit486cf3b876103af5d21eb4834cfcf1fe51c94985 (patch)
tree14996fcc35fcd20352603eaee15d5d999210bd42 /lisp
parenta0c07f4e0f85d5a11bf8b45d6e24730de60c831a (diff)
downloademacs-486cf3b876103af5d21eb4834cfcf1fe51c94985.tar.gz
emacs-486cf3b876103af5d21eb4834cfcf1fe51c94985.zip
* subr.el (do-after-load-evaluation): Simplify.
Diffstat (limited to 'lisp')
-rw-r--r--lisp/ChangeLog4
-rw-r--r--lisp/subr.el15
2 files changed, 9 insertions, 10 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index a06b9ff8443..0da2525f51a 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,7 @@
12009-08-29 Juanma Barranquero <lekktu@gmail.com>
2
3 * subr.el (do-after-load-evaluation): Simplify.
4
12009-08-29 Dan Nicolaescu <dann@ics.uci.edu> 52009-08-29 Dan Nicolaescu <dann@ics.uci.edu>
2 6
3 * vc.el (vc-print-log-internal): Move RCS/CVS specific code ... 7 * vc.el (vc-print-log-internal): Move RCS/CVS specific code ...
diff --git a/lisp/subr.el b/lisp/subr.el
index ed85f2812a2..436da221cef 100644
--- a/lisp/subr.el
+++ b/lisp/subr.el
@@ -1688,16 +1688,11 @@ This function makes or adds to an entry on `after-load-alist'."
1688(defun do-after-load-evaluation (abs-file) 1688(defun do-after-load-evaluation (abs-file)
1689 "Evaluate all `eval-after-load' forms, if any, for ABS-FILE. 1689 "Evaluate all `eval-after-load' forms, if any, for ABS-FILE.
1690ABS-FILE, a string, should be the absolute true name of a file just loaded." 1690ABS-FILE, a string, should be the absolute true name of a file just loaded."
1691 (let ((after-load-elts after-load-alist) 1691 (dolist (a-l-element after-load-alist)
1692 a-l-element file-elements file-element form) 1692 (when (and (stringp (car a-l-element))
1693 (while after-load-elts 1693 (string-match-p (car a-l-element) abs-file))
1694 (setq a-l-element (car after-load-elts) 1694 ;; discard the file name regexp
1695 after-load-elts (cdr after-load-elts)) 1695 (mapc #'eval (cdr a-l-element)))))
1696 (when (and (stringp (car a-l-element))
1697 (string-match (car a-l-element) abs-file))
1698 (while (setq a-l-element (cdr a-l-element)) ; discard the file name
1699 (setq form (car a-l-element))
1700 (eval form))))))
1701 1696
1702(defun eval-next-after-load (file) 1697(defun eval-next-after-load (file)
1703 "Read the following input sexp, and run it whenever FILE is loaded. 1698 "Read the following input sexp, and run it whenever FILE is loaded.