auth-source.el: Don't pass more than two args, that XEmacs 21.4 doesn't support,...
authorKatsumi Yamaoka <yamaoka@jpl.org>
Thu, 17 Feb 2011 04:07:41 +0000 (04:07 +0000)
committerKatsumi Yamaoka <yamaoka@jpl.org>
Thu, 17 Feb 2011 04:07:41 +0000 (04:07 +0000)
lisp/ChangeLog
lisp/auth-source.el

index 62fc848..aedc2a7 100644 (file)
@@ -1,7 +1,8 @@
 2011-02-17  Katsumi Yamaoka  <yamaoka@jpl.org>
 
        * auth-source.el: Bind load-path when loading EIEIO from
-       "gnus-fallback-lib/eieio".
+       "gnus-fallback-lib/eieio"; don't pass more than two args, that XEmacs
+       21.4 doesn't support, to `require'.
 
 2011-02-16  Raphael Kubo da Costa  <kubito@gmail.com>  (tiny change)
 
index 94ebe52..b5cc55f 100644 (file)
 (require 'assoc)
 (eval-when-compile (require 'cl))
 (eval-and-compile
-  (or (require 'eieio nil t)
+  (or (ignore-errors (require 'eieio))
       ;; gnus-fallback-lib/ from gnus/lisp/gnus-fallback-lib
-      (let ((load-path (cons (expand-file-name
-                             "gnus-fallback-lib/eieio"
-                             (file-name-directory (locate-library "gnus")))
-                            load-path)))
-       (require 'eieio nil t))
+      (ignore-errors
+       (let ((load-path (cons (expand-file-name
+                               "gnus-fallback-lib/eieio"
+                               (file-name-directory (locate-library "gnus")))
+                              load-path)))
+         (require 'eieio)))
       (error
        "eieio not found in `load-path' or gnus-fallback-lib/ directory.")))