all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* bug#15389: 24.2.91; order of eval-after-load actions
@ 2013-09-15 22:41 João Távora
  2013-09-16  6:58 ` Glenn Morris
  2013-09-16 16:30 ` Stefan Monnier
  0 siblings, 2 replies; 4+ messages in thread
From: João Távora @ 2013-09-15 22:41 UTC (permalink / raw)
  To: 15389

Hi maintainers,

Consider a file foo-test.el consisting of this content

    (eval-after-load 'foo
      `(progn
         (message "foo1")))
     
    (eval-after-load 'foo
      `(progn
         (message "foo2")))
     
    (provide 'foo) 

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? Shouldn't the order in which the hooks
are run match the order of definition. 



In GNU Emacs 24.2.91.1 (x86_64-apple-darwin11.4.2, Carbon Version 1.6.0 AppKit 1138.51)
 of 2012-12-25 on king
Windowing system distributor `Apple Inc.', version 10.7.5
Configured using:
 `configure '--prefix=/usr/local/Cellar/emacs-mac/HEAD'
 '--enable-locallisppath=/usr/local/share/emacs/site-lisp'
 '--infodir=/usr/local/Cellar/emacs-mac/HEAD/share/info/emacs'
 '--with-mac' '--enable-mac-app' 'CC=cc''

Important settings:
  value of $LANG: en_US.UTF-8
  locale-coding-system: utf-8-unix
  default enable-multibyte-characters: t





^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2013-09-16 16:30 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-09-15 22:41 bug#15389: 24.2.91; order of eval-after-load actions João Távora
2013-09-16  6:58 ` Glenn Morris
2013-09-16 11:17   ` João Távora
2013-09-16 16:30 ` Stefan Monnier

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.