1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2025-12-15 10:30:25 -08:00

Add command to delete temporary markers in NEWS

* lisp/textmodes/emacs-news-mode.el
(emacs-news-delete-temporary-markers): New command.
* admin/make-tarball.txt: Update instructions.
This commit is contained in:
Stefan Kangas 2022-09-16 16:06:09 +02:00
parent ec2dfd110c
commit d407bdfd01
2 changed files with 17 additions and 5 deletions

View file

@ -52,11 +52,12 @@ General steps (for each step, check for possible errors):
./autogen.sh
./configure --with-native-compilation && make
For a release (as opposed to pretest), delete any left-over "---"
and "+++" markers from etc/NEWS, as well as the "Temporary note"
section at the beginning of that file, and commit etc/NEWS if it
was modified. For a bug fix release (e.g. 28.2), delete any empty
headlines too.
For a release (as opposed to pretest), visit etc/NEWS and use the
"M-x emacs-news-delete-temporary-markers" command to delete any
left-over "---" and "+++" markers from etc/NEWS, as well as the
"Temporary note" section at the beginning of that file, and commit
etc/NEWS if it was modified. For a bug fix release (e.g. 28.2),
delete any empty headlines too.
2. Regenerate the versioned ChangeLog.N and etc/AUTHORS files.

View file

@ -276,6 +276,17 @@ documentation marks on the previous line."
(forward-line -1))
(open-line n))
(defun emacs-news-delete-temporary-markers ()
"Delete any temporary markers.
This is used when preparing a new release of Emacs."
(interactive nil emacs-news-mode)
(goto-char (point-min))
(re-search-forward "^Temporary note:$")
(forward-line -1)
(delete-region (point) (save-excursion (forward-paragraph) (point)))
(while (re-search-forward (rx bol (or "+++" "---") eol) nil t)
(delete-line)))
(provide 'emacs-news-mode)
;;; emacs-news-mode.el ends here