From: Lars Ingebrigtsen Date: Sat, 13 Feb 2016 06:33:25 +0000 (+1100) Subject: Remove the gnus-union alias X-Git-Tag: emacs-26.0.90~2578 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=f466bf32d943a41abb964d839ddf8a27c380920e;p=emacs.git Remove the gnus-union alias * lisp/gnus/gnus-util.el (gnus-union): Remove. --- diff --git a/lisp/gnus/gnus-group.el b/lisp/gnus/gnus-group.el index 7e48fbf5560..a7c3ebb80e3 100644 --- a/lisp/gnus/gnus-group.el +++ b/lisp/gnus/gnus-group.el @@ -1369,7 +1369,7 @@ if it is a string, only list groups matching REGEXP." (when (or gnus-group-listed-groups (and (>= level gnus-level-killed) (<= lowest gnus-level-killed))) (gnus-group-prepare-flat-list-dead - (gnus-union + (cl-union not-in-list (setq gnus-killed-list (sort gnus-killed-list 'string<)) :test 'equal) diff --git a/lisp/gnus/gnus-util.el b/lisp/gnus/gnus-util.el index ff980416a28..eadf04dfe71 100644 --- a/lisp/gnus/gnus-util.el +++ b/lisp/gnus/gnus-util.el @@ -1265,29 +1265,6 @@ If HASH-TABLE-P is non-nil, regards SEQUENCE as a hash table." (put 'gnus-with-output-to-file 'lisp-indent-function 1) (put 'gnus-with-output-to-file 'edebug-form-spec '(form body)) -(if (fboundp 'union) - (defalias 'gnus-union 'union) - (defun gnus-union (l1 l2 &rest keys) - "Set union of lists L1 and L2. -If KEYS contains the `:test' and `equal' pair, use `equal' to compare -items in lists, otherwise use `eq'." - (cond ((null l1) l2) - ((null l2) l1) - ((equal l1 l2) l1) - (t - (or (>= (length l1) (length l2)) - (setq l1 (prog1 l2 (setq l2 l1)))) - (if (eq 'equal (plist-get keys :test)) - (while l2 - (or (member (car l2) l1) - (push (car l2) l1)) - (pop l2)) - (while l2 - (or (memq (car l2) l1) - (push (car l2) l1)) - (pop l2))) - l1)))) - (declare-function gnus-add-text-properties "gnus" (start end properties &optional object)) diff --git a/lisp/gnus/mml-sec.el b/lisp/gnus/mml-sec.el index b4417507b8a..4744187994a 100644 --- a/lisp/gnus/mml-sec.el +++ b/lisp/gnus/mml-sec.el @@ -557,7 +557,7 @@ Return keys." (let* ((usage-prefs (mml-secure-cust-usage-lookup context usage)) (curr-fprs (cdr (assoc name (cdr usage-prefs)))) (key-fprs (mapcar 'mml-secure-fingerprint keys)) - (new-fprs (gnus-union curr-fprs key-fprs :test 'equal))) + (new-fprs (cl-union curr-fprs key-fprs :test 'equal))) (if curr-fprs (setcdr (assoc name (cdr usage-prefs)) new-fprs) (setcdr usage-prefs (cons (cons name new-fprs) (cdr usage-prefs))))