Add 5.0.0 changes.
[riece] / lisp / riece-compat.el
index d3b9155..3e54caf 100644 (file)
@@ -19,8 +19,8 @@
 
 ;; You should have received a copy of the GNU General Public License
 ;; along with GNU Emacs; see the file COPYING.  If not, write to the
-;; Free Software Foundation, Inc., 59 Temple Place - Suite 330,
-;; Boston, MA 02111-1307, USA.
+;; Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
+;; Boston, MA 02110-1301, USA.
 
 ;;; Code:
 
     (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)
-       (funcall riece-read-passwd prompt))
-    (quit
-     (message "%sQuit" prompt)
-     'quit)))
+  (funcall riece-read-passwd prompt))
 
 (if (string-match "0\\{0\\}" "")
     (defun riece-make-interval-regexp (regexp min &optional max)