]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix loaddefs generation
authorPo Lu <luangruo@yahoo.com>
Wed, 1 Jun 2022 10:21:36 +0000 (18:21 +0800)
committerPo Lu <luangruo@yahoo.com>
Wed, 1 Jun 2022 10:21:41 +0000 (18:21 +0800)
* lisp/emacs-lisp/loaddefs-gen.el (loaddefs-generate): Prevent
one kind of string match error.

lisp/emacs-lisp/loaddefs-gen.el

index 02f584d0af616f78ea86576fdea5b07cd70851f3..8dcb55d82d4e81ed6bc7818af53b38b4e3e9bbb8 100644 (file)
@@ -568,7 +568,7 @@ If INCLUDE-PACKAGE-VERSION, include package version data."
                       (search-backward "\f\n"))
                   ;; Delete the old version of the section.
                   (delete-region (match-beginning 0)
-                                 (and (search-forward "\n\f\n;;;")
+                                 (and (search-forward "\n\f\n;;;" nil t)
                                       (match-beginning 0)))
                   (forward-line -2)))
               (insert head)