From dd162a3f2264940e3e329d0bfb195f56d00ed08f Mon Sep 17 00:00:00 2001 From: Glenn Morris Date: Sun, 1 Sep 2019 14:35:31 -0700 Subject: [PATCH] * admin/admin.el (set-version): Check for empty NEWS sections. --- admin/admin.el | 4 ++++ 1 file changed, 4 insertions(+) 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. -- 2.39.5