aboutsummaryrefslogtreecommitdiffstats
path: root/admin
diff options
context:
space:
mode:
authorGlenn Morris2017-10-20 19:14:34 -0400
committerGlenn Morris2017-10-20 19:14:34 -0400
commit7c63655e39dacf7263495aa3fb8429a1e2f894a6 (patch)
treec94fd5948335b39f4f408398f6944ab292e7a5a6 /admin
parentef3d8505ecc0d44517abc82ec2be04f4bb286bd6 (diff)
downloademacs-7c63655e39dacf7263495aa3fb8429a1e2f894a6.tar.gz
emacs-7c63655e39dacf7263495aa3fb8429a1e2f894a6.zip
Tweak format of list of old files in NEWS header
* etc/NEWS: Stop list of old NEWS files growing without limit. * admin/admin.el (set-version): Handle either NEWS header format.
Diffstat (limited to 'admin')
-rw-r--r--admin/admin.el20
1 files changed, 15 insertions, 5 deletions
diff --git a/admin/admin.el b/admin/admin.el
index b2adfbf9f76..bedb6b2c032 100644
--- a/admin/admin.el
+++ b/admin/admin.el
@@ -158,11 +158,17 @@ Documentation changes might not have been completed!"))))
158 (re-search-forward "is about changes in Emacs version \\([0-9]+\\)") 158 (re-search-forward "is about changes in Emacs version \\([0-9]+\\)")
159 (replace-match (number-to-string newmajor) nil nil nil 1) 159 (replace-match (number-to-string newmajor) nil nil nil 1)
160 (re-search-forward "^See files \\(NEWS\\)") 160 (re-search-forward "^See files \\(NEWS\\)")
161 (replace-match (format "NEWS.%s, NEWS" oldmajor) nil nil nil 1) 161 (unless (save-match-data
162 (let ((start (line-beginning-position))) 162 (when (looking-at "\\(\\..*\\), \\(\\.\\.\\.\\|…\\)")
163 (search-forward "in older Emacs versions") 163 (replace-match
164 (or (equal start (line-beginning-position)) 164 (format ".%s, NEWS.%s" oldmajor (1- oldmajor))
165 (fill-region start (line-beginning-position 2)))) 165 nil nil nil 1)
166 t))
167 (replace-match (format "NEWS.%s, NEWS" oldmajor) nil nil nil 1)
168 (let ((start (line-beginning-position)))
169 (search-forward "in older Emacs versions")
170 (or (equal start (line-beginning-position))
171 (fill-region start (line-beginning-position 2)))))
166 (re-search-forward "^ $") 172 (re-search-forward "^ $")
167 (forward-line -1) 173 (forward-line -1)
168 (let ((start (point))) 174 (let ((start (point)))
@@ -893,3 +899,7 @@ changes (in a non-trivial way). This function does not check for that."
893(provide 'admin) 899(provide 'admin)
894 900
895;;; admin.el ends here 901;;; admin.el ends here
902
903;; Local Variables:
904;; coding: utf-8
905;; End: