From: Eshel Yaron Date: Fri, 14 Jun 2024 12:25:04 +0000 (+0200) Subject: (read-library-name): Ignore *-autoloads.el files. X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=745cfd5e96316fd8101172af0df0cdb3c46f3d06;p=emacs.git (read-library-name): Ignore *-autoloads.el files. --- 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))))