Simplified.
authorDaiki Ueno <ueno@unixuser.org>
Fri, 4 Feb 2005 02:38:57 +0000 (02:38 +0000)
committerDaiki Ueno <ueno@unixuser.org>
Fri, 4 Feb 2005 02:38:57 +0000 (02:38 +0000)
lisp/riece-compat.el

index d3b9155..43f7797 100644 (file)
     (end-of-line)
     (point)))
 
-(defvar riece-read-passwd
-  (if (functionp 'read-passwd)
-      #'read-passwd
-    (if (load "passwd" t)
-       #'read-passwd
-      (autoload 'ange-ftp-read-passwd "ange-ftp")
-      #'ange-ftp-read-passwd)))
-
+(autoload 'read-passwd "passwd")
+(defvar riece-read-passwd #'read-passwd)
 (defun riece-read-passwd (prompt)
   (condition-case nil
       (let (inhibit-quit)