(re-search-forward "is about changes in Emacs version \\([0-9]+\\)")
(replace-match (number-to-string newmajor) nil nil nil 1)
(re-search-forward "^See files \\(NEWS\\)")
- (replace-match (format "NEWS.%s, NEWS" oldmajor) nil nil nil 1)
- (let ((start (line-beginning-position)))
- (search-forward "in older Emacs versions")
- (or (equal start (line-beginning-position))
- (fill-region start (line-beginning-position 2))))
+ (unless (save-match-data
+ (when (looking-at "\\(\\..*\\), \\(\\.\\.\\.\\|…\\)")
+ (replace-match
+ (format ".%s, NEWS.%s" oldmajor (1- oldmajor))
+ nil nil nil 1)
+ t))
+ (replace-match (format "NEWS.%s, NEWS" oldmajor) nil nil nil 1)
+ (let ((start (line-beginning-position)))
+ (search-forward "in older Emacs versions")
+ (or (equal start (line-beginning-position))
+ (fill-region start (line-beginning-position 2)))))
(re-search-forward "^\f$")
(forward-line -1)
(let ((start (point)))
(provide 'admin)
;;; admin.el ends here
+
+;; Local Variables:
+;; coding: utf-8
+;; End:
This file is about changes in Emacs version 26.
See file HISTORY for a list of GNU Emacs versions and release dates.
-See files NEWS.25, NEWS.24, NEWS.23, NEWS.22, NEWS.21, NEWS.20,
-NEWS.19, NEWS.18, and NEWS.1-17 for changes in older Emacs versions.
+See files NEWS.25, NEWS.24, ..., NEWS.18, and NEWS.1-17 for changes
+in older Emacs versions.
You can narrow news to a specific version by calling 'view-emacs-news'
with a prefix argument or by typing C-u C-h C-n.