branch: externals/debbugs
commit 7f40e27c82e62cbeef6e6e0897038b9767fdeea1
Author: Lars Magne Ingebrigtsen <[email protected]>
Commit: Lars Magne Ingebrigtsen <[email protected]>
* debbugs.el (debbugs-send-control-message): Add severity and "done".
---
ChangeLog | 4 ++++
debbugs.el | 21 +++++++++++++++------
2 files changed, 19 insertions(+), 6 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index ebf19a9..c6d7d86 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2011-07-01 Lars Magne Ingebrigtsen <[email protected]>
+
+ * debbugs.el (debbugs-send-control-message): Add severity and "done".
+
2011-06-30 Lars Magne Ingebrigtsen <[email protected]>
* debbugs.el (debbugs-emacs): New function and modes for listing
diff --git a/debbugs.el b/debbugs.el
index 32a9e1d..be0e21c 100644
--- a/debbugs.el
+++ b/debbugs.el
@@ -506,11 +506,17 @@ The following commands are available:
nil)
(defun debbugs-send-control-message (message)
- "Send a control message for the current bug report."
+ "Send a control message for the current bug report.
+You can set the severity or add a tag, or close the report. If
+you use the special `done' MESSAGE, the report will be marked as
+fixed, and then closed."
(interactive
- (list (completing-read "Control message: "
- '("important" "normal" "minor" "wishlist"
- "wontfix" "close"))))
+ (list (completing-read
+ "Control message: "
+ '("important" "normal" "minor" "wishlist"
+ "close" "done"
+ "patch" "wontfix" "moreinfo" "unreproducible" "fixed" "notabug")
+ nil t)))
(let* ((subject (mail-header-subject (gnus-summary-article-header)))
(id
(if (string-match "bug#\\([0-9]+\\)" subject)
@@ -524,9 +530,12 @@ The following commands are available:
(cond
((equal message "close")
(format "close %d\n" id))
+ ((equal message "done")
+ (format "tags %d fixed\bclose %d\n" id id))
+ ((member message '("important" "normal" "minor" "wishlist"))
+ (format "severity %d %s\n" id message))
(t
- (format "tags %d %s\n" id message)))
- "thanks\n")
+ (format "tags %d %s\n" id message))))
(funcall send-mail-function))))
(provide 'debbugs)