[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] master 1a6a4a3: Search further if d-g-cur-status is nil (Bug#3512

From: Noam Postavsky
Subject: [elpa] master 1a6a4a3: Search further if d-g-cur-status is nil (Bug#35121)
Date: Wed, 3 Apr 2019 19:46:31 -0400 (EDT)

branch: master
commit 1a6a4a33a0933152d21e4da5ba052704bd292aec
Author: Noam Postavsky <address@hidden>
Commit: Noam Postavsky <address@hidden>

    Search further if d-g-cur-status is nil (Bug#35121)
    * packages/debbugs/debbugs-gnu.el (debbugs-gnu-make-control-message):
    Fallback to debbugs-cache-data or debbugs-get-status if
    debbugs-gnu-current-status returns nil, otherwise we fail to ask for
    version number when fixing/finding/closing/etc Emacs bugs from a
    message-mode buffer.
 packages/debbugs/debbugs-gnu.el | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/packages/debbugs/debbugs-gnu.el b/packages/debbugs/debbugs-gnu.el
index db52d25..7f87536 100644
--- a/packages/debbugs/debbugs-gnu.el
+++ b/packages/debbugs/debbugs-gnu.el
@@ -1592,7 +1592,9 @@ removed instead."
            (when (derived-mode-p 'message-mode)
-  (let* ((status (debbugs-gnu-current-status))
+  (let* ((status (or (debbugs-gnu-current-status)
+                     (gethash bugid debbugs-cache-data)
+                     (debbugs-get-status bugid)))
           (if (and
                (member message '("close" "done"

reply via email to

[Prev in Thread] Current Thread [Next in Thread]