Mercurial > emacs
diff lisp/emacs-lisp/lisp-mnt.el @ 87208:87e24ce4f26a
(lm-verify): Make it work with
directories. Not sure anybody uses this anymore, though.
author | David Kastrup <dak@gnu.org> |
---|---|
date | Sun, 09 Dec 2007 14:47:24 +0000 |
parents | e50a2e215441 |
children | 107ccd98fa12 2fcaae6177a5 |
line wrap: on
line diff
--- a/lisp/emacs-lisp/lisp-mnt.el Sun Dec 09 13:37:03 2007 +0000 +++ b/lisp/emacs-lisp/lisp-mnt.el Sun Dec 09 14:47:24 2007 +0000 @@ -511,18 +511,17 @@ (if (and file (file-directory-p file)) (setq ret (with-temp-buffer - (mapcar - (lambda (f) - (if (string-match ".*\\.el\\'" f) - (let ((status (lm-verify f))) - (insert f ":") - (if status - (lm-insert-at-column lm-comment-column status - "\n") - (if showok - (lm-insert-at-column lm-comment-column - "OK\n")))))) - (directory-files file)))) + (dolist (f (directory-files file nil "\\.el\\'") + (buffer-string)) + (when (file-regular-p f) + (let ((status (lm-verify f))) + (insert f ":") + (if status + (lm-insert-at-column lm-comment-column status + "\n") + (if showok + (lm-insert-at-column lm-comment-column + "OK\n")))))))) (lm-with-file file (setq name (lm-get-package-name)) (setq ret