changeset 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 d5142579b974
children bc4976b7380e
files lisp/ChangeLog lisp/emacs-lisp/lisp-mnt.el
diffstat 2 files changed, 16 insertions(+), 12 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/ChangeLog	Sun Dec 09 13:37:03 2007 +0000
+++ b/lisp/ChangeLog	Sun Dec 09 14:47:24 2007 +0000
@@ -1,3 +1,8 @@
+2007-12-09  David Kastrup  <dak@gnu.org>
+
+	* emacs-lisp/lisp-mnt.el (lm-verify): Make it work with
+	directories.  Not sure anybody uses this anymore, though.
+
 2007-12-09  Vinicius Jose Latorre  <viniciusjl@ig.com.br>
 
 	* printing.el: Fix pr-interface-map initialization.  Replace
--- 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