all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* bug#57877: [PATCH] Add empty X-Debbugs-Cc header to bug report template
@ 2022-09-17  8:45 Augusto Stoffel
  2022-09-17  9:31 ` Daniel Martín via Bug reports for GNU Emacs, the Swiss army knife of text editors
  0 siblings, 1 reply; 10+ messages in thread
From: Augusto Stoffel @ 2022-09-17  8:45 UTC (permalink / raw)
  To: 57877

[-- Attachment #1: Type: text/plain, Size: 651 bytes --]

Tags: patch

I can never remember what that funny CC header was when I need it, how
about adding an empty X-Debbugs-Cc to the bug report and patch message
templates?

An alternative would be to add a reminder and explanation about it to
that portion of text that gets deleted (“This bug report will be
sent...”).

In GNU Emacs 29.0.50 (build 1, x86_64-pc-linux-gnu, GTK+ Version
 3.24.34, cairo version 1.17.6) of 2022-09-14 built on ars3
Repository revision: a9941269683fe50673d0aa81feefb7a9d3d8a6b9
Repository branch: HEAD
System Description: Fedora Linux 36 (Workstation Edition)

Configured using:
 'configure --with-pgtk'


[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: 0001-Add-empty-X-Debbugs-Cc-header-to-bug-report-template.patch --]
[-- Type: text/patch, Size: 1421 bytes --]

From 8a15db7a0ad9e102ed7bb50bb8a9e02e232cce96 Mon Sep 17 00:00:00 2001
From: Augusto Stoffel <arstoffel@gmail.com>
Date: Sat, 17 Sep 2022 10:39:46 +0200
Subject: [PATCH] Add empty X-Debbugs-Cc header to bug report template

* lisp/mail/emacsbug.el: (report-emacs-bug, submit-emacs-patch): Add
empty X-Debbugs-Cc header.
---
 lisp/mail/emacsbug.el | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/lisp/mail/emacsbug.el b/lisp/mail/emacsbug.el
index a85ceaf1a5..ea99e3eddc 100644
--- a/lisp/mail/emacsbug.el
+++ b/lisp/mail/emacsbug.el
@@ -228,7 +228,7 @@ report-emacs-bug
           (set-window-dedicated-p nil nil)
           (set-frame-parameter nil 'unsplittable nil))
       (error nil))
-    (compose-mail report-emacs-bug-address topic)
+    (compose-mail report-emacs-bug-address topic '(("X-Debbugs-Cc" . "")))
     ;; The rest of this does not execute if the user was asked to
     ;; confirm and said no.
     (when (eq major-mode 'message-mode)
@@ -518,7 +518,10 @@ submit-emacs-patch
     (goto-char (point-min))
     (view-mode 1)
     (button-mode 1))
-  (compose-mail-other-window report-emacs-bug-address subject)
+  (compose-mail-other-window report-emacs-bug-address
+                             subject
+                             '(("X-Debbugs-Cc" . "")))
+  (message-sort-headers)
   (message-goto-body)
   (insert "\n\n\n")
   (emacs-bug--system-description)
-- 
2.37.3


^ permalink raw reply related	[flat|nested] 10+ messages in thread

* bug#57877: [PATCH] Add empty X-Debbugs-Cc header to bug report template
  2022-09-17  8:45 bug#57877: [PATCH] Add empty X-Debbugs-Cc header to bug report template Augusto Stoffel
@ 2022-09-17  9:31 ` Daniel Martín via Bug reports for GNU Emacs, the Swiss army knife of text editors
  2022-09-17 11:45   ` Augusto Stoffel
  2022-09-17 18:04   ` Stefan Kangas
  0 siblings, 2 replies; 10+ messages in thread
From: Daniel Martín via Bug reports for GNU Emacs, the Swiss army knife of text editors @ 2022-09-17  9:31 UTC (permalink / raw)
  To: Augusto Stoffel; +Cc: 57877

Augusto Stoffel <arstoffel@gmail.com> writes:

> Tags: patch
>
> I can never remember what that funny CC header was when I need it, how
> about adding an empty X-Debbugs-Cc to the bug report and patch message
> templates?
>
> An alternative would be to add a reminder and explanation about it to
> that portion of text that gets deleted (“This bug report will be
> sent...”).
>

I think this change may confuse some users because there will be a blank
X-Debbugs-Cc header when reporting a bug (they'll ask themselves "what
should I put here?, what does this do?").  I think we should update the
bug template to explain when to fill that special mail header, at least.

But, if the problem is not general enough, we may simply expose a custom
variable so that users can provide custom headers in bug reports.  With
that approach, sending bug reports to Emacs by default remains as simple
as before, while experienced bug reporters can still provide the mail
header in their customizations, if they want to.

Opinions?





^ permalink raw reply	[flat|nested] 10+ messages in thread

* bug#57877: [PATCH] Add empty X-Debbugs-Cc header to bug report template
  2022-09-17  9:31 ` Daniel Martín via Bug reports for GNU Emacs, the Swiss army knife of text editors
@ 2022-09-17 11:45   ` Augusto Stoffel
  2022-09-17 18:04   ` Stefan Kangas
  1 sibling, 0 replies; 10+ messages in thread
From: Augusto Stoffel @ 2022-09-17 11:45 UTC (permalink / raw)
  To: Daniel Martín; +Cc: 57877

On Sat, 17 Sep 2022 at 11:31, Daniel Martín wrote:

> Augusto Stoffel <arstoffel@gmail.com> writes:
>
>> Tags: patch
>>
>> I can never remember what that funny CC header was when I need it, how
>> about adding an empty X-Debbugs-Cc to the bug report and patch message
>> templates?
>>
>> An alternative would be to add a reminder and explanation about it to
>> that portion of text that gets deleted (“This bug report will be
>> sent...”).
>>
>
> I think this change may confuse some users because there will be a blank
> X-Debbugs-Cc header when reporting a bug (they'll ask themselves "what
> should I put here?, what does this do?").  I think we should update the
> bug template to explain when to fill that special mail header, at least.
>
> But, if the problem is not general enough, we may simply expose a custom
> variable so that users can provide custom headers in bug reports.  With
> that approach, sending bug reports to Emacs by default remains as simple
> as before, while experienced bug reporters can still provide the mail
> header in their customizations, if they want to.
>
> Opinions?

That makes sense.  From my perspective either (or both) alternatives you
propose are good.





^ permalink raw reply	[flat|nested] 10+ messages in thread

* bug#57877: [PATCH] Add empty X-Debbugs-Cc header to bug report template
  2022-09-17  9:31 ` Daniel Martín via Bug reports for GNU Emacs, the Swiss army knife of text editors
  2022-09-17 11:45   ` Augusto Stoffel
@ 2022-09-17 18:04   ` Stefan Kangas
  2022-09-18  7:39     ` Michael Albinus
                       ` (2 more replies)
  1 sibling, 3 replies; 10+ messages in thread
From: Stefan Kangas @ 2022-09-17 18:04 UTC (permalink / raw)
  To: Daniel Martín, Augusto Stoffel; +Cc: 57877

Daniel Martín via "Bug reports for GNU Emacs, the Swiss army knife of
text editors" <bug-gnu-emacs@gnu.org> writes:

> I think this change may confuse some users because there will be a blank
> X-Debbugs-Cc header when reporting a bug (they'll ask themselves "what
> should I put here?, what does this do?").  I think we should update the
> bug template to explain when to fill that special mail header, at least.

I think we should just make `message-goto-cc' command use
"X-Debbugs-CC" in both `report-emacs-bug' and `submit-emacs-patch'.

For extra points, make it do the same if "bug-gnu-emacs@gnu.org" (and
some other well-known debbugs lists, customizable) is already in the
"To:" header.





^ permalink raw reply	[flat|nested] 10+ messages in thread

* bug#57877: [PATCH] Add empty X-Debbugs-Cc header to bug report template
  2022-09-17 18:04   ` Stefan Kangas
@ 2022-09-18  7:39     ` Michael Albinus
  2022-09-18  8:16       ` Stefan Kangas
  2022-09-18 10:57     ` Lars Ingebrigtsen
  2024-08-24 11:13     ` Michael Albinus via Bug reports for GNU Emacs, the Swiss army knife of text editors
  2 siblings, 1 reply; 10+ messages in thread
From: Michael Albinus @ 2022-09-18  7:39 UTC (permalink / raw)
  To: Stefan Kangas; +Cc: Augusto Stoffel, 57877, Daniel Martín

Stefan Kangas <stefankangas@gmail.com> writes:

Hi,

> For extra points, make it do the same if "bug-gnu-emacs@gnu.org" (and
> some other well-known debbugs lists, customizable) is already in the
> "To:" header.

<https://debbugs.gnu.org/Packages.html> lists the currently hosted
projects on debbugs.gnu.org. The "Bug mailing list" column contains a
link to the project specific bug mailing lists, email addresses for bug
submissions could be extracted from there.

Yes, it would be some work to earn the bonus points :-)

Best regards, Michael.





^ permalink raw reply	[flat|nested] 10+ messages in thread

* bug#57877: [PATCH] Add empty X-Debbugs-Cc header to bug report template
  2022-09-18  7:39     ` Michael Albinus
@ 2022-09-18  8:16       ` Stefan Kangas
  0 siblings, 0 replies; 10+ messages in thread
From: Stefan Kangas @ 2022-09-18  8:16 UTC (permalink / raw)
  To: Michael Albinus; +Cc: Augusto Stoffel, 57877, Daniel Martín

Michael Albinus <michael.albinus@gmx.de> writes:

> <https://debbugs.gnu.org/Packages.html> lists the currently hosted
> projects on debbugs.gnu.org.

And then the Debian bug tracker itself, of course.





^ permalink raw reply	[flat|nested] 10+ messages in thread

* bug#57877: [PATCH] Add empty X-Debbugs-Cc header to bug report template
  2022-09-17 18:04   ` Stefan Kangas
  2022-09-18  7:39     ` Michael Albinus
@ 2022-09-18 10:57     ` Lars Ingebrigtsen
  2024-08-24 11:13     ` Michael Albinus via Bug reports for GNU Emacs, the Swiss army knife of text editors
  2 siblings, 0 replies; 10+ messages in thread
From: Lars Ingebrigtsen @ 2022-09-18 10:57 UTC (permalink / raw)
  To: Stefan Kangas; +Cc: Augusto Stoffel, 57877, Daniel Martín

Stefan Kangas <stefankangas@gmail.com> writes:

> I think we should just make `message-goto-cc' command use
> "X-Debbugs-CC" in both `report-emacs-bug' and `submit-emacs-patch'.

Or just add new commands to insert debbugs headers when reporting a
bug -- I think that's simpler.






^ permalink raw reply	[flat|nested] 10+ messages in thread

* bug#57877: [PATCH] Add empty X-Debbugs-Cc header to bug report template
  2022-09-17 18:04   ` Stefan Kangas
  2022-09-18  7:39     ` Michael Albinus
  2022-09-18 10:57     ` Lars Ingebrigtsen
@ 2024-08-24 11:13     ` Michael Albinus via Bug reports for GNU Emacs, the Swiss army knife of text editors
  2024-09-14 13:32       ` Stefan Kangas
  2 siblings, 1 reply; 10+ messages in thread
From: Michael Albinus via Bug reports for GNU Emacs, the Swiss army knife of text editors @ 2024-08-24 11:13 UTC (permalink / raw)
  To: Stefan Kangas; +Cc: Augusto Stoffel, 57877, Daniel Martín

Stefan Kangas <stefankangas@gmail.com> writes:

> Daniel Martín via "Bug reports for GNU Emacs, the Swiss army knife of
> text editors" <bug-gnu-emacs@gnu.org> writes:
>
>> I think this change may confuse some users because there will be a blank
>> X-Debbugs-Cc header when reporting a bug (they'll ask themselves "what
>> should I put here?, what does this do?").  I think we should update the
>> bug template to explain when to fill that special mail header, at least.
>
> I think we should just make `message-goto-cc' command use
> "X-Debbugs-CC" in both `report-emacs-bug' and `submit-emacs-patch'.

Apparently, the requested header is added in `report-emacs-bug' by commit
040cba5d3332. Shouldn't we do the same for `submit-emacs-patch', and
close the bug?

Best regards, Michael.





^ permalink raw reply	[flat|nested] 10+ messages in thread

* bug#57877: [PATCH] Add empty X-Debbugs-Cc header to bug report template
  2024-08-24 11:13     ` Michael Albinus via Bug reports for GNU Emacs, the Swiss army knife of text editors
@ 2024-09-14 13:32       ` Stefan Kangas
  2024-09-27  7:36         ` Michael Albinus via Bug reports for GNU Emacs, the Swiss army knife of text editors
  0 siblings, 1 reply; 10+ messages in thread
From: Stefan Kangas @ 2024-09-14 13:32 UTC (permalink / raw)
  To: Michael Albinus; +Cc: Augusto Stoffel, 57877, Daniel Martín

Michael Albinus <michael.albinus@gmx.de> writes:

> Stefan Kangas <stefankangas@gmail.com> writes:
>
>> Daniel Martín via "Bug reports for GNU Emacs, the Swiss army knife of
>> text editors" <bug-gnu-emacs@gnu.org> writes:
>>
>>> I think this change may confuse some users because there will be a blank
>>> X-Debbugs-Cc header when reporting a bug (they'll ask themselves "what
>>> should I put here?, what does this do?").  I think we should update the
>>> bug template to explain when to fill that special mail header, at least.
>>
>> I think we should just make `message-goto-cc' command use
>> "X-Debbugs-CC" in both `report-emacs-bug' and `submit-emacs-patch'.
>
> Apparently, the requested header is added in `report-emacs-bug' by commit
> 040cba5d3332. Shouldn't we do the same for `submit-emacs-patch', and
> close the bug?

Makes sense to me.





^ permalink raw reply	[flat|nested] 10+ messages in thread

* bug#57877: [PATCH] Add empty X-Debbugs-Cc header to bug report template
  2024-09-14 13:32       ` Stefan Kangas
@ 2024-09-27  7:36         ` Michael Albinus via Bug reports for GNU Emacs, the Swiss army knife of text editors
  0 siblings, 0 replies; 10+ messages in thread
From: Michael Albinus via Bug reports for GNU Emacs, the Swiss army knife of text editors @ 2024-09-27  7:36 UTC (permalink / raw)
  To: Stefan Kangas; +Cc: Daniel Martín, Augusto Stoffel, 57877-done

Version: 31.1

Stefan Kangas <stefankangas@gmail.com> writes:

> Michael Albinus <michael.albinus@gmx.de> writes:
>
>> Stefan Kangas <stefankangas@gmail.com> writes:
>>
>>> Daniel Martín via "Bug reports for GNU Emacs, the Swiss army knife of
>>> text editors" <bug-gnu-emacs@gnu.org> writes:
>>>
>>>> I think this change may confuse some users because there will be a blank
>>>> X-Debbugs-Cc header when reporting a bug (they'll ask themselves "what
>>>> should I put here?, what does this do?").  I think we should update the
>>>> bug template to explain when to fill that special mail header, at least.
>>>
>>> I think we should just make `message-goto-cc' command use
>>> "X-Debbugs-CC" in both `report-emacs-bug' and `submit-emacs-patch'.
>>
>> Apparently, the requested header is added in `report-emacs-bug' by commit
>> 040cba5d3332. Shouldn't we do the same for `submit-emacs-patch', and
>> close the bug?
>
> Makes sense to me.

Done, pushed to master. Closing the bug.

Best regards, Michael.





^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2024-09-27  7:36 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-09-17  8:45 bug#57877: [PATCH] Add empty X-Debbugs-Cc header to bug report template Augusto Stoffel
2022-09-17  9:31 ` Daniel Martín via Bug reports for GNU Emacs, the Swiss army knife of text editors
2022-09-17 11:45   ` Augusto Stoffel
2022-09-17 18:04   ` Stefan Kangas
2022-09-18  7:39     ` Michael Albinus
2022-09-18  8:16       ` Stefan Kangas
2022-09-18 10:57     ` Lars Ingebrigtsen
2024-08-24 11:13     ` Michael Albinus via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-09-14 13:32       ` Stefan Kangas
2024-09-27  7:36         ` Michael Albinus via Bug reports for GNU Emacs, the Swiss army knife of text editors

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.