(not (equal (cadr oldversion) (cadr newversion)))))
(newsfile (expand-file-name "etc/NEWS" root))
(oldnewsfile (expand-file-name (format "etc/NEWS.%s" oldmajor) root)))
+ (unless (> (length newversion) 2) ; pretest or release candidate?
+ (with-temp-buffer
+ (insert-file-contents newsfile)
+ (if (re-search-forward "^\\(+++ *\\|--- *\\)$" nil t)
+ (display-warning 'admin
+ "NEWS file still contains temporary markup.
+Documentation changes might not have been completed!"))))
(when (and majorbump
(not (file-exists-p oldnewsfile)))
(rename-file newsfile oldnewsfile)