aboutsummaryrefslogtreecommitdiffstats
path: root/lisp
diff options
context:
space:
mode:
Diffstat (limited to 'lisp')
-rw-r--r--lisp/emacs-lisp/package.el9
1 files changed, 6 insertions, 3 deletions
diff --git a/lisp/emacs-lisp/package.el b/lisp/emacs-lisp/package.el
index 645e831bcc9..8c8e86aead9 100644
--- a/lisp/emacs-lisp/package.el
+++ b/lisp/emacs-lisp/package.el
@@ -1082,10 +1082,13 @@ boundaries."
1082 (let ((file-name (match-string-no-properties 1)) 1082 (let ((file-name (match-string-no-properties 1))
1083 (desc (match-string-no-properties 2)) 1083 (desc (match-string-no-properties 2))
1084 (start (line-beginning-position))) 1084 (start (line-beginning-position)))
1085 ;; The terminating comment format could be extended to accept a 1085 ;; This warning was added in Emacs 27.1, and should be removed at
1086 ;; generic string that is not in English. 1086 ;; the earliest in version 31.1. The idea is to phase out the
1087 ;; requirement for a "footer line" without unduly impacting users
1088 ;; on earlier Emacs versions. See Bug#26490 for more details.
1087 (unless (search-forward (concat ";;; " file-name ".el ends here")) 1089 (unless (search-forward (concat ";;; " file-name ".el ends here"))
1088 (error "Package lacks a terminating comment")) 1090 (lwarn '(package package-format) :warning
1091 "Package lacks a terminating comment"))
1089 ;; Try to include a trailing newline. 1092 ;; Try to include a trailing newline.
1090 (forward-line) 1093 (forward-line)
1091 (narrow-to-region start (point)) 1094 (narrow-to-region start (point))