From: John Paul Wallington <jpw@gnu.org>
Subject: report-emacs-bug mode-name nit, maybe mention features ?
Date: Wed, 01 Oct 2003 18:06:14 +0100 [thread overview]
Message-ID: <E1A4kQY-0007M1-00@indigo.shootybangbang.com> (raw)
`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)
reply other threads:[~2003-10-01 17:06 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=E1A4kQY-0007M1-00@indigo.shootybangbang.com \
--to=jpw@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.