]> git.eshelyaron.com Git - emacs.git/commitdiff
Remove XEmacs compat code from url-*.el (Bug#37524)
authorStefan Kangas <stefankangas@gmail.com>
Sat, 14 Sep 2019 13:35:09 +0000 (15:35 +0200)
committerStefan Kangas <stefankangas@gmail.com>
Tue, 1 Oct 2019 18:25:11 +0000 (20:25 +0200)
* lisp/url/url-file.el (url-file-build-filename, url-file)
* lisp/url/url-privacy.el (url-setup-privacy-info): Remove XEmacs
compat code.
(url-device-type): Declare obsolete.

lisp/url/url-file.el
lisp/url/url-privacy.el

index b953ce7694083dc79498745c6df10a7b69dc83c8..41ffb4cd4a80b2e419a8f529038ef691d52e6a16 100644 (file)
@@ -120,9 +120,6 @@ to them."
         (cond
          ((featurep 'ange-ftp)
           (ange-ftp-set-passwd host user pass))
-         ((when (featurep 'xemacs)
-             (or (featurep 'efs) (featurep 'efs-auto)
-                 (efs-set-passwd host user pass))))
          (t
           nil)))
 
@@ -202,16 +199,7 @@ to them."
                                             (list #'url-file-asynch-callback
                                                   new (current-buffer)
                                                   callback cbargs)
-                                            t)
-              (when (featurep 'xemacs)
-                (autoload 'efs-copy-file-internal "efs")
-                (efs-copy-file-internal filename (efs-ftp-path filename)
-                                        new (efs-ftp-path new)
-                                        t nil 0
-                                        (list #'url-file-asynch-callback
-                                              new (current-buffer)
-                                              callback cbargs)
-                                        0 nil)))))))
+                                            t))))))
     buffer))
 
 (defmacro url-file-create-wrapper (method args)
index ef9ff84d56e8674ce7204f7cd4176131bbae2a5a..8f8fbef550a37b777a4397200a59f182ef45dd1b 100644 (file)
@@ -24,9 +24,8 @@
 (require 'url-vars)
 
 (defun url-device-type (&optional device)
-  (if (fboundp 'device-type)
-      (device-type device)              ; XEmacs
-    (or window-system 'tty)))
+  (declare (obsolete nil "27.1"))
+  (or window-system 'tty))
 
 ;;;###autoload
 (defun url-setup-privacy-info ()
@@ -42,9 +41,9 @@
         ;; combinations
         ((eq system-type 'windows-nt) "Windows-NT; 32bit")
         ((eq system-type 'ms-dos) "MS-DOS; 32bit")
-        ((memq (url-device-type) '(win32 w32)) "Windows; 32bit")
+        ((memq (or window-system 'tty) '(win32 w32)) "Windows; 32bit")
         (t
-         (pcase (url-device-type)
+         (pcase (or window-system 'tty)
            ('x "X11")
            ('ns "OpenStep")
            ('tty "TTY")