From debbugs-submit-bounces@debbugs.gnu.org Sun May 22 02:41:03 2022 Received: (at submit) by debbugs.gnu.org; 22 May 2022 06:41:03 +0000 Received: from localhost ([127.0.0.1]:43567 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nsfGw-00082x-Tt for submit@debbugs.gnu.org; Sun, 22 May 2022 02:41:03 -0400 Received: from lists.gnu.org ([209.51.188.17]:58234) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nsfGu-00082S-RT for submit@debbugs.gnu.org; Sun, 22 May 2022 02:41:01 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:51752) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nsfGu-0006JM-7r for bug-gnu-emacs@gnu.org; Sun, 22 May 2022 02:41:00 -0400 Received: from mail.choca.pics ([80.67.172.235]:56176) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nsfGs-00051j-CP for bug-gnu-emacs@gnu.org; Sun, 22 May 2022 02:40:59 -0400 Received: from localhost (localhost.localdomain [IPv6:::1]) by mail.choca.pics (Postfix) with ESMTP id 8D42E18197CC7 for ; Sun, 22 May 2022 08:40:55 +0200 (CEST) Received: from mail.choca.pics ([IPv6:::1]) by localhost (mail.choca.pics [IPv6:::1]) (amavisd-new, port 10032) with ESMTP id OtbB8Do4jFkj for ; Sun, 22 May 2022 08:40:54 +0200 (CEST) Received: from localhost (localhost.localdomain [IPv6:::1]) by mail.choca.pics (Postfix) with ESMTP id DAB041817C2C1 for ; Sun, 22 May 2022 08:40:54 +0200 (CEST) X-Virus-Scanned: amavisd-new at choca.pics Received: from mail.choca.pics ([IPv6:::1]) by localhost (mail.choca.pics [IPv6:::1]) (amavisd-new, port 10026) with ESMTP id aPRVwM6Wy1Ua for ; Sun, 22 May 2022 08:40:54 +0200 (CEST) Received: from localhost (153.226.95.79.rev.sfr.net [79.95.226.153]) by mail.choca.pics (Postfix) with ESMTPSA id 712CA18193F60 for ; Sun, 22 May 2022 08:40:54 +0200 (CEST) From: Damien Cassou To: bug-gnu-emacs@gnu.org Subject: [PATCH] Fix submit-emacs-patch Date: Sun, 22 May 2022 08:40:53 +0200 Message-ID: <87leuujci2.fsf@cassou.me> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Received-SPF: pass client-ip=80.67.172.235; envelope-from=damien@cassou.me; helo=mail.choca.pics X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.4 (-) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.4 (--) --=-=-= Content-Type: text/plain Tags: patch Hi, submit-emacs-patch creates a new message and immediately inserts new lines without first moving the point to the message body. This doesn't work with notmuch (and its notmuch-user-agent symbol) because the point starts in the headers and nothing in Emacs specifies that the mua should move point to the body automatically. * lisp/mail/emacsbug.el (submit-emacs-patch): Make sure point is in the body before inserting new lines. Best -- Damien Cassou "Success is the ability to go from one failure to another without losing enthusiasm." --Winston Churchill --=-=-= Content-Type: text/patch Content-Disposition: attachment; filename=0001-Fix-submit-emacs-patch.patch >From ad98101fce092b8f0f02c2a3eabdea41d833441d Mon Sep 17 00:00:00 2001 From: Damien Cassou Date: Sun, 22 May 2022 08:32:38 +0200 Subject: [PATCH] Fix submit-emacs-patch submit-emacs-patch creates a new message and immediately inserts new lines without first moving the point to the message body. This doesn't work with notmuch (and its notmuch-user-agent symbol) because the point starts in the headers and nothing in Emacs specifies that the mua should move point to the body automatically. * lisp/mail/emacsbug.el (submit-emacs-patch): Make sure point is in the body before inserting new lines. --- lisp/mail/emacsbug.el | 1 + 1 file changed, 1 insertion(+) diff --git a/lisp/mail/emacsbug.el b/lisp/mail/emacsbug.el index 8cb4a00009..df2b7a7453 100644 --- a/lisp/mail/emacsbug.el +++ b/lisp/mail/emacsbug.el @@ -516,6 +516,7 @@ submit-emacs-patch (view-mode 1) (button-mode 1)) (message-mail-other-window report-emacs-bug-address subject) + (message-goto-body) (insert "\n\n\n") (emacs-bug--system-description) (mml-attach-file file "text/patch" nil "attachment") -- 2.36.0 --=-=-=-- From debbugs-submit-bounces@debbugs.gnu.org Sun May 22 07:25:05 2022 Received: (at 55571) by debbugs.gnu.org; 22 May 2022 11:25:05 +0000 Received: from localhost ([127.0.0.1]:43776 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nsjhp-0007Dd-5m for submit@debbugs.gnu.org; Sun, 22 May 2022 07:25:05 -0400 Received: from quimby.gnus.org ([95.216.78.240]:39302) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nsjhk-0007Cx-VF for 55571@debbugs.gnu.org; Sun, 22 May 2022 07:25:04 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date: References:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=DvwdgVn8pvrvPcNDT9clgUbgQevyjjOG09zPBTHYsc8=; b=pcXeNXdY00RPyV+pl7bOEVT/ye AnBW+5FYZrTHnmQWMu5DWE5nISbEzZy4UeBWr4kj7GYtEHyL3rvUHY3pFisNorJLtTenUZqO8VMbv XuG3wBR2faGtQT1DVFyhjMe0VkV6YVjq4tBL/hJO72YxJDMyMSrPnzCQZ0ufW5XlTv+E=; Received: from [84.212.220.105] (helo=xo) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nsjhc-0005bQ-BX; Sun, 22 May 2022 13:24:54 +0200 From: Lars Ingebrigtsen To: Damien Cassou Subject: Re: bug#55571: [PATCH] Fix submit-emacs-patch References: <87leuujci2.fsf@cassou.me> X-Now-Playing: The Names's _Swimming_: "Life By The Sea" Date: Sun, 22 May 2022 13:24:51 +0200 In-Reply-To: <87leuujci2.fsf@cassou.me> (Damien Cassou's message of "Sun, 22 May 2022 08:40:53 +0200") Message-ID: <8735h1x118.fsf@gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: Damien Cassou writes: > submit-emacs-patch creates a new message and immediately inserts new > lines without first moving the point to the message body. This doesn't > work with notmuch (and its notmuch-user-agent symbol) [...] Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 55571 Cc: 55571@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) Damien Cassou writes: > submit-emacs-patch creates a new message and immediately inserts new > lines without first moving the point to the message body. This doesn't > work with notmuch (and its notmuch-user-agent symbol) because the point > starts in the headers and nothing in Emacs specifies that the mua should > move point to the body automatically. Thanks; pushed to Emacs 29. -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From debbugs-submit-bounces@debbugs.gnu.org Sun May 22 07:25:12 2022 Received: (at control) by debbugs.gnu.org; 22 May 2022 11:25:12 +0000 Received: from localhost ([127.0.0.1]:43779 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nsjhu-0007Dx-Ct for submit@debbugs.gnu.org; Sun, 22 May 2022 07:25:12 -0400 Received: from quimby.gnus.org ([95.216.78.240]:39318) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nsjhr-0007DP-2a for control@debbugs.gnu.org; Sun, 22 May 2022 07:25:07 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Subject:From:To:Message-Id:Date:Sender:Reply-To:Cc: MIME-Version:Content-Type:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=0yVM/E3AMlCDQdshYWLxu0nXGB4i11b/DroMBETnJ1w=; b=Cb9jxTjBzFDTcyXauT+cjB1fp4 pikjdjwbatrkUuRNuAIJ73wI/bBQ71xHCJr556Gfj0AkBwoT4G5+Y5uBqM5jTewVhTLzo9yb3GC0N FkDl9LoZgRlElhRbOu47o2aOGTpyhKFp6jXqyWg2Fqzlj6Y+spO7EzIjFXMrD1aEgmTQ=; Received: from [84.212.220.105] (helo=xo) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nsjhj-0005bY-Oh for control@debbugs.gnu.org; Sun, 22 May 2022 13:25:01 +0200 Date: Sun, 22 May 2022 13:24:59 +0200 Message-Id: <871qwlx110.fsf@gnus.org> To: control@debbugs.gnu.org From: Lars Ingebrigtsen Subject: control message for bug #55571 X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: close 55571 29.1 quit Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) close 55571 29.1 quit From unknown Fri Jun 20 18:25:14 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Mon, 20 Jun 2022 11:24:04 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator