mirror of
git://git.sv.gnu.org/emacs.git
synced 2025-12-25 23:10:47 -08:00
Don't signal errors in check-declare-directory
* lisp/emacs-lisp/check-declare.el (check-declare-directory): Don't bug out if we don't find any files with declare-function:(bug#55354) because this is a predicate function, and that's inconvenient.
This commit is contained in:
parent
72b1007987
commit
ed1a24b4b2
1 changed files with 5 additions and 4 deletions
|
|
@ -319,10 +319,11 @@ 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 (process-lines find-program root
|
||||
"-name" "*.el"
|
||||
"-exec" grep-program
|
||||
"-l" "^[ \t]*(declare-function" "{}" "+")))
|
||||
(let ((files (process-lines-ignore-status
|
||||
find-program root
|
||||
"-name" "*.el"
|
||||
"-exec" grep-program
|
||||
"-l" "^[ \t]*(declare-function" "{}" "+")))
|
||||
(when files
|
||||
(apply #'check-declare-files files))))
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue