summaryrefslogtreecommitdiff
path: root/lisp/mail/emacsbug.el
diff options
context:
space:
mode:
authorMartin Rudalics <rudalics@gmx.at>2015-12-28 19:11:22 +0100
committerMartin Rudalics <rudalics@gmx.at>2015-12-28 19:11:22 +0100
commit6dcaa56a13271eabc79d475059d29ebb886ea3e7 (patch)
tree83505741df3edc3ceb6faf09df6b6fdf4ce2a193 /lisp/mail/emacsbug.el
parentb406665df12664a3e7048f93f192a488a14058f2 (diff)
downloademacs-6dcaa56a13271eabc79d475059d29ebb886ea3e7.tar.gz
Fix Bug#10873 in `report-emacs-bug'
* lisp/mail/emacsbug.el (report-emacs-bug): If `report-emacs-bug-no-explanations' is nil, make sure we can show mail and warnings buffer on this frame (Bug#10873).
Diffstat (limited to 'lisp/mail/emacsbug.el')
-rw-r--r--lisp/mail/emacsbug.el8
1 files changed, 8 insertions, 0 deletions
diff --git a/lisp/mail/emacsbug.el b/lisp/mail/emacsbug.el
index bc2dafaea9a..ae0e711d814 100644
--- a/lisp/mail/emacsbug.el
+++ b/lisp/mail/emacsbug.el
@@ -162,6 +162,14 @@ Prompts for bug subject. Leaves you in a mail buffer."
(setq message-end-point
(with-current-buffer (messages-buffer)
(point-max-marker)))
+ (condition-case nil
+ ;; For the novice user make sure there's always enough space for
+ ;; the mail and the warnings buffer on this frame (Bug#10873).
+ (unless report-emacs-bug-no-explanations
+ (delete-other-windows)
+ (set-window-dedicated-p nil nil)
+ (set-frame-parameter nil 'unsplittable nil))
+ (error nil))
(compose-mail report-emacs-bug-address topic)
;; The rest of this does not execute if the user was asked to
;; confirm and said no.