From 321ed8ebae8f84e0f8ae6cf2012f0f8830d9fda9 Mon Sep 17 00:00:00 2001 From: Stefan Monnier Date: Fri, 26 May 2023 11:18:49 -0400 Subject: [PATCH] * 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. --- lisp/emacs-lisp/package.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lisp/emacs-lisp/package.el b/lisp/emacs-lisp/package.el index e906c73ecab..69595601bc8 100644 --- a/lisp/emacs-lisp/package.el +++ b/lisp/emacs-lisp/package.el @@ -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. -- 2.39.5