aboutsummaryrefslogtreecommitdiffstats
path: root/admin
diff options
context:
space:
mode:
Diffstat (limited to 'admin')
-rw-r--r--admin/admin.el7
1 files changed, 7 insertions, 0 deletions
diff --git a/admin/admin.el b/admin/admin.el
index a6ef19c9aba..5428e3a10bc 100644
--- a/admin/admin.el
+++ b/admin/admin.el
@@ -141,6 +141,13 @@ Root must be the root of an Emacs source tree."
141 (not (equal (cadr oldversion) (cadr newversion))))) 141 (not (equal (cadr oldversion) (cadr newversion)))))
142 (newsfile (expand-file-name "etc/NEWS" root)) 142 (newsfile (expand-file-name "etc/NEWS" root))
143 (oldnewsfile (expand-file-name (format "etc/NEWS.%s" oldmajor) root))) 143 (oldnewsfile (expand-file-name (format "etc/NEWS.%s" oldmajor) root)))
144 (unless (> (length newversion) 2) ; pretest or release candidate?
145 (with-temp-buffer
146 (insert-file-contents newsfile)
147 (if (re-search-forward "^\\(+++ *\\|--- *\\)$" nil t)
148 (display-warning 'admin
149 "NEWS file still contains temporary markup.
150Documentation changes might not have been completed!"))))
144 (when (and majorbump 151 (when (and majorbump
145 (not (file-exists-p oldnewsfile))) 152 (not (file-exists-p oldnewsfile)))
146 (rename-file newsfile oldnewsfile) 153 (rename-file newsfile oldnewsfile)