emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] emacs-25 a1ef10e: More NEWS checking for admin.el's set-ve


From: Glenn Morris
Subject: [Emacs-diffs] emacs-25 a1ef10e: More NEWS checking for admin.el's set-version
Date: Tue, 17 Jan 2017 21:10:25 +0000 (UTC)

branch: emacs-25
commit a1ef10e6a0a216e80551dd179fc511ea8fdc4c88
Author: Glenn Morris <address@hidden>
Commit: Glenn Morris <address@hidden>

    More NEWS checking for admin.el's set-version
    
    * admin/admin.el (set-version): Warn if temporary NEWS markup
    still present in release candidates.
---
 admin/admin.el |    7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/admin/admin.el b/admin/admin.el
index 4892045..7b9f01f 100644
--- a/admin/admin.el
+++ b/admin/admin.el
@@ -143,6 +143,13 @@ Root must be the root of an Emacs source tree."
                          (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)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]