unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Augusto Stoffel <arstoffel@gmail.com>
To: 57877@debbugs.gnu.org
Subject: bug#57877: [PATCH] Add empty X-Debbugs-Cc header to bug report template
Date: Sat, 17 Sep 2022 10:45:55 +0200	[thread overview]
Message-ID: <87edwacrss.fsf@gmail.com> (raw)

[-- 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


             reply	other threads:[~2022-09-17  8:45 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-09-17  8:45 Augusto Stoffel [this message]
2022-09-17  9:31 ` bug#57877: [PATCH] Add empty X-Debbugs-Cc header to bug report template 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

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

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87edwacrss.fsf@gmail.com \
    --to=arstoffel@gmail.com \
    --cc=57877@debbugs.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 public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).