aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStefan Kangas2022-09-16 16:06:09 +0200
committerStefan Kangas2022-09-16 16:14:43 +0200
commitd407bdfd01a8fa4a1a20b8b0f1d07629be4ae54f (patch)
tree59c3009cf7b9f0cb347b27767e43bca76f63b48c
parentec2dfd110c407038ab1abc7fd713d37ada91edd9 (diff)
downloademacs-d407bdfd01a8fa4a1a20b8b0f1d07629be4ae54f.tar.gz
emacs-d407bdfd01a8fa4a1a20b8b0f1d07629be4ae54f.zip
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.
-rw-r--r--admin/make-tarball.txt11
-rw-r--r--lisp/textmodes/emacs-news-mode.el11
2 files changed, 17 insertions, 5 deletions
diff --git a/admin/make-tarball.txt b/admin/make-tarball.txt
index ad2aacb57a9..9a406b24fa1 100644
--- a/admin/make-tarball.txt
+++ b/admin/make-tarball.txt
@@ -52,11 +52,12 @@ General steps (for each step, check for possible errors):
52 ./autogen.sh 52 ./autogen.sh
53 ./configure --with-native-compilation && make 53 ./configure --with-native-compilation && make
54 54
55 For a release (as opposed to pretest), delete any left-over "---" 55 For a release (as opposed to pretest), visit etc/NEWS and use the
56 and "+++" markers from etc/NEWS, as well as the "Temporary note" 56 "M-x emacs-news-delete-temporary-markers" command to delete any
57 section at the beginning of that file, and commit etc/NEWS if it 57 left-over "---" and "+++" markers from etc/NEWS, as well as the
58 was modified. For a bug fix release (e.g. 28.2), delete any empty 58 "Temporary note" section at the beginning of that file, and commit
59 headlines too. 59 etc/NEWS if it was modified. For a bug fix release (e.g. 28.2),
60 delete any empty headlines too.
60 61
612. Regenerate the versioned ChangeLog.N and etc/AUTHORS files. 622. Regenerate the versioned ChangeLog.N and etc/AUTHORS files.
62 63
diff --git a/lisp/textmodes/emacs-news-mode.el b/lisp/textmodes/emacs-news-mode.el
index 6bf96deaccb..88e89480609 100644
--- a/lisp/textmodes/emacs-news-mode.el
+++ b/lisp/textmodes/emacs-news-mode.el
@@ -276,6 +276,17 @@ documentation marks on the previous line."
276 (forward-line -1)) 276 (forward-line -1))
277 (open-line n)) 277 (open-line n))
278 278
279(defun emacs-news-delete-temporary-markers ()
280 "Delete any temporary markers.
281This is used when preparing a new release of Emacs."
282 (interactive nil emacs-news-mode)
283 (goto-char (point-min))
284 (re-search-forward "^Temporary note:$")
285 (forward-line -1)
286 (delete-region (point) (save-excursion (forward-paragraph) (point)))
287 (while (re-search-forward (rx bol (or "+++" "---") eol) nil t)
288 (delete-line)))
289
279(provide 'emacs-news-mode) 290(provide 'emacs-news-mode)
280 291
281;;; emacs-news-mode.el ends here 292;;; emacs-news-mode.el ends here