changeset 95067:e29bfedb7864

(top-level): Load auth-source when compiling.
author Glenn Morris <rgm@gnu.org>
date Sat, 17 May 2008 20:09:47 +0000
parents b4d5df9f90b3
children fdda4c5e3ebc
files lisp/net/tramp.el
diffstat 1 files changed, 4 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/net/tramp.el	Sat May 17 20:08:54 2008 +0000
+++ b/lisp/net/tramp.el	Sat May 17 20:09:47 2008 +0000
@@ -87,9 +87,10 @@
 (require 'shell)
 (require 'advice)
 
-(if (featurep 'xemacs)
-    (load "auth-source" 'noerror)
-  (require 'auth-source nil 'noerror))
+(eval-and-compile
+  (if (featurep 'xemacs)
+      (load "auth-source" 'noerror)
+    (require 'auth-source nil 'noerror)))
 
 ;; Requiring 'tramp-cache results in an endless loop.
 (autoload 'tramp-get-file-property "tramp-cache")