From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: John Paul Wallington Newsgroups: gmane.emacs.devel Subject: report-emacs-bug mode-name nit, maybe mention features ? Date: Wed, 01 Oct 2003 18:06:14 +0100 Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: NNTP-Posting-Host: deer.gmane.org X-Trace: sea.gmane.org 1065033875 15190 80.91.224.253 (1 Oct 2003 18:44:35 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 1 Oct 2003 18:44:35 +0000 (UTC) Original-X-From: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Wed Oct 01 20:44:31 2003 Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1A4lxf-0002pg-00 for ; Wed, 01 Oct 2003 20:44:31 +0200 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1A4lxe-0003RD-01 for ; Wed, 01 Oct 2003 20:44:31 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.24) id 1A4kuP-0003im-Mx for emacs-devel@quimby.gnus.org; Wed, 01 Oct 2003 13:37:05 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24) id 1A4kuD-0003iG-BP for emacs-devel@gnu.org; Wed, 01 Oct 2003 13:36:53 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24) id 1A4kth-0003gK-GN for emacs-devel@gnu.org; Wed, 01 Oct 2003 13:36:52 -0400 Original-Received: from [217.44.221.149] (helo=indigo.shootybangbang.com) by monty-python.gnu.org with esmtp (Exim 4.24) id 1A4kRl-00074I-Mp for emacs-devel@gnu.org; Wed, 01 Oct 2003 13:07:29 -0400 Original-Received: from jpw by indigo.shootybangbang.com with local (Exim 3.36 #1 (Debian)) id 1A4kQY-0007M1-00 for ; Wed, 01 Oct 2003 18:06:14 +0100 Original-To: emacs-devel@gnu.org X-Attribution: jpw X-Face: R(_z-rF:grdKO.*u`n); p.i$Eiz=h^CO5eDYv"4:K@#\HN09*Ykx}}B{kF/KH}%f_o^Wp List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Xref: main.gmane.org gmane.emacs.devel:16823 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:16823 `report-emacs-bug' will mention its buffer's `mode-name', the result of calling `compose-mail'. Is it better to remember the previous `mode-name', or to omit that information ? Also, how about including `features' in its output ? The information can be useful, but it isn't always (for example, if the user reports a bug from an emacs -q --no-site-file). Index: emacsbug.el =================================================================== RCS file: /cvsroot/emacs/emacs/lisp/mail/emacsbug.el,v retrieving revision 1.60 diff -u -r1.60 emacsbug.el --- emacsbug.el 30 Sep 2003 12:45:44 -0000 1.60 +++ emacsbug.el 1 Oct 2003 16:53:14 -0000 @@ -79,6 +79,7 @@ ;; If there are four numbers in emacs-version, this is a pretest ;; version. (let ((pretest-p (string-match "\\..*\\..*\\." emacs-version)) + (previous-mode-name mode-name) user-point prompt-beg-point message-end-point) (setq message-end-point (with-current-buffer (get-buffer-create "*Messages*") @@ -141,13 +142,18 @@ (insert (format " default-enable-multibyte-characters: %s\n" default-enable-multibyte-characters)) (insert "\n") - (insert (format "Major mode: %s\n" mode-name)) + (insert (format "Major mode: %s\n" previous-mode-name)) (insert "\n") (insert "Minor modes in effect:\n") (dolist (mode minor-mode-list) (and (boundp mode) (symbol-value mode) (insert (format " %s: %s\n" mode (symbol-value mode))))) (insert "\n") + (insert "Features:\n") + (let ((start (point))) + (insert (format " %s" features)) + (fill-region start (point))) + (insert "\n\n") (insert "Recent input:\n") (let ((before-keys (point))) (insert (mapconcat (lambda (key)