]> code.delx.au - gnu-emacs/commitdiff
* mail/reporter.el (reporter-submit-bug-report): Handle missing package-name.
authorGrégoire Jadi <daimrod@gmail.com>
Wed, 12 Jun 2013 16:08:17 +0000 (09:08 -0700)
committerGlenn Morris <rgm@gnu.org>
Wed, 12 Jun 2013 16:08:17 +0000 (09:08 -0700)
Fixes: debbugs:14600
lisp/ChangeLog
lisp/mail/reporter.el

index 18f225ec3083fa963159da601816f11ed4438f5b..48124b85fe46ce52a4a2c01a9af5fdc7c647491d 100644 (file)
@@ -1,3 +1,8 @@
+2013-06-12  Grégoire Jadi  <daimrod@gmail.com>
+
+       * mail/reporter.el (reporter-submit-bug-report):
+       Handle missing package-name.  (Bug#14600)
+
 2013-06-12  Rüdiger Sonderfeld  <ruediger@c-plusplus.de>
 
        * textmodes/reftex-cite.el (reftex-cite-regexp-hist)
index cc20c5c06eaa1036bec9efa4d7411c53413c9dac..8f6715018c43e066df59afc0c884e70b8eb2ce01 100644 (file)
@@ -341,10 +341,10 @@ mail-sending package is used for editing and sending the message."
     (mail-position-on-field "to")
     (insert address)
     ;; insert problem summary if available
-    (if (and reporter-prompt-for-summary-p problem pkgname)
-       (progn
-         (mail-position-on-field "subject")
-         (insert pkgname "; " problem)))
+    (when (and reporter-prompt-for-summary-p problem)
+      (mail-position-on-field "subject")
+      (if pkgname (insert pkgname "; "))
+      (insert problem))
     ;; move point to the body of the message
     (mail-text)
     (forward-line 1)