[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/debbugs 840ef57 023/311: (debbugs-display-status): New
From: |
Stefan Monnier |
Subject: |
[elpa] externals/debbugs 840ef57 023/311: (debbugs-display-status): New command and keystroke. |
Date: |
Sun, 29 Nov 2020 18:41:32 -0500 (EST) |
branch: externals/debbugs
commit 840ef573e7ab7af845009968ae8cbcc36c33abcb
Author: Lars Magne Ingebrigtsen <larsi@gnus.org>
Commit: Lars Magne Ingebrigtsen <larsi@gnus.org>
(debbugs-display-status): New command and keystroke.
(debbugs-widget-map): New keymap.
(debbugs-emacs): Use it.
---
ChangeLog | 3 +++
debbugs-gnu.el | 39 +++++++++++++++++++++++++++------------
2 files changed, 30 insertions(+), 12 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index f2b1ba3..35cd683 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -4,6 +4,9 @@
clickable links, since that requires you to select certain parts
of the line, which is annoying.
(debbugs-show-reports): Store the status in the buffer.
+ (debbugs-display-status): New command and keystroke.
+ (debbugs-widget-map): New keymap.
+ (debbugs-emacs): Use it.
2011-07-03 Michael Albinus <michael.albinus@gmx.de>
diff --git a/debbugs-gnu.el b/debbugs-gnu.el
index 004560f..095b70d 100644
--- a/debbugs-gnu.el
+++ b/debbugs-gnu.el
@@ -47,6 +47,11 @@
(defface debbugs-done '((t (:foreground "DarkGrey")))
"Face for closed bug reports.")
+(defvar debbugs-widget-map
+ (let ((map (make-sparse-keymap)))
+ (define-key map "\r" 'widget-button-press)
+ map))
+
(defun debbugs-emacs (severities &optional package suppress-done archivedp)
"List all outstanding Emacs bugs."
(interactive
@@ -96,6 +101,7 @@
(widget-get widget :suppress-done)
widget
(widget-get widget :widgets)))
+ :keymap debbugs-widget-map
:suppress-done suppress-done
:buffer-name (format "*Emacs Bugs*<%d>" i)
:bug-ids (butlast ids (- (length ids) default))
@@ -213,6 +219,7 @@
(define-key map "\r" 'debbugs-select-report)
(define-key map "q" 'kill-buffer)
(define-key map "s" 'debbugs-toggle-sort)
+ (define-key map "d" 'debbugs-display-status)
map))
(defvar debbugs-sort-state 'number)
@@ -271,22 +278,30 @@ The following commands are available:
(defvar debbugs-bug-number nil)
(defun debbugs-current-id ()
- (cdr (assq 'id (get-text-property (line-beginning-position)
- 'debbugs-status))))
+ (or (cdr (assq 'id (get-text-property (line-beginning-position)
+ 'debbugs-status)))
+ (error "No bug on the current line")))
+
+(defun debbugs-display-status (id)
+ "Display the status of the report on the current line."
+ (interactive (list (debbugs-current-id)))
+ (let ((status (get-text-property (line-beginning-position)
+ 'debbugs-status)))
+ (pop-to-buffer "*Bug Status*")
+ (erase-buffer)
+ (pp status (current-buffer))
+ (goto-char (point-min))))
(defun debbugs-select-report (id)
"Select the report on the current line."
(interactive (list (debbugs-current-id)))
- (if (null id)
- ;; We go to another buffer.
- (widget-button-press (point))
- ;; We open the report messages.
- (gnus-read-ephemeral-emacs-bug-group
- id (cons (current-buffer)
- (current-window-configuration)))
- (with-current-buffer (window-buffer (selected-window))
- (debbugs-summary-mode 1)
- (set (make-local-variable 'debbugs-bug-number) id))))
+ ;; We open the report messages.
+ (gnus-read-ephemeral-emacs-bug-group
+ id (cons (current-buffer)
+ (current-window-configuration)))
+ (with-current-buffer (window-buffer (selected-window))
+ (debbugs-summary-mode 1)
+ (set (make-local-variable 'debbugs-bug-number) id)))))
(defvar debbugs-summary-mode-map
(let ((map (make-sparse-keymap)))
- [elpa] externals/debbugs 194921d 014/311: (debbugs-emacs): Default to list the done bugs., (continued)
- [elpa] externals/debbugs 194921d 014/311: (debbugs-emacs): Default to list the done bugs., Stefan Monnier, 2020/11/29
- [elpa] externals/debbugs 6777b9f 022/311: (debbugs-show-reports): Store the status in the buffer., Stefan Monnier, 2020/11/29
- [elpa] externals/debbugs 55886e2 024/311: (debbugs-toggle-sort): Make sorting work again., Stefan Monnier, 2020/11/29
- [elpa] externals/debbugs 1fdcac3 029/311: * debbugs-gnu.el (debbugs-widget-map): Add [mouse-1] and [mouse-2]., Stefan Monnier, 2020/11/29
- [elpa] externals/debbugs e1c8723 030/311: * debbugs-gnu.el (debbugs-owner): New face., Stefan Monnier, 2020/11/29
- [elpa] externals/debbugs e2ef75a 032/311: Make the "g" command work., Stefan Monnier, 2020/11/29
- [elpa] externals/debbugs 04754f0 035/311: * debbugs-gnu.el (debbugs-owner): Removed. We use `debbugs-tagged', Stefan Monnier, 2020/11/29
- [elpa] externals/debbugs a024431 036/311: * debbugs-gnu.el (debbugs-toggle-sort): Sort the tagged bugs at, Stefan Monnier, 2020/11/29
- [elpa] externals/debbugs 3771385 040/311: Bind `q' to `bury-buffer', which seems more useful., Stefan Monnier, 2020/11/29
- [elpa] externals/debbugs 9daf260 043/311: * debbugs-gnu.el (top): Add ; ; ; Commentary., Stefan Monnier, 2020/11/29
- [elpa] externals/debbugs 840ef57 023/311: (debbugs-display-status): New command and keystroke.,
Stefan Monnier <=
- [elpa] externals/debbugs 7ea3250 025/311: Remove spurious parenthesis., Stefan Monnier, 2020/11/29
- [elpa] externals/debbugs 3c40b4f 027/311: (debbugs-toggle-sort): Don't move point around so much., Stefan Monnier, 2020/11/29
- [elpa] externals/debbugs fa37024 028/311: (debbugs-summary-mode): Ignore submit@debbugs addresses, too., Stefan Monnier, 2020/11/29
- [elpa] externals/debbugs 63e5cf5 031/311: * debbugs-gnu.el (debbugs-rescan): New command and keystroke., Stefan Monnier, 2020/11/29
- [elpa] externals/debbugs efe1ecf 033/311: * debbugs-gnu.el (debbugs-select-report): Fetch all merged, Stefan Monnier, 2020/11/29
- [elpa] externals/debbugs 7687d6b 017/311: (debbugs-emacs): Display multiple merges prettier., Stefan Monnier, 2020/11/29
- [elpa] externals/debbugs c3f0eb7 026/311: (debbugs-toggle-sort): Use `debbugs-current-id'., Stefan Monnier, 2020/11/29
- [elpa] externals/debbugs bf5b708 034/311: * debbugs-gnu.el (debbugs-tagged): New face., Stefan Monnier, 2020/11/29
- [elpa] externals/debbugs 49237ca 037/311: (debbugs-emacs): Init the saved bugs on call, not on load., Stefan Monnier, 2020/11/29
- [elpa] externals/debbugs 73de9fa 038/311: (debbugs-dump-persistency-file): Don't destroy the list while saving it., Stefan Monnier, 2020/11/29