Make c-submit-bug-report file reports at debbugs.gnu.org. (Bug#15784)

* lisp/progmodes/cc-mode.el (c-mode-help-address):
Change to submit@debbugs.
(c-mode-bug-package): New constant.
(mail-position-on-field): Declare.
(c-submit-bug-report): Insert X-Debbugs-Package header.

* doc/misc/cc-mode.texi (Mailing Lists and Bug Reports):
Mention debbugs.gnu.org.
This commit is contained in:
Glenn Morris 2015-05-26 23:29:25 -07:00
parent d3155315c8
commit ce32fb872b
2 changed files with 17 additions and 6 deletions

View file

@ -7173,11 +7173,12 @@ configuration. In that case, we'd appreciate it if you isolate the
Emacs Lisp code that triggers the bug and include it in your report.
@cindex bug report mailing list
Bug reports should be sent to @email{bug-cc-mode@@gnu.org}. You can
also send other questions and suggestions (kudos?@: @t{;-)} to that
address. It's a mailing list which you can join or browse an archive
of; see the web site at @uref{http://cc-mode.sourceforge.net/} for
further details.
Reporting a bug using @code{c-submit-bug-report} files it in
the GNU Bug Tracker at @url{http://debbugs.gnu.org}, then sends it on
to @email{bug-cc-mode@@gnu.org}. You can also send reports, other
questions, and suggestions (kudos?@: @t{;-)} to that address. It's a
mailing list which you can join or browse an archive of; see the web site at
@uref{http://cc-mode.sourceforge.net/} for further details.
@cindex announcement mailing list
If you want to get announcements of new @ccmode{} releases, send the

View file

@ -1823,7 +1823,7 @@ Key bindings:
;; bug reporting
(defconst c-mode-help-address
"bug-cc-mode@gnu.org"
"submit@debbugs.gnu.org"
"Address(es) for CC Mode bug reports.")
(defun c-version ()
@ -1840,6 +1840,13 @@ Key bindings:
(defvar reporter-prompt-for-summary-p)
(defvar reporter-dont-compact-list)
;; This could be "emacs,cc-mode" in the version included in Emacs.
(defconst c-mode-bug-package "cc-mode"
"The package to use in the bug submission.")
;; reporter-submit-bug-report requires sendmail.
(declare-function mail-position-on-field "sendmail" (field &optional soft))
(defun c-submit-bug-report ()
"Submit via mail a bug report on CC Mode."
(interactive)
@ -1903,6 +1910,9 @@ Key bindings:
vars)
(lambda ()
(run-hooks 'c-prepare-bug-report-hook)
(save-excursion
(or (mail-position-on-field "X-Debbugs-Package")
(insert c-mode-bug-package)))
(insert (format "Buffer Style: %s\nc-emacs-features: %s\n"
style c-features)))))))