summaryrefslogtreecommitdiff
path: root/lisp/url
diff options
context:
space:
mode:
authorStefan Kangas <stefan@marxist.se>2021-04-05 01:13:54 +0200
committerStefan Kangas <stefan@marxist.se>2021-04-05 11:14:34 +0200
commit1760029b092724271f9527543dbd9830b377704f (patch)
tree6ac67c4ee0d0a5ed2b46e67084a2bacb0a9e4081 /lisp/url
parent46b8d7087c8270c92d6a3b94e811de5e3cc99701 (diff)
downloademacs-1760029b092724271f9527543dbd9830b377704f.tar.gz
emacs-1760029b092724271f9527543dbd9830b377704f.tar.bz2
emacs-1760029b092724271f9527543dbd9830b377704f.zip
Replace local intersection functions with seq-intersection
* lisp/doc-view.el (doc-view-intersection): * lisp/gnus/gnus-range.el (gnus-intersection): * lisp/htmlfontify.el (hfy-interq): * lisp/loadhist.el (file-set-intersect): * lisp/mail/smtpmail.el (smtpmail-intersection): Make obsolete in favor of seq-intersection. Update all callers. * lisp/url/url-dav.el (url-intersection): Redefine as obsolete function alias for seq-intersection. Update callers. * lisp/mpc.el (mpc-intersection, mpc-cmd-list, mpc-reorder): Use seq-intersection.
Diffstat (limited to 'lisp/url')
-rw-r--r--lisp/url/url-dav.el17
1 files changed, 4 insertions, 13 deletions
diff --git a/lisp/url/url-dav.el b/lisp/url/url-dav.el
index edb1c1de9fc..192b1ac4f41 100644
--- a/lisp/url/url-dav.el
+++ b/lisp/url/url-dav.el
@@ -43,22 +43,11 @@
(defvar url-http-response-status)
(defvar url-http-end-of-headers)
-(defun url-intersection (l1 l2)
- "Return a list of the elements occurring in both of the lists L1 and L2."
- (if (null l2)
- l2
- (let (result)
- (while l1
- (if (member (car l1) l2)
- (setq result (cons (pop l1) result))
- (pop l1)))
- (nreverse result))))
-
;;;###autoload
(defun url-dav-supported-p (url)
"Return WebDAV protocol version supported by URL.
Returns nil if WebDAV is not supported."
- (url-intersection url-dav-supported-protocols
+ (seq-intersection url-dav-supported-protocols
(plist-get (url-http-options url) 'dav)))
(defun url-dav-node-text (node)
@@ -910,7 +899,9 @@ Returns nil if URL contains no name starting with FILE."
t)))
-;;; Miscellaneous stuff.
+;;; Obsolete.
+
+(define-obsolete-function-alias 'url-intersection #'seq-intersection "28.1")
(provide 'url-dav)