diff options
| author | David Kastrup | 2007-12-09 14:47:24 +0000 |
|---|---|---|
| committer | David Kastrup | 2007-12-09 14:47:24 +0000 |
| commit | 0e250bf8782b236076a03f470eab9ce3a26bccb5 (patch) | |
| tree | 144486b190ebe648f5456893adc3cf3ed9bbc954 | |
| parent | 316be4e813098bbdb0f959605b73ac4e15f51afd (diff) | |
| download | emacs-0e250bf8782b236076a03f470eab9ce3a26bccb5.tar.gz emacs-0e250bf8782b236076a03f470eab9ce3a26bccb5.zip | |
(lm-verify): Make it work with
directories. Not sure anybody uses this anymore, though.
| -rw-r--r-- | lisp/ChangeLog | 5 | ||||
| -rw-r--r-- | lisp/emacs-lisp/lisp-mnt.el | 23 |
2 files changed, 16 insertions, 12 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index e257cd96b91..5c44fc072ef 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2007-12-09 David Kastrup <dak@gnu.org> | ||
| 2 | |||
| 3 | * emacs-lisp/lisp-mnt.el (lm-verify): Make it work with | ||
| 4 | directories. Not sure anybody uses this anymore, though. | ||
| 5 | |||
| 1 | 2007-12-09 Vinicius Jose Latorre <viniciusjl@ig.com.br> | 6 | 2007-12-09 Vinicius Jose Latorre <viniciusjl@ig.com.br> |
| 2 | 7 | ||
| 3 | * printing.el: Fix pr-interface-map initialization. Replace | 8 | * printing.el: Fix pr-interface-map initialization. Replace |
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." | |||
| 511 | (if (and file (file-directory-p file)) | 511 | (if (and file (file-directory-p file)) |
| 512 | (setq ret | 512 | (setq ret |
| 513 | (with-temp-buffer | 513 | (with-temp-buffer |
| 514 | (mapcar | 514 | (dolist (f (directory-files file nil "\\.el\\'") |
| 515 | (lambda (f) | 515 | (buffer-string)) |
| 516 | (if (string-match ".*\\.el\\'" f) | 516 | (when (file-regular-p f) |
| 517 | (let ((status (lm-verify f))) | 517 | (let ((status (lm-verify f))) |
| 518 | (insert f ":") | 518 | (insert f ":") |
| 519 | (if status | 519 | (if status |
| 520 | (lm-insert-at-column lm-comment-column status | 520 | (lm-insert-at-column lm-comment-column status |
| 521 | "\n") | 521 | "\n") |
| 522 | (if showok | 522 | (if showok |
| 523 | (lm-insert-at-column lm-comment-column | 523 | (lm-insert-at-column lm-comment-column |
| 524 | "OK\n")))))) | 524 | "OK\n")))))))) |
| 525 | (directory-files file)))) | ||
| 526 | (lm-with-file file | 525 | (lm-with-file file |
| 527 | (setq name (lm-get-package-name)) | 526 | (setq name (lm-get-package-name)) |
| 528 | (setq ret | 527 | (setq ret |