Function: ibuffer-remove-duplicates

ibuffer-remove-duplicates is a byte-compiled function defined in ibuf-ext.el.gz.

Signature

(ibuffer-remove-duplicates LIST)

Documentation

Return a copy of LIST with duplicate elements removed.

Source Code

;; Defined in /usr/src/emacs/lisp/ibuf-ext.el.gz
;; borrowed from Gnus
(defun ibuffer-remove-duplicates (list)
  "Return a copy of LIST with duplicate elements removed."
  (let ((new nil)
	(tail list))
    (while tail
      (or (member (car tail) new)
	  (setq new (cons (car tail) new)))
      (setq tail (cdr tail)))
    (nreverse new)))