1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2025-12-15 10:30:25 -08:00

Add 'erc-bug' command for reporting ERC bugs

* etc/ERC-NEWS: Announce the new command, and mention it at the top of
the file along with 'report-emacs-bug'.
* lisp/erc/erc.el (erc-bug): New command for reporting ERC bugs.  It
prompts for a subject, and passes it on to 'report-emacs-bug' along
with the current ERC version, with the ERC mailing list in Cc.
This commit is contained in:
Amin Bandali 2021-10-06 22:49:59 -04:00
parent 5afa07919e
commit 8865fc02ab
No known key found for this signature in database
GPG key ID: 8B44A0CDC7B956F2
2 changed files with 15 additions and 1 deletions

View file

@ -6620,6 +6620,15 @@ If BUFFER is nil, update the mode line in all ERC buffers."
;; Miscellaneous
(defun erc-bug (subject)
"Send a bug report to the Emacs bug tracker and ERC mailing list."
(interactive "sBug Subject: ")
(report-emacs-bug
(format "ERC %s: %s" erc-version subject))
(save-excursion
(goto-char (point-min))
(insert "X-Debbugs-CC: emacs-erc@gnu.org\n")))
(defun erc-port-to-string (p)
"Convert port P to a string.
P may be an integer or a service name."