Mercurial > emacs
changeset 14525:5322690a5a44
(rmail-find-all-files): In a directory, ignore `.' and `..'.
author | Richard M. Stallman <rms@gnu.org> |
---|---|
date | Fri, 09 Feb 1996 01:38:22 +0000 |
parents | 10110e5a680a |
children | e2db2835838d |
files | lisp/mail/rmail.el |
diffstat | 1 files changed, 4 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/lisp/mail/rmail.el Fri Feb 09 01:37:35 1996 +0000 +++ b/lisp/mail/rmail.el Fri Feb 09 01:38:22 1996 +0000 @@ -788,9 +788,10 @@ (while files (setq file (car files)) (setq files (cdr files)) - (setq ret (nconc - (rmail-find-all-files file) - ret))) + (or (member (file-name-nondirectory start) '("." "..")) + (setq ret (nconc + (rmail-find-all-files file) + ret)))) ;; Sort here instead of in directory-files ;; because this list is usually much shorter. (sort ret 'string<))