diff options
author | David Kastrup <dak@gnu.org> | 2007-12-09 14:47:24 +0000 |
---|---|---|
committer | David Kastrup <dak@gnu.org> | 2007-12-09 14:47:24 +0000 |
commit | 0e250bf8782b236076a03f470eab9ce3a26bccb5 (patch) | |
tree | 144486b190ebe648f5456893adc3cf3ed9bbc954 /lisp/emacs-lisp/lisp-mnt.el | |
parent | 316be4e813098bbdb0f959605b73ac4e15f51afd (diff) | |
download | emacs-0e250bf8782b236076a03f470eab9ce3a26bccb5.tar.gz emacs-0e250bf8782b236076a03f470eab9ce3a26bccb5.tar.bz2 emacs-0e250bf8782b236076a03f470eab9ce3a26bccb5.zip |
(lm-verify): Make it work with
directories. Not sure anybody uses this anymore, though.
Diffstat (limited to 'lisp/emacs-lisp/lisp-mnt.el')
-rw-r--r-- | lisp/emacs-lisp/lisp-mnt.el | 23 |
1 files changed, 11 insertions, 12 deletions
diff --git a/lisp/emacs-lisp/lisp-mnt.el b/lisp/emacs-lisp/lisp-mnt.el index bf7c4147309..8d098a443fe 100644 --- a/lisp/emacs-lisp/lisp-mnt.el +++ b/lisp/emacs-lisp/lisp-mnt.el @@ -511,18 +511,17 @@ copyright notice is allowed." (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 |