[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
master 1acc7cb8514: Do not attempt to check declarations in lock files
From: |
Jonas Bernoulli |
Subject: |
master 1acc7cb8514: Do not attempt to check declarations in lock files |
Date: |
Tue, 20 Feb 2024 16:54:02 -0500 (EST) |
branch: master
commit 1acc7cb851417b83ae90fe4d0ee9f01af2e03722
Author: Jonas Bernoulli <jonas@bernoul.li>
Commit: Jonas Bernoulli <jonas@bernoul.li>
Do not attempt to check declarations in lock files
* lisp/emacs-lisp/check-declare.el (check-declare-directory): Do
not attempt to check declarations in lock files. (Bug#69084)
---
lisp/emacs-lisp/check-declare.el | 11 ++++++++---
1 file changed, 8 insertions(+), 3 deletions(-)
diff --git a/lisp/emacs-lisp/check-declare.el b/lisp/emacs-lisp/check-declare.el
index a6d1a330d90..faa7824c8bd 100644
--- a/lisp/emacs-lisp/check-declare.el
+++ b/lisp/emacs-lisp/check-declare.el
@@ -328,9 +328,14 @@ Returns non-nil if any false statements are found."
(setq root (directory-file-name (file-relative-name root)))
(or (file-directory-p root)
(error "Directory `%s' not found" root))
- (let ((files (directory-files-recursively root "\\.el\\'")))
- (when files
- (apply #'check-declare-files files))))
+ (when-let* ((files (directory-files-recursively root "\\.el\\'"))
+ (files (mapcan (lambda (file)
+ ;; Filter out lock files.
+ (and (not (string-prefix-p
+ ".#" (file-name-nondirectory file)))
+ (list file)))
+ files)))
+ (apply #'check-declare-files files)))
(provide 'check-declare)
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- master 1acc7cb8514: Do not attempt to check declarations in lock files,
Jonas Bernoulli <=