* lisp/emacs-lisp/package.el (package-buffer-info): Fix last change

The code that follows expects point to be at/near the end of the buffer.
This commit is contained in:
Stefan Monnier 2023-05-26 11:18:49 -04:00
parent bb7605c087
commit 321ed8ebae

View file

@ -1199,7 +1199,7 @@ boundaries."
;; the earliest in version 31.1. The idea is to phase out the
;; requirement for a "footer line" without unduly impacting users
;; on earlier Emacs versions. See Bug#26490 for more details.
(unless (search-forward (concat ";;; " file-name ".el ends here") nil t)
(unless (search-forward (concat ";;; " file-name ".el ends here") nil 'move)
(lwarn '(package package-format) :warning
"Package lacks a terminating comment"))
;; Try to include a trailing newline.