From 745cfd5e96316fd8101172af0df0cdb3c46f3d06 Mon Sep 17 00:00:00 2001 From: Eshel Yaron Date: Fri, 14 Jun 2024 14:25:04 +0200 Subject: [PATCH] (read-library-name): Ignore *-autoloads.el files. --- lisp/emacs-lisp/find-func.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lisp/emacs-lisp/find-func.el b/lisp/emacs-lisp/find-func.el index ecf24c50698..dde68ca614a 100644 --- a/lisp/emacs-lisp/find-func.el +++ b/lisp/emacs-lisp/find-func.el @@ -420,7 +420,8 @@ omitted it defaults to \"Library name\"." (lambda (library) ;; Filter out spurious non-libraries. (not (or (string= library ".dir-locals") - (string-suffix-p "-pkg" library)))) + (string-suffix-p "-pkg" library) + (string-suffix-p "-autoloads" library)))) (read-library-name--find-files (or find-library-source-path load-path) (find-library-suffixes)))) -- 2.39.2