Function: pcomplete-pare-list

pcomplete-pare-list is a byte-compiled function defined in pcmpl-linux.el.gz.

Signature

(pcomplete-pare-list L R)

Documentation

Destructively remove from list L all elements matching any in list R.

Test is done using equal.

Source Code

;; Defined in /usr/src/emacs/lisp/pcmpl-linux.el.gz
(defun pcomplete-pare-list (l r)
  "Destructively remove from list L all elements matching any in list R.
Test is done using `equal'."
  (while (and l (and r (member (car l) r)))
    (setq l (cdr l)))
  (let ((m l))
    (while m
      (while (and (cdr m)
		  (and r (member (cadr m) r)))
	(setcdr m (cddr m)))
      (setq m (cdr m))))
  l)