]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix up generation of help text for ldefs-boot.el
authorLars Ingebrigtsen <larsi@gnus.org>
Mon, 29 Nov 2021 21:39:57 +0000 (22:39 +0100)
committerLars Ingebrigtsen <larsi@gnus.org>
Mon, 29 Nov 2021 21:39:57 +0000 (22:39 +0100)
* lisp/emacs-lisp/autoload.el (autoload-rubric): Don't put the
help text into cedet/*/loaddefs.el (bug#51744).

lisp/emacs-lisp/autoload.el

index 148fb70981fc3fc7e6d6c022446ac4adeae2b3ec..23fb400249960581f3f02303b8291f45a90a4eaa 100644 (file)
@@ -393,7 +393,7 @@ FILE's name."
     (concat ";;; " basename
             " --- automatically extracted " (or type "autoloads")
             "  -*- lexical-binding: t -*-\n"
-            (when (equal basename "loaddefs.el")
+            (when (string-match "/lisp/loaddefs\\.el\\'" file)
               ";; This file will be copied to ldefs-boot.el and checked in periodically.\n")
            ";;\n"
            ";;; Code:\n\n"