Use eval-and-compile to load EIEIO correctly.
authorRaphael Kubo da Costa <kubito@gmail.com>
Thu, 17 Feb 2011 03:19:30 +0000 (21:19 -0600)
committerTed Zlatanov <tzz@lifelogs.com>
Thu, 17 Feb 2011 03:19:30 +0000 (21:19 -0600)
* auth-source.el: Correctly load EIEIO from "gnus-fallback-lib/eieio"
as EIEIO must also be loaded when auth-source.el is being
byte-compiled.

lisp/ChangeLog
lisp/auth-source.el

index 61538e2..c0a5e89 100644 (file)
@@ -1,3 +1,9 @@
+2011-02-16  Raphael Kubo da Costa  <kubito@gmail.com>  (tiny change)
+
+       * auth-source.el: Correctly load EIEIO from "gnus-fallback-lib/eieio"
+       as EIEIO must also be loaded when auth-source.el is being
+       byte-compiled.
+
 2011-02-16  Teodor Zlatanov  <tzz@lifelogs.com>
 
        * gnus-fallback-lib/eieio/eieio.el: Copy from Emacs.
index abcc85b..3841e58 100644 (file)
 (require 'netrc)
 (require 'assoc)
 (eval-when-compile (require 'cl))
-(ignore-errors
-  (or (require 'eieio))
-  ;; gnus-fallback-lib/ from gnus/lisp/gnus-fallback-lib
-  (load "gnus-fallback-lib/eieio/eieio"))
-(unless (featurep 'eieio)
-  (error "eieio not found in `load-path' or gnus-fallback-lib/ directory."))
+(eval-and-compile
+  (or (require 'eieio nil t)
+      ;; gnus-fallback-lib/ from gnus/lisp/gnus-fallback-lib
+      (load "gnus-fallback-lib/eieio/eieio"))
+  (unless (featurep 'eieio)
+    (error "eieio not found in `load-path' or gnus-fallback-lib/ directory.")))
 
 (autoload 'secrets-create-item "secrets")
 (autoload 'secrets-delete-item "secrets")