branch: master
commit e1245b1b54f5f7f3094b35d5482a037585c7d2c6
Author: Lars Ingebrigtsen <[email protected]>
Commit: Lars Ingebrigtsen <[email protected]>

    Fix debbugs-gnu Subject setting when used directly from Gnus
    
    * packages/debbugs/debbugs-gnu.el (debbugs-gnu-summary-mode):
    Don't set the Subject to nil (which can happen if we're entering
    not via the debbugs-gnu interface, but via Gnus directly).
---
 packages/debbugs/debbugs-gnu.el | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/packages/debbugs/debbugs-gnu.el b/packages/debbugs/debbugs-gnu.el
index a0bb7a9..6bf3e3b 100644
--- a/packages/debbugs/debbugs-gnu.el
+++ b/packages/debbugs/debbugs-gnu.el
@@ -1647,7 +1647,8 @@ MERGED is the list of bugs merged with this one."
                                             (match-string 1 (car address)))))
                            (cons new new))
                        address))))))
-         (subject ,debbugs-gnu-subject)))))
+         ,@(and debbugs-gnu-subject
+                ,(subject ,debbugs-gnu-subject))))))
 
 (defun debbugs-gnu-guess-current-id ()
   "Guess the ID based on \"#23\".

Reply via email to