summaryrefslogtreecommitdiff
path: root/admin
diff options
context:
space:
mode:
authorGlenn Morris <rgm@gnu.org>2019-09-01 14:35:31 -0700
committerGlenn Morris <rgm@gnu.org>2019-09-01 14:35:31 -0700
commitdd162a3f2264940e3e329d0bfb195f56d00ed08f (patch)
tree9c63b240814603b5853c7e1c894b9ffdc8eac8f1 /admin
parentba12c5467dadd228a00bcf972fd8415c26f4a4bd (diff)
downloademacs-dd162a3f2264940e3e329d0bfb195f56d00ed08f.tar.gz
* admin/admin.el (set-version): Check for empty NEWS sections.
Diffstat (limited to 'admin')
-rw-r--r--admin/admin.el4
1 files changed, 4 insertions, 0 deletions
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.