summaryrefslogtreecommitdiff
path: root/lisp
diff options
context:
space:
mode:
authorStefan Monnier <monnier@iro.umontreal.ca>2013-09-16 12:29:46 -0400
committerStefan Monnier <monnier@iro.umontreal.ca>2013-09-16 12:29:46 -0400
commit1809eef8b7f87b7d98b414f20ef61608e0582b0d (patch)
tree7cdfc6e497c2ee2de48315b12d4b7d7865ed6306 /lisp
parent1f1e06e2728d2dc8656f4e96aea876ad13916bfa (diff)
downloademacs-1809eef8b7f87b7d98b414f20ef61608e0582b0d.tar.gz
* lisp/subr.el (eval-after-load): Preserve evaluation order.
Fixes: debbugs:15389
Diffstat (limited to 'lisp')
-rw-r--r--lisp/ChangeLog4
-rw-r--r--lisp/subr.el2
2 files changed, 5 insertions, 1 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 1ea13a9a0be..7cb08cf59ca 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,7 @@
+2013-09-16 Stefan Monnier <monnier@iro.umontreal.ca>
+
+ * subr.el (eval-after-load): Preserve evaluation order (bug#15389).
+
2013-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
* abbrev.el (abbrev--check-chars): Fix thinko (bug#15329).
diff --git a/lisp/subr.el b/lisp/subr.el
index 0434e3856f9..cf168971812 100644
--- a/lisp/subr.el
+++ b/lisp/subr.el
@@ -1872,7 +1872,7 @@ This function makes or adds to an entry on `after-load-alist'."
nil
(remove-hook 'after-load-functions ',fun)
,',form)))
- (add-hook 'after-load-functions fun))
+ (add-hook 'after-load-functions fun 'append))
;; Not being provided from a file, run form right now.
,form)))
;; Add FORM to the element unless it's already there.