Load mh-loaddefs during compilation as well.
authorStefan Monnier <monnier@iro.umontreal.ca>
Wed, 4 Nov 2009 04:33:25 +0000 (04:33 +0000)
committerStefan Monnier <monnier@iro.umontreal.ca>
Wed, 4 Nov 2009 04:33:25 +0000 (04:33 +0000)
lisp/mh-e/ChangeLog
lisp/mh-e/mh-e.el

index 0ad9435..f67ba56 100644 (file)
@@ -1,3 +1,7 @@
+2009-11-04  Stefan Monnier  <monnier@iro.umontreal.ca>
+
+       * mh-e.el: Load mh-loaddefs during compilation as well.
+
 2009-11-04  Juanma Barranquero  <lekktu@gmail.com>
 
        * mh-e.el (mh-loaddefs): Load rather than require.
index 7b7a9e5..916bbe2 100644 (file)
 ;; Provide functions to the rest of MH-E. However, mh-e.el must not
 ;; use any definitions in files that require mh-e from mh-loaddefs,
 ;; for if it does it will introduce a require loop.
-(load "mh-loaddefs" nil 'nomessage)
+(eval-and-compile
+  ;; Load it during compilation as well, since it defines the macro
+  ;; mh-require-cl.
+  (load "mh-loaddefs" nil 'nomessage))
 
 (mh-require-cl)