# HG changeset patch # User Juanma Barranquero # Date 1121892113 0 # Node ID 7a1446b50929c845aff34ea55fb9d0285b6bed14 # Parent f1a7394cf1a7cdca316fb64493ea0d3e73e7d440 (prune-directory-list): Fix typos in docstring. diff -r f1a7394cf1a7 -r 7a1446b50929 lisp/paths.el --- a/lisp/paths.el Wed Jul 20 17:54:26 2005 +0000 +++ b/lisp/paths.el Wed Jul 20 20:41:53 2005 +0000 @@ -37,13 +37,13 @@ ;; DOC file rather than in memory. (defun prune-directory-list (dirs &optional keep reject) - "Returns a copy of DIRS with all non-existant directories removed. + "Returns a copy of DIRS with all non-existent directories removed. The optional argument KEEP is a list of directories to retain even if they don't exist, and REJECT is a list of directories to remove from DIRS, even if they exist; REJECT takes precedence over KEEP. Note that membership in REJECT and KEEP is checked using simple string -comparision." +comparison." (apply #'nconc (mapcar (lambda (dir) (and (not (member dir reject))