[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/debbugs f10da96 247/311: Fix debbugs-gnu-announce-commi
From: |
Stefan Monnier |
Subject: |
[elpa] externals/debbugs f10da96 247/311: Fix debbugs-gnu-announce-commit for ELPA bugs |
Date: |
Sun, 29 Nov 2020 18:42:22 -0500 (EST) |
branch: externals/debbugs
commit f10da96297abaa0c54a154ce382bfcb279b7ea7c
Author: Noam Postavsky <npostavs@users.sourceforge.net>
Commit: Noam Postavsky <npostavs@users.sourceforge.net>
Fix debbugs-gnu-announce-commit for ELPA bugs
* packages/debbugs/debbugs-gnu.el (debbugs-gnu-make-control-message):
Add NOVERSION parameter.
(debbugs-gnu-announce-commit): Use it when no emacs-version is found
in the repository where the commit came from.
---
debbugs-gnu.el | 29 ++++++++++++++++-------------
1 file changed, 16 insertions(+), 13 deletions(-)
diff --git a/debbugs-gnu.el b/debbugs-gnu.el
index 5020d96..c2309a8 100644
--- a/debbugs-gnu.el
+++ b/debbugs-gnu.el
@@ -1572,12 +1572,16 @@ removed instead."
(string-to-number
(match-string 1 addr)))))))))))))
-(defun debbugs-gnu-make-control-message (message bugid &optional reverse
buffer)
+(defun debbugs-gnu-make-control-message
+ (message bugid &optional reverse buffer noversion)
"Make a control message for the current bug report.
The message is inserted into BUFFER, and mail headers are adjust
so that it will be sent to control@debbugs.gnu.org (via Bcc if
there is already a To address). If BUFFER omitted, create and
-display a new buffer.
+display a new buffer. If optional NOVERSION is non-nil, suppress
+query for version number on \"close\", \"fixed\", etc messages.
+Otherwise, the version is queried for bugs whose package is
+\"emacs\".
When called interactively, choose the current buffer if it is in
`message-mode', or create a new buffer otherwise.
@@ -1609,6 +1613,7 @@ removed instead."
(car (debbugs-get-status bugid))))
(version
(if (and
+ (not noversion)
(member message '("close" "done"
"fixed" "notfixed" "found" "notfound"))
(member "emacs" (cdr (assq 'package status))))
@@ -1618,8 +1623,7 @@ removed instead."
(pcase (nbutlast (version-to-list emacs-version)
;; Chop off build number, if needed.
(if (boundp 'emacs-build-number)
- 0
- 1))
+ 0 1))
(`(,major ,minor ,_micro) ; Development version.
(format "%d.%d" major
(if (member
@@ -1860,17 +1864,16 @@ Optionally call `debbugs-gnu-make-control-message' to
close BUGNUM."
commit-range)
(when (y-or-n-p "Close bug? ")
(let ((emacs-version
- (or (and (member "emacs" packages)
- (file-exists-p "configure.ac")
- (with-temp-buffer
- (insert-file-contents "configure.ac")
- (and (re-search-forward "\
+ (and (member "emacs" packages)
+ (file-exists-p "configure.ac")
+ (with-temp-buffer
+ (insert-file-contents "configure.ac")
+ (and (re-search-forward "\
^ *AC_INIT(GNU Emacs, *\\([0-9.]+\\), *bug-gnu-emacs@gnu.org"
- nil t)
- (match-string 1))))
- "")))
+ nil t)
+ (match-string 1))))))
(debbugs-gnu-make-control-message
- "done" bugnum nil (current-buffer))))))
+ "done" bugnum nil (current-buffer) (not emacs-version))))))
(defun debbugs-gnu-post-patch (commit-range bugnum &optional format-patch-args)
"Attach COMMIT-RANGE as patches into current message.
- [elpa] externals/debbugs f41daeb 300/311: Release debbugs 0.26, (continued)
- [elpa] externals/debbugs f41daeb 300/311: Release debbugs 0.26, Stefan Monnier, 2020/11/29
- [elpa] externals/debbugs 8fe8934 310/311: Really fix typo in previous debbugs-gnu change, Stefan Monnier, 2020/11/29
- [elpa] externals/debbugs c615e66 187/311: Bump version number, Stefan Monnier, 2020/11/29
- [elpa] externals/debbugs bcfcc95 135/311: * debbugs-gnu.el (top): Make byte compiler quiet., Stefan Monnier, 2020/11/29
- [elpa] externals/debbugs e91cc0a 183/311: Increase the Debbugs version number, Stefan Monnier, 2020/11/29
- [elpa] externals/debbugs a447400 204/311: Document debbugs-gnu-send-mail-function, Stefan Monnier, 2020/11/29
- [elpa] externals/debbugs 4465f3c 216/311: debbugs-gnu.el: Add "26.1", Stefan Monnier, 2020/11/29
- [elpa] externals/debbugs 3f86ce3 218/311: Use "https" in debbugs bug URLs., Stefan Monnier, 2020/11/29
- [elpa] externals/debbugs 722796f 221/311: Fix bug#25784 in debbugs, Stefan Monnier, 2020/11/29
- [elpa] externals/debbugs 1022674 242/311: Minor cleanup in debbugs-gnu.el, Stefan Monnier, 2020/11/29
- [elpa] externals/debbugs f10da96 247/311: Fix debbugs-gnu-announce-commit for ELPA bugs,
Stefan Monnier <=
- [elpa] externals/debbugs c40d91c 241/311: * packages/debbugs/debbugs.el: Require Emacs 25.1., Stefan Monnier, 2020/11/29
- [elpa] externals/debbugs e234767 259/311: Don't insert two Summary lines in the commit message, Stefan Monnier, 2020/11/29
- [elpa] externals/debbugs dcb6956 262/311: * packages/debbugs/debbugs-ug.texi (Minor Mode): Show example of activation., Stefan Monnier, 2020/11/29
- [elpa] externals/debbugs c916195 270/311: * debbugs-gnu.el (debbugs-gnu-phrase-prompt): Small fix in help-echo., Stefan Monnier, 2020/11/29
- [elpa] externals/debbugs 930b0dd 275/311: * packages/debbugs/debbugs-gnu.el (debbugs-gnu-rescan): New argument NOCACHE., Stefan Monnier, 2020/11/29
- [elpa] externals/debbugs 84c56ad 280/311: Debbugs code cleanup, Stefan Monnier, 2020/11/29
- [elpa] externals/debbugs 9639e41 287/311: Release debbugs 0.22, Stefan Monnier, 2020/11/29
- [elpa] externals/debbugs e200440 299/311: Debbugs code cleanup, Stefan Monnier, 2020/11/29
- [elpa] externals/debbugs 0a2dd7d 308/311: Fix debbugs-gnu Subject setting when used directly from Gnus, Stefan Monnier, 2020/11/29
- [elpa] externals/debbugs 8e3045a 174/311: Allow reading debbugs from an offline cache, Stefan Monnier, 2020/11/29