aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLars Ingebrigtsen2016-05-09 22:06:25 +0200
committerLars Ingebrigtsen2016-05-09 22:07:06 +0200
commitc20cc0986cdade6577d6ce169330db19e2169794 (patch)
tree7fa87a96e392f970351dce4bceceaee5c1646398
parenta88f22bddef5be36a3227f0630c1465f76a87f78 (diff)
downloademacs-c20cc0986cdade6577d6ce169330db19e2169794.tar.gz
emacs-c20cc0986cdade6577d6ce169330db19e2169794.zip
Move "Recent messages" earlier in report-emacs-bug
* lisp/mail/emacsbug.el (report-emacs-bug): Move the "Recent messages" part earlier so that users can see it and remove it if they want.
-rw-r--r--lisp/mail/emacsbug.el28
1 files changed, 13 insertions, 15 deletions
diff --git a/lisp/mail/emacsbug.el b/lisp/mail/emacsbug.el
index ce3c50bce2b..18eaa22b34c 100644
--- a/lisp/mail/emacsbug.el
+++ b/lisp/mail/emacsbug.el
@@ -242,7 +242,7 @@ usually do not have translators for other languages.\n\n")))
242 (let ((txt (delete-and-extract-region (1+ user-point) (point)))) 242 (let ((txt (delete-and-extract-region (1+ user-point) (point))))
243 (insert (propertize "\n" 'display txt))) 243 (insert (propertize "\n" 'display txt)))
244 244
245 (insert "\n\nIn " (emacs-version)) 245 (insert "\nIn " (emacs-version))
246 (if emacs-build-system 246 (if emacs-build-system
247 (insert " built on " emacs-build-system)) 247 (insert " built on " emacs-build-system))
248 (insert "\n") 248 (insert "\n")
@@ -263,6 +263,18 @@ usually do not have translators for other languages.\n\n")))
263 (buffer-string))))) 263 (buffer-string)))))
264 (if (stringp lsb) 264 (if (stringp lsb)
265 (insert "System " lsb "\n"))) 265 (insert "System " lsb "\n")))
266 (let ((message-buf (get-buffer "*Messages*")))
267 (if message-buf
268 (let (beg-pos
269 (end-pos message-end-point))
270 (with-current-buffer message-buf
271 (goto-char end-pos)
272 (forward-line -10)
273 (setq beg-pos (point)))
274 (terpri (current-buffer) t)
275 (insert "Recent messages:\n")
276 (insert-buffer-substring message-buf beg-pos end-pos))))
277 (insert "\n")
266 (when (and system-configuration-options 278 (when (and system-configuration-options
267 (not (equal system-configuration-options ""))) 279 (not (equal system-configuration-options "")))
268 (insert "Configured using:\n 'configure " 280 (insert "Configured using:\n 'configure "
@@ -295,20 +307,6 @@ usually do not have translators for other languages.\n\n")))
295 (and (boundp mode) (buffer-local-value mode from-buffer) 307 (and (boundp mode) (buffer-local-value mode from-buffer)
296 (insert (format " %s: %s\n" mode 308 (insert (format " %s: %s\n" mode
297 (buffer-local-value mode from-buffer))))) 309 (buffer-local-value mode from-buffer)))))
298 (let ((message-buf (get-buffer "*Messages*")))
299 (if message-buf
300 (let (beg-pos
301 (end-pos message-end-point))
302 (with-current-buffer message-buf
303 (goto-char end-pos)
304 (forward-line -10)
305 (setq beg-pos (point)))
306 (insert "\nRecent messages:\n")
307 (insert-buffer-substring message-buf beg-pos end-pos))))
308 ;; After Recent messages, to avoid the messages produced by
309 ;; list-load-path-shadows.
310 (unless (looking-back "\n" (1- (point)))
311 (insert "\n"))
312 (insert "\n") 310 (insert "\n")
313 (insert "Load-path shadows:\n") 311 (insert "Load-path shadows:\n")
314 (let* ((msg "Checking for load-path shadows...") 312 (let* ((msg "Checking for load-path shadows...")