Didier Verna <didier(a)xemacs.org> writes:
I understand this argument, but there are problems to solve
here:
1/ AFAICS, XEmacs 21.1 doesn't behave this way.
I find that hard to believe. To be 100% sure, I've just created two
files, x.el and y.el, with the following contents:
;; x.el:
(require 'y)
;; y.el
(message "foo")
(provide 'y)
I started XEmacs 21.1 with -vanilla, pushed "." to the load-path, and
byte-compiled x.el. After the compilation, `C-h l' showed that `y'
was loaded ("foo" was in the message log).
That's with XEmacs 21.1.10. Maybe Martin's recent changes to the
byte-compiler broke something. In that case, the compiler should be
fixed.
2/ I don't know of a standard way to do avoid evaluation of
'require at
compile time, and I need it.
I guess you could wrap the `require' in an appropriate `eval-when'.
3/ What does GNU Emacs do ? Are we compatible ?
Also prints "foo"; that is, we're compatible.