[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/debbugs 4c9f22b 148/311: Command to list blocking repor
From: |
Stefan Monnier |
Subject: |
[elpa] externals/debbugs 4c9f22b 148/311: Command to list blocking reports |
Date: |
Sun, 29 Nov 2020 18:41:59 -0500 (EST) |
branch: externals/debbugs
commit 4c9f22bd0903fb7bf9fb034cf7598873fcec5703
Author: Lars Ingebrigtsen <larsi@gnus.org>
Commit: Lars Ingebrigtsen <larsi@gnus.org>
Command to list blocking reports
* debbugs-gnu.el (debbugs-gnu-show-all-blocking-reports): List
just blocking reports.
---
debbugs-gnu.el | 24 ++++++++++++++++++++++++
debbugs-ug.texi | 27 ++++++++++++++++++---------
2 files changed, 42 insertions(+), 9 deletions(-)
diff --git a/debbugs-gnu.el b/debbugs-gnu.el
index ce225b2..0136831 100644
--- a/debbugs-gnu.el
+++ b/debbugs-gnu.el
@@ -168,6 +168,9 @@
:group 'debbugs
:version "24.1")
+(defvar debbugs-gnu-blocking-report 19759
+ "The ID of the current release report used to track blocking bug reports.")
+
(defcustom debbugs-gnu-default-severities '("serious" "important" "normal")
"*The list severities bugs are searched for.
\"tagged\" is not a severity but marks locally tagged bugs."
@@ -825,6 +828,7 @@ Used instead of `tabulated-list-print-entry'."
(define-key map "b" 'debbugs-gnu-show-blocked-by-reports)
(define-key map "B" 'debbugs-gnu-show-blocking-reports)
(define-key map "C" 'debbugs-gnu-send-control-message)
+ (define-key map "R" 'debbugs-gnu-show-all-blocking-reports)
map))
(defun debbugs-gnu-rescan ()
@@ -977,6 +981,26 @@ The following commands are available:
(message "Bug %d is not blocking any other bug" id)
(apply 'debbugs-gnu-bugs (cdr (assq 'blocks status))))))
+(defun debbugs-gnu-show-all-blocking-reports ()
+ "Narrow the display to just the reports that are blocking a release."
+ (interactive)
+ (let ((blockers (cdr (assq 'blockedby
+ (car (debbugs-get-status
+ debbugs-gnu-blocking-report)))))
+ (id (debbugs-gnu-current-id t))
+ (inhibit-read-only t)
+ status)
+ (setq debbugs-gnu-current-limit nil)
+ (goto-char (point-min))
+ (while (not (eobp))
+ (setq status (debbugs-gnu-current-status))
+ (if (not (memq (cdr (assq 'id status)) blockers))
+ (delete-region (point) (progn (forward-line 1) (point)))
+ (push (cdr (assq 'id status)) debbugs-gnu-current-limit)
+ (forward-line 1)))
+ (when id
+ (debbugs-gnu-goto id))))
+
(defun debbugs-gnu-narrow-to-status (string &optional status-only)
"Only display the bugs matching STRING.
If STATUS-ONLY (the prefix), ignore matches in the From and
diff --git a/debbugs-ug.texi b/debbugs-ug.texi
index 4af04f5..f885125 100644
--- a/debbugs-ug.texi
+++ b/debbugs-ug.texi
@@ -334,15 +334,24 @@ Show the email messages that discuss the bug.
@code{debbugs-gnu-display-status} @*
Show all bug attributes.
-@c @item
-@c @kindex @kbd{/}
-@c @kbd{/} @tab
-@c @code{debbugs-gnu-narrow-to-status}
-
-@c @item
-@c @kindex @kbd{w}
-@c @kbd{w} @tab
-@c @code{debbugs-gnu-widen}
+@item
+@kindex @kbd{/}
+@kbd{/} @tab
+@code{debbugs-gnu-narrow-to-status}
+Narrow the list of bugs to the bugs that match the given regex.
+
+@item
+@kindex @kbd{w}
+@kbd{w} @tab
+@code{debbugs-gnu-widen}
+Restore the full list again after narrowing.
+
+@item
+@kindex @kbd{R}
+@kbd{R} @tab
+@code{debbugs-gnu-show-all-blocking-reports}
+Narrow the list of reports to the ones that are blocking the current
+release.
@item
@kindex @kbd{g}
- [elpa] externals/debbugs 9b62ae8 119/311: * debbugs-org.el (debbugs-org-show-next-reports): Use `org-sbe' if available., (continued)
- [elpa] externals/debbugs 9b62ae8 119/311: * debbugs-org.el (debbugs-org-show-next-reports): Use `org-sbe' if available., Stefan Monnier, 2020/11/29
- [elpa] externals/debbugs c0648d6 121/311: * README: Fix command invocation., Stefan Monnier, 2020/11/29
- [elpa] externals/debbugs 394f5ff 122/311: * debbugs/debbugs-gnu.el (debbugs-gnu-default-packages): Remove w32, ns., Stefan Monnier, 2020/11/29
- [elpa] externals/debbugs 2e43897 127/311: Also suppress all locally tagged bug reports, Stefan Monnier, 2020/11/29
- [elpa] externals/debbugs cfb0bdb 128/311: Really allow narrowing to subject fields, Stefan Monnier, 2020/11/29
- [elpa] externals/debbugs 3cf7c83 129/311: Make an empty `/' command display all the bugs, Stefan Monnier, 2020/11/29
- [elpa] externals/debbugs a0b4b2e 131/311: Require compile before using variables from that package, Stefan Monnier, 2020/11/29
- [elpa] externals/debbugs c9989ec 133/311: New manual debbugs-ug.texi, Stefan Monnier, 2020/11/29
- [elpa] externals/debbugs 9ba8dcc 139/311: Minor improvements to debbugs-reference.el, Stefan Monnier, 2020/11/29
- [elpa] externals/debbugs 8de636e 140/311: Rename debbugs-reference.el to debbugs-browse.el, Stefan Monnier, 2020/11/29
- [elpa] externals/debbugs 4c9f22b 148/311: Command to list blocking reports,
Stefan Monnier <=
- [elpa] externals/debbugs f4bc079 151/311: * debbugs-gnu.el (debbugs-gnu-narrow-to-status): Make narrowing to the severity work., Stefan Monnier, 2020/11/29
- [elpa] externals/debbugs 6d52539 143/311: Support reading debbugs email exchange with Rmail, Stefan Monnier, 2020/11/29
- [elpa] externals/debbugs 02fa6d4 144/311: Version: bump to 0.8 in debbugs files, Stefan Monnier, 2020/11/29
- [elpa] externals/debbugs 23786a1 146/311: * debbugs-gnu.el (debbugs-gnu-select-report): Don't bug out on the, Stefan Monnier, 2020/11/29
- [elpa] externals/debbugs ea69942 155/311: Allow patching from non-MIME articles, Stefan Monnier, 2020/11/29
- [elpa] externals/debbugs 78ad396 157/311: Further tweaks to the patch fixer-upper (for a/erc.el), Stefan Monnier, 2020/11/29
- [elpa] externals/debbugs 20cf154 160/311: Retrieve bugs asynchronously, Stefan Monnier, 2020/11/29
- [elpa] externals/debbugs bd894ed 161/311: Move asynchronous calls in debbugs to SOAP function level., Stefan Monnier, 2020/11/29
- [elpa] externals/debbugs 82ea47b 164/311: Consolidation in debbugs, Stefan Monnier, 2020/11/29
- [elpa] externals/debbugs d0e991e 165/311: Cache and reuse bug entries in debbugs, Stefan Monnier, 2020/11/29