]> git.eshelyaron.com Git - emacs.git/commitdiff
(read-library-name): Ignore *-autoloads.el files.
authorEshel Yaron <me@eshelyaron.com>
Fri, 14 Jun 2024 12:25:04 +0000 (14:25 +0200)
committerEshel Yaron <me@eshelyaron.com>
Sat, 15 Jun 2024 17:21:07 +0000 (19:21 +0200)
lisp/emacs-lisp/find-func.el

index ecf24c5069802cca9d6f5c200eb9c7bce7d77363..dde68ca614a00ebb14b55fede06a967375acf82b 100644 (file)
@@ -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))))