Function: ls-lisp-delete-matching

ls-lisp-delete-matching is a byte-compiled function defined in ls-lisp.el.gz.

Signature

(ls-lisp-delete-matching REGEXP LIST)

Documentation

Delete all elements matching REGEXP from LIST, return new list.

Source Code

;; Defined in /usr/src/emacs/lisp/ls-lisp.el.gz
(defun ls-lisp-delete-matching (regexp list)
  "Delete all elements matching REGEXP from LIST, return new list."
  ;; Should perhaps use setcdr for efficiency.
  (let (result)
    (while list
      (or (string-match regexp (caar list))
	  (setq result (cons (car list) result)))
      (setq list (cdr list)))
    result))