From faa8f38502b1c3b09167ab52b07842f44b833dde Mon Sep 17 00:00:00 2001 From: Paul Eggert Date: Fri, 13 May 2016 08:37:56 -0700 Subject: [PATCH] Tweak check-declare-directory performance MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit * lisp/emacs-lisp/check-declare.el (check-declare-directory): Use ‘find ... -exec ... +’ for speed. --- lisp/emacs-lisp/check-declare.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lisp/emacs-lisp/check-declare.el b/lisp/emacs-lisp/check-declare.el index b6fa0546088..bc7b5aed57a 100644 --- a/lisp/emacs-lisp/check-declare.el +++ b/lisp/emacs-lisp/check-declare.el @@ -342,7 +342,7 @@ Returns non-nil if any false statements are found." (setq files (process-lines find-program root "-name" "*.el" "-exec" grep-program - "-l" "^[ \t]*(declare-function" "{}" ";")) + "-l" "^[ \t]*(declare-function" "{}" "+")) (message "%s%d found" m2 (length files)) (when files (setq errlist (apply 'check-declare-files files)) -- 2.39.2