GNU bug report logs -
#15389
24.2.91; order of eval-after-load actions
Previous Next
Reported by: joaotavora <at> gmail.com (João Távora)
Date: Sun, 15 Sep 2013 22:42:02 UTC
Severity: wishlist
Found in version 24.2.91
Fixed in version 24.4
Done: Glenn Morris <rgm <at> gnu.org>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
> If I interactively eval these forms in order using `eval-last-sexp', for
> example I get
> foo1
> foo2
> in the *Messages* buffer. But if i load the file like so
> emacs -Q --batch -l foo-test.el
> I get
> foo2
> foo1
> Is this the expected behaviour?
No, indeed, thank you for the clear test case.
Should now be fixed in the emacs-24 branch with the trivial patch below.
Stefan
--- lisp/subr.el 2013-07-03 03:13:07 +0000
+++ lisp/subr.el 2013-09-16 16:28:00 +0000
@@ -1872,7 +1872,7 @@
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.
This bug report was last modified 11 years and 250 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.