From 08778b811d999c831723f85414ac1e342ef00192 Mon Sep 17 00:00:00 2001 From: Sean Whitton Date: Fri, 7 Jan 2022 14:46:30 -0700 Subject: notmuch-slurp-debbug: at end, call notmuch-search not notmuch-show Signed-off-by: Sean Whitton --- debian/changelog | 3 +++ mailscripts.el | 3 +-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/debian/changelog b/debian/changelog index bedb3fc..dc32b82 100644 --- a/debian/changelog +++ b/debian/changelog @@ -2,6 +2,9 @@ mailscripts (0.24-1) UNRELEASED; urgency=medium * mailscripts.el: - Enable lexical binding. + - notmuch-slurp-debbug: at end, call notmuch-search not notmuch-show. + This should avoid leaving the user viewing a thread containing only + control messages, with no easy way to get to the bug correspondence. - mailscripts-detach-head-from-existing-branch can now have value `ask'. * gmi2email: - Support commenting out subscriptions. diff --git a/mailscripts.el b/mailscripts.el index 234fba2..8519e4f 100644 --- a/mailscripts.el +++ b/mailscripts.el @@ -80,8 +80,7 @@ If NO-OPEN, don't open the thread." "--limit=1" "--format=text" "--format-version=4" search)))) - (notmuch-show thread-id nil nil nil - (concat "*notmuch-show-" search "*"))))) + (notmuch-search search t thread-id)))) ;;;###autoload (defun notmuch-slurp-debbug-at-point () -- cgit v1.2.3