aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStefan Kangas2019-09-14 15:35:09 +0200
committerStefan Kangas2019-10-01 20:25:11 +0200
commit12f6b90c85f510608d9d2b5dbf43a7731bc36e6a (patch)
tree2e2f9bf3bbbb023829646e483324172ee9e94d8b
parentb6a8014fbee33336e17d88b37b5ad46d9358cc2f (diff)
downloademacs-12f6b90c85f510608d9d2b5dbf43a7731bc36e6a.tar.gz
emacs-12f6b90c85f510608d9d2b5dbf43a7731bc36e6a.zip
Remove XEmacs compat code from url-*.el (Bug#37524)
* 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.
-rw-r--r--lisp/url/url-file.el14
-rw-r--r--lisp/url/url-privacy.el9
2 files changed, 5 insertions, 18 deletions
diff --git a/lisp/url/url-file.el b/lisp/url/url-file.el
index b953ce76940..41ffb4cd4a8 100644
--- a/lisp/url/url-file.el
+++ b/lisp/url/url-file.el
@@ -120,9 +120,6 @@ to them."
120 (cond 120 (cond
121 ((featurep 'ange-ftp) 121 ((featurep 'ange-ftp)
122 (ange-ftp-set-passwd host user pass)) 122 (ange-ftp-set-passwd host user pass))
123 ((when (featurep 'xemacs)
124 (or (featurep 'efs) (featurep 'efs-auto)
125 (efs-set-passwd host user pass))))
126 (t 123 (t
127 nil))) 124 nil)))
128 125
@@ -202,16 +199,7 @@ to them."
202 (list #'url-file-asynch-callback 199 (list #'url-file-asynch-callback
203 new (current-buffer) 200 new (current-buffer)
204 callback cbargs) 201 callback cbargs)
205 t) 202 t))))))
206 (when (featurep 'xemacs)
207 (autoload 'efs-copy-file-internal "efs")
208 (efs-copy-file-internal filename (efs-ftp-path filename)
209 new (efs-ftp-path new)
210 t nil 0
211 (list #'url-file-asynch-callback
212 new (current-buffer)
213 callback cbargs)
214 0 nil)))))))
215 buffer)) 203 buffer))
216 204
217(defmacro url-file-create-wrapper (method args) 205(defmacro url-file-create-wrapper (method args)
diff --git a/lisp/url/url-privacy.el b/lisp/url/url-privacy.el
index ef9ff84d56e..8f8fbef550a 100644
--- a/lisp/url/url-privacy.el
+++ b/lisp/url/url-privacy.el
@@ -24,9 +24,8 @@
24(require 'url-vars) 24(require 'url-vars)
25 25
26(defun url-device-type (&optional device) 26(defun url-device-type (&optional device)
27 (if (fboundp 'device-type) 27 (declare (obsolete nil "27.1"))
28 (device-type device) ; XEmacs 28 (or window-system 'tty))
29 (or window-system 'tty)))
30 29
31;;;###autoload 30;;;###autoload
32(defun url-setup-privacy-info () 31(defun url-setup-privacy-info ()
@@ -42,9 +41,9 @@
42 ;; combinations 41 ;; combinations
43 ((eq system-type 'windows-nt) "Windows-NT; 32bit") 42 ((eq system-type 'windows-nt) "Windows-NT; 32bit")
44 ((eq system-type 'ms-dos) "MS-DOS; 32bit") 43 ((eq system-type 'ms-dos) "MS-DOS; 32bit")
45 ((memq (url-device-type) '(win32 w32)) "Windows; 32bit") 44 ((memq (or window-system 'tty) '(win32 w32)) "Windows; 32bit")
46 (t 45 (t
47 (pcase (url-device-type) 46 (pcase (or window-system 'tty)
48 ('x "X11") 47 ('x "X11")
49 ('ns "OpenStep") 48 ('ns "OpenStep")
50 ('tty "TTY") 49 ('tty "TTY")