]> code.delx.au - gnu-emacs-elpa/commitdiff
* debbugs.el (debbugs-send-control-message): Add severity and "done".
authorLars Magne Ingebrigtsen <larsi@gnus.org>
Fri, 1 Jul 2011 13:12:56 +0000 (15:12 +0200)
committerLars Magne Ingebrigtsen <larsi@gnus.org>
Fri, 1 Jul 2011 13:12:56 +0000 (15:12 +0200)
packages/debbugs/ChangeLog
packages/debbugs/debbugs.el

index ebf19a912b4cf5fe33000a99539907a7ffbb08db..c6d7d8644ffe2d7ef1395d6427ae0c63913a45d2 100644 (file)
@@ -1,3 +1,7 @@
+2011-07-01  Lars Magne Ingebrigtsen  <larsi@gnus.org>
+
+       * debbugs.el (debbugs-send-control-message): Add severity and "done".
+
 2011-06-30  Lars Magne Ingebrigtsen  <larsi@gnus.org>
 
        * debbugs.el (debbugs-emacs): New function and modes for listing
index 32a9e1d7ba772f7c7774c040c52fd4e6f9d0820d..be0e21c73fddad1caa6c23a7795351d86b4d8e88 100644 (file)
@@ -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)