* admin/admin.el (set-version): Check for empty NEWS sections.
This commit is contained in:
parent
ba12c5467d
commit
dd162a3f22
1 changed files with 4 additions and 0 deletions
|
@ -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.
|
||||
|
|
Loading…
Add table
Reference in a new issue