From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: Eric Abrahamsen Newsgroups: gmane.emacs.bugs Subject: bug#41373: GNU ELPA: Add "reporting bugs" to individual package pages Date: Tue, 19 May 2020 22:30:40 -0700 Message-ID: <87imgr9nr3.fsf@ericabrahamsen.net> References: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="13532"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cc: 41373@debbugs.gnu.org, Stefan Kangas , dgutov@yandex.ru To: Richard Stallman Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed May 20 07:31:14 2020 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jbHJy-0003Ra-Fw for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 20 May 2020 07:31:14 +0200 Original-Received: from localhost ([::1]:41888 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jbHJx-0004pF-Al for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 20 May 2020 01:31:13 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:52580) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jbHJm-0004p5-KH for bug-gnu-emacs@gnu.org; Wed, 20 May 2020 01:31:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:40420) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jbHJm-0004TE-As for bug-gnu-emacs@gnu.org; Wed, 20 May 2020 01:31:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1jbHJm-0001jL-7D for bug-gnu-emacs@gnu.org; Wed, 20 May 2020 01:31:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eric Abrahamsen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 20 May 2020 05:31:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 41373 X-GNU-PR-Package: emacs Original-Received: via spool by 41373-submit@debbugs.gnu.org id=B41373.15899526496629 (code B ref 41373); Wed, 20 May 2020 05:31:02 +0000 Original-Received: (at 41373) by debbugs.gnu.org; 20 May 2020 05:30:49 +0000 Original-Received: from localhost ([127.0.0.1]:51965 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jbHJZ-0001ir-DC for submit@debbugs.gnu.org; Wed, 20 May 2020 01:30:49 -0400 Original-Received: from ericabrahamsen.net ([52.70.2.18]:45576 helo=mail.ericabrahamsen.net) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jbHJY-0001if-B8 for 41373@debbugs.gnu.org; Wed, 20 May 2020 01:30:48 -0400 Original-Received: from localhost (c-73-254-86-141.hsd1.wa.comcast.net [73.254.86.141]) (Authenticated sender: eric@ericabrahamsen.net) by mail.ericabrahamsen.net (Postfix) with ESMTPSA id 346A3FA0E2; Wed, 20 May 2020 05:30:42 +0000 (UTC) In-Reply-To: (Richard Stallman's message of "Tue, 19 May 2020 23:54:12 -0400") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:180647 Archived-At: --=-=-= Content-Type: text/plain Richard Stallman writes: > [[[ To any NSA and FBI agents reading my email: please consider ]]] > [[[ whether defending the US Constitution against all enemies, ]]] > [[[ foreign or domestic, requires you to follow Snowden's example. ]]] > > We could have report-emacs-bug ask for which package the bug is in. > The Bug Subject argument could be one of the acceptable package names, > including 'emacs' and whichever ELPA packages have been loaded. The > user could specify one of those. > > If the definition of a package says where to send bug reports for it, > report-emacs-bug could send each bug to the right place. > > If Bug Subject argument isn't on that list, report-emacs-bug could ask, > "Would you like to specify one of the ELPA packages that have been > loaded?" But you would not have to do that. If Bug Subject is unknown, > the message would go to bug-gnu-emacs, as now. Several years ago I cooked up something basic like that. I've attached the patch from that thread, which might serve as the basis for something usable. Eric --=-=-= Content-Type: text/x-patch Content-Disposition: attachment; filename=0001-Cc-package-maintainers-when-reporting-emacs-bugs.patch >From 542d7b342d0ce86933d8c6998ca7a817952b0b3f Mon Sep 17 00:00:00 2001 From: Eric Abrahamsen Date: Thu, 21 Jul 2016 15:58:47 -0400 Subject: [PATCH] Cc package maintainers when reporting emacs bugs * lisp/mail/emacsbug.el (report-emacs-bug): Prompt for a package to report a bug against, and cc the package maintainer, if any, on the bug report. --- lisp/mail/emacsbug.el | 20 ++++++++++++++++++-- 1 file changed, 18 insertions(+), 2 deletions(-) diff --git a/lisp/mail/emacsbug.el b/lisp/mail/emacsbug.el index 18eaa22..87ac234 100644 --- a/lisp/mail/emacsbug.el +++ b/lisp/mail/emacsbug.el @@ -144,11 +144,17 @@ message-send-mail-function (defvar message-sendmail-envelope-from) ;;;###autoload -(defun report-emacs-bug (topic &optional unused) +(defun report-emacs-bug (topic package &optional unused) "Report a bug in GNU Emacs. Prompts for bug subject. Leaves you in a mail buffer." (declare (advertised-calling-convention (topic) "24.5")) - (interactive "sBug Subject: ") + (interactive (list + (read-string "Bug Subject: ") + (completing-read + "Package: " + (progn + (package-initialize) + package-alist)))) ;; The syntax `version;' is preferred to `[version]' because the ;; latter could be mistakenly stripped by mailing software. (if (eq system-type 'ms-dos) @@ -158,6 +164,9 @@ report-emacs-bug (let ((from-buffer (current-buffer)) (can-insert-mail (or (report-emacs-bug-can-use-xdg-email) (report-emacs-bug-can-use-osx-open))) + (cc (unless (or (string-empty-p package) (string= package "emacs")) + (require 'finder) + (lm-maintainer (find-library-name package)))) user-point message-end-point) (setq message-end-point (with-current-buffer (messages-buffer) @@ -184,6 +193,13 @@ report-emacs-bug (when (and (not message-sendmail-envelope-from) (message-bogus-recipient-p (message-make-address))) (set (make-local-variable 'message-sendmail-envelope-from) 'header))) + (when (cdr cc) ;; The cdr is the email address. + (if (derived-mode-p 'message-mode) + (message-goto-cc) + (mail-cc)) + (if (car cc) + (insert (format "%s <%s>" (car cc) (cdr cc))) + (insert (format "%s" (cdr cc))))) (rfc822-goto-eoh) (forward-line 1) ;; Move the mail signature to the proper place. -- 2.9.0 --=-=-=--