From: Glenn Morris Date: Sun, 1 Sep 2019 21:35:31 +0000 (-0700) Subject: * admin/admin.el (set-version): Check for empty NEWS sections. X-Git-Tag: emacs-27.0.90~1553^2~56 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=dd162a3f2264940e3e329d0bfb195f56d00ed08f;p=emacs.git * admin/admin.el (set-version): Check for empty NEWS sections. --- diff --git a/admin/admin.el b/admin/admin.el index d3a477fde80..5968e32b05e 100644 --- a/admin/admin.el +++ b/admin/admin.el @@ -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.