mirror of
git://git.sv.gnu.org/emacs.git
synced 2025-12-09 07:40:39 -08:00
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)
This commit is contained in:
parent
167d9b9040
commit
1acc7cb851
1 changed files with 8 additions and 3 deletions
|
|
@ -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)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue