both bug-gnu-emacs (etc) and debbugs.
(debbugs-emacs): Default to list the done bugs.
(debbugs-toggle-sort): New command and keystroke.
+ (debbugs-send-control-message): Record the bug number on group
+ entry, so that we don't have to rely on subject header mangling,
+ which is fragile.
2011-07-02 Michael Albinus <michael.albinus@gmx.de>
(unless (equal (cdr (assq 'pending status)) "pending")
(setq words
(concat words "," (cdr (assq 'pending status)))))
+ (when (cdr (assq 'mergedwith status))
+ (setq words (format "%s,%s" (cdr (assq 'mergedwith status))
+ words)))
(if (> (length words) 20)
(propertize (substring words 0 20) 'help-echo words)
words))
(goto-char (point-min))
(re-search-forward (concat "^" current-bug) nil t)))
+(defvar debbugs-bug-number nil)
+
(defun debbugs-select-report ()
"Select the report on the current line."
(interactive)
id (cons (current-buffer)
(current-window-configuration)))
(with-current-buffer (window-buffer (selected-window))
- (debbugs-summary-mode 1))))
+ (debbugs-summary-mode 1)
+ (set (make-local-variable 'debbugs-bug-number) id))))
(defvar debbugs-summary-mode-map
(let ((map (make-sparse-keymap)))
"merge" "forcemerge"
"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)
- (string-to-number (match-string 1 subject))
- (error "No bug number present")))
+ (let* ((id debbugs-bug-number) ; Set on group entry.
(version
(when (member message '("close" "done"))
(read-string