Commit 76f33281 authored by Tino Calancha's avatar Tino Calancha

cl-delete-duplicates: Parse :if to have cl-if bound

* lisp/emacs-lisp/cl-seq.el (cl--delete-duplicates):
We need also to parse keyword :if, otherwise cl-if
is unbound.
This reverts commit:
parent 68fdbeb9
......@@ -347,7 +347,8 @@ This is a destructive function; it reuses the storage of SEQ whenever possible.
(defun cl--delete-duplicates (cl-seq cl-keys cl-copy)
(if (listp cl-seq)
(:test :test-not :key (:start 0) :end :from-end)
;; We need to parse :if, otherwise `cl-if' is unbound.
(:test :test-not :key (:start 0) :end :from-end :if)
(if cl-from-end
(let ((cl-p (nthcdr cl-start cl-seq)) cl-i)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment