* admin/admin.el (set-version): Check for empty NEWS sections.

This commit is contained in:
Glenn Morris 2019-09-01 14:35:31 -07:00
parent ba12c5467d
commit dd162a3f22

View file

@ -147,6 +147,10 @@ Root must be the root of an Emacs source tree."
(unless (> (length newversion) 2) ; pretest or release candidate?
(with-temp-buffer
(insert-file-contents newsfile)
(when (re-search-forward "^\\* [^\n]*\n+ " nil t)
(display-warning 'admin
"NEWS file contains empty sections - remove them?"))
(goto-char (point-min))
(if (re-search-forward "^\\(\\+\\+\\+ *\\|--- *\\)$" nil t)
(display-warning 'admin
"NEWS file still contains temporary markup.