diff lisp/gnus/nnmail.el @ 24600:5e026e6efc73

(nnmail-read-passwd): Use read-passwd if that is defined.
author Richard M. Stallman <rms@gnu.org>
date Thu, 08 Apr 1999 19:08:22 +0000
parents 15fc6acbae7a
children fb6b9c37cdc4
line wrap: on
line diff
--- a/lisp/gnus/nnmail.el	Thu Apr 08 19:08:11 1999 +0000
+++ b/lisp/gnus/nnmail.el	Thu Apr 08 19:08:22 1999 +0000
@@ -1689,11 +1689,13 @@
 	     (apply 'format prompt args)
 	   prompt)))
     (unless nnmail-read-passwd
-      (if (load "passwd" t)
+      (if (fboundp 'read-passwd)
 	  (setq nnmail-read-passwd 'read-passwd)
-	(unless (fboundp 'ange-ftp-read-passwd)
-	  (autoload 'ange-ftp-read-passwd "ange-ftp"))
-	(setq nnmail-read-passwd 'ange-ftp-read-passwd)))
+	(if (load "passwd" t)
+	    (setq nnmail-read-passwd 'read-passwd)
+	  (unless (fboundp 'ange-ftp-read-passwd)
+	    (autoload 'ange-ftp-read-passwd "ange-ftp"))
+	  (setq nnmail-read-passwd 'ange-ftp-read-passwd))))
     (funcall nnmail-read-passwd prompt)))
 
 (defun nnmail-check-syntax ()