From xemacs-m  Tue Feb 25 11:22:18 1997
Received: from newman (root@newman.aventail.com [38.225.141.10])
	by xemacs.org (8.8.5/8.8.5) with SMTP id LAA06103
	for <xemacs-beta@xemacs.org>; Tue, 25 Feb 1997 11:22:13 -0600 (CST)
Received: from kramer.in.aventail.com.aventail.com (wmperry@kramer [192.168.1.12]) by newman (8.6.12/8.6.9) with SMTP id JAA15723; Tue, 25 Feb 1997 09:20:04 -0800
Date: Tue, 25 Feb 1997 09:20:04 -0800
Message-Id: <199702251720.JAA15723@newman>
From: "William M. Perry" <wmperry@aventail.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
To: Per Abrahamsen <abraham@dina.kvl.dk>
Cc: xemacs-beta@xemacs.org
Subject: Re: Can't determine how to read passwords, winging it.
In-Reply-To: <rjene4ke3u.fsf@zuse.dina.kvl.dk>
References: <199702251643.RAA18621@midnight.eng.ecf.teradyne.com>
	<kigd8toq151.fsf@jagor.srce.hr>
	<rjene4ke3u.fsf@zuse.dina.kvl.dk>
Errors-to: wmperry@aventail.com
Reply-to: wmperry@aventail.com
X-Face: O~Rn;(l][/-o1sALg4A@xpE:9-"'IR[%;,,!m7</SYF`{vYQ(&RI1&EiH[FvT;J}@f!4kfz
 x_!Y#=y{Uuj9GvUi=cPuajQ(Z42R[wE@{G,sn$qGr5g/wnb*"*ktI+,CD}1Z'wxrM2ag-r0p5I6\nA
 [WJopW_J.WY;

Per Abrahamsen writes:
>
>Hrvoje Niksic <hniksic@srce.hr> writes:
>
>> As far as I see, every explicit mention of `ange-ftp' in a Lisp
>> utility is a bug.  It either has to go out, or be changed to efs.
>
>How about code that is supposed to work in both Emacsen?

  They should explicitly check for both, like Emacs-W3 does.  ie:

(defvar passwd-reader
  (cond
    ((fboundp 'read-passwd) 'read-passwd)
    ((featurep 'ange-ftp)   'ange-ftp-read-passwd)
    ((or (featurep 'efs)
         (featurep 'efs-auto))
      'ange-ftp-read-passwd)
    (t
      ;; define your own function here.
     )))

-Bill P.

