Nicolas Graves writes:
> Attached you can find a file with a minor mode that does just that and
> damn it's so much better to work with debbugs now.
Neat, thanks for sharing.
That reminds me that a while back I snagged a debbugs-gnu-select-report
override from Nicolas Petton's configuration [*]:
;; (advice-add 'debbugs-gnu-select-report :override #'debbugs-notmuch-select-report)
(defun debbugs-notmuch-select-report (&rest _)
(let* ((status (debbugs-gnu-current-status))
(id (cdr (assq 'id status)))
(merged (cdr (assq 'mergedwith status))))
(setq merged (if (listp merged) merged (list merged)))
(unless id
(user-error "No bug report on the current line"))
(let ((address (format "%s@debbugs.gnu.org" id))
(merged-addresses (string-join (mapcar (lambda (id)
(format "%s@debbugs.gnu.org" id))
merged)
" ")))
(notmuch-search (format "%s %s" address merged-addresses)))))
Presentation-wise that's a bit different than your variant in that it
displays a notmuch-search-mode buffer with all the messages for the bug
rather than displaying the notmuch-show-mode buffer for the starting
message. (On my end, I switched the notmuch-search to notmuch-tree
because I prefer that display.)
Is the mergedwith handling something that your function should consider?
[*] It looks like https://gitlab.petton.fr/nico/emacs.d/ is offline, but
here's the GitHub mirror:
https://github.com/NicolasPetton/emacs.d/blob/3945786c31a17ac9caa8894109c231234956102f/hosts/blueberry/init-notmuch.el#L315-L329
_______________________________________________
notmuch mailing list -- notmuch@notmuchmail.org
To unsubscribe send an email to notmuch-leave@notmuchmail.org