Function: debbugs-query:status
debbugs-query:status is a byte-compiled function defined in
hib-debbugs.el.
Signature
(debbugs-query:status ID)
Documentation
Pretty print to standard-output the status attributes of debbugs ID.
Debbugs ID is a positive integer. Ignore nil valued attributes. Return t unless no attributes are printed.
Source Code
;; Defined in ~/.emacs.d/elpa/hyperbole-20260414.325/hib-debbugs.el
;; Ignore matches like #222, so this is not confused with "hib-social.el" social references.
;; (looking-at "[ \t\n\r\f]*\\(bug\\|debbugs\\|issue\\)?[ \t\n\r\f]*#\\([1-9][0-9]*\\)[\].,;?!\)\>\}]?\\([ \t\n\r\f]\\|\\'\\)")
(defun debbugs-query:status (id)
"Pretty print to `standard-output' the status attributes of debbugs ID.
Debbugs ID is a positive integer. Ignore nil valued attributes.
Return t unless no attributes are printed."
(require 'debbugs-gnu)
;; The (car (debbugs-get-status id)) is a list of (attribute . value) pairs which we sort below.
(let ((attrib-list
(sort (delq nil (mapcar (lambda (elt) (when (cdr elt) elt)) (car (debbugs-get-status id))))
(lambda (a b) (string-lessp (car a) (car b)))))
(has-attr) attr len val)
(unless (or (null attrib-list) (not (listp attrib-list)))
(with-help-window "*Debbugs Help*"
(princ (format "Status of %s %s package issue #%d (%s):\n"
(capitalize (substring debbugs-port 0 (string-match "\\." debbugs-port)))
(or (cadr (assq 'package attrib-list)) "")
id
(or (cdr (assq 'subject attrib-list)) "no subject")))
(while (setq attr (car (car attrib-list)))
(setq val (cdr (car attrib-list))
attrib-list (cdr attrib-list))
(when val
(setq has-attr t
len (number-to-string (max (- 16 (length (symbol-name attr))) 1)))
(princ (format (concat " %s:%" len "s%S\n") attr " " val))))
has-attr))))