From unknown Sun Sep 07 01:05:57 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#46840 <46840@debbugs.gnu.org> To: bug#46840 <46840@debbugs.gnu.org> Subject: Status: 27.1; Add gnus-draft-mode-prepared-hook Reply-To: bug#46840 <46840@debbugs.gnu.org> Date: Sun, 07 Sep 2025 08:05:57 +0000 retitle 46840 27.1; Add gnus-draft-mode-prepared-hook reassign 46840 emacs,gnus submitter 46840 =E7=A9=8D=E4=B8=B9=E5=B0=BC Dan Jacobson severity 46840 normal thanks From debbugs-submit-bounces@debbugs.gnu.org Sun Feb 28 22:25:21 2021 Received: (at submit) by debbugs.gnu.org; 1 Mar 2021 03:25:21 +0000 Received: from localhost ([127.0.0.1]:47682 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lGZBQ-0003Bt-Rk for submit@debbugs.gnu.org; Sun, 28 Feb 2021 22:25:21 -0500 Received: from lists.gnu.org ([209.51.188.17]:52430) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lGZBL-0003Bc-Vj for submit@debbugs.gnu.org; Sun, 28 Feb 2021 22:25:16 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:49090) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lGZBL-0007GS-Q5 for bug-gnu-emacs@gnu.org; Sun, 28 Feb 2021 22:25:15 -0500 Received: from cyan.elm.relay.mailchannels.net ([23.83.212.47]:8615) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lGZBH-0003az-QN for bug-gnu-emacs@gnu.org; Sun, 28 Feb 2021 22:25:14 -0500 X-Sender-Id: dreamhost|x-authsender|jidanni@jidanni.org Received: from relay.mailchannels.net (localhost [127.0.0.1]) by relay.mailchannels.net (Postfix) with ESMTP id 3A4921E1EA4 for ; Mon, 1 Mar 2021 03:25:08 +0000 (UTC) Received: from pdx1-sub0-mail-a29.g.dreamhost.com (100-96-13-44.trex.outbound.svc.cluster.local [100.96.13.44]) (Authenticated sender: dreamhost) by relay.mailchannels.net (Postfix) with ESMTPA id DD33C1E199B for ; Mon, 1 Mar 2021 03:25:07 +0000 (UTC) X-Sender-Id: dreamhost|x-authsender|jidanni@jidanni.org Received: from pdx1-sub0-mail-a29.g.dreamhost.com (pop.dreamhost.com [64.90.62.162]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384) by 100.96.13.44 (trex/6.0.2); Mon, 01 Mar 2021 03:25:08 +0000 X-MC-Relay: Neutral X-MailChannels-SenderId: dreamhost|x-authsender|jidanni@jidanni.org X-MailChannels-Auth-Id: dreamhost X-Tank-Imminent: 1baa90a230361cfc_1614569108102_1804067665 X-MC-Loop-Signature: 1614569108102:3148533067 X-MC-Ingress-Time: 1614569108102 Received: from pdx1-sub0-mail-a29.g.dreamhost.com (localhost [127.0.0.1]) by pdx1-sub0-mail-a29.g.dreamhost.com (Postfix) with ESMTP id 9A5EF7EDB6 for ; Sun, 28 Feb 2021 19:25:07 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=jidanni.org; h=from:to :subject:message-id:date:mime-version:content-type; s= jidanni.org; bh=nwB7Ag0WXoxeBNs4j9jTjQb0DIs=; b=fIzPjCd2mwWtaExT LEzRhRYUcKFTDOJ0rFy0/+DNm5nSQfyz8aYhs4+NNsnTAJZswhQUQX8YUqzM0EJO uIGu3FA+XQaigjEf5Hfv3IxRGeWOPsITi19Xg2JG0egmkKSn168L+ZcqnyOEId18 Iy839IWOdi+/IrhARmp7p/LE6IU= Received: from jidanni.org (111-246-96-43.dynamic-ip.hinet.net [111.246.96.43]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: jidanni@jidanni.org) by pdx1-sub0-mail-a29.g.dreamhost.com (Postfix) with ESMTPSA id 622FE7E3CB for ; Sun, 28 Feb 2021 19:25:07 -0800 (PST) X-DH-BACKEND: pdx1-sub0-mail-a29 From: =?utf-8?B?56mN5Li55bC8?= Dan Jacobson To: bug-gnu-emacs@gnu.org Subject: 27.1; Add gnus-draft-mode-prepared-hook Message-ID: <87czwkxijs.5.fsf@jidanni.org> X-Debbugs-Package: emacs,gnus Date: Mon, 01 Mar 2021 01:02:41 +0800 MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=23.83.212.47; envelope-from=jidanni@jidanni.org; helo=cyan.elm.relay.mailchannels.net X-Spam_score_int: -5 X-Spam_score: -0.6 X-Spam_bar: / X-Spam_report: (-0.6 / 5.0 requ) BAYES_00=-1.9, DATE_IN_PAST_06_12=1.543, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-Spam-Score: -0.3 (/) 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: -1.3 (-) If there were a gnus-draft-mode-prepared-hook, this could be simplified: (add-hook 'gnus-summary-prepared-hook ;gnus-draft-mode-hook won't work until second visit, so use: (lambda () ;No other way to start at the last article instead of the first. (if (string-match gnus-newsgroup-name "nndraft:drafts") (progn (goto-char (point-max))(forward-line -1))))); not the middle of the line, but good enough. Also gnus-draft-mode-prepared-hook would sound clearer than gnus-draft-prepared-hook, which seems like it is talking about a single draft. P.S., (info "(gnus) Various Summary Stuff") mentions that mode's hooks, but (info "(gnus) Drafts") doesn't. There are at least a couple. From debbugs-submit-bounces@debbugs.gnu.org Mon Mar 01 08:01:54 2021 Received: (at 46840) by debbugs.gnu.org; 1 Mar 2021 13:01:54 +0000 Received: from localhost ([127.0.0.1]:48413 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lGiBO-000783-6Q for submit@debbugs.gnu.org; Mon, 01 Mar 2021 08:01:54 -0500 Received: from quimby.gnus.org ([95.216.78.240]:42062) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lGiBM-00077r-Kf for 46840@debbugs.gnu.org; Mon, 01 Mar 2021 08:01:53 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Transfer-Encoding:Content-Type:MIME-Version:Message-ID :In-Reply-To:Date:References:Subject:Cc:To:From:Sender:Reply-To: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=n8/UyGlhwLcy093WUmhsUXp2TBm69cbLiyEgrcwe/ks=; b=oLyMh8EszwxLe4GSuuCqhyMJ6A GjQMoPxYTPsC1VeiwWmS+G09ZI9SaIj7lezKUMDheEHCyPbaWiini11Fui1fAKJBj+xzM8n9/jQbM NGVcW5vCvg+N0kt9oxpJIdnVNShyxqBmO3QFVl5+mWZZnE/u1x6uW/zKI/ikhbIHEjHY=; Received: from cm-84.212.220.105.getinternet.no ([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 1lGiBE-00020G-DG; Mon, 01 Mar 2021 14:01:46 +0100 From: Lars Ingebrigtsen To: =?utf-8?B?56mN5Li55bC8?= Dan Jacobson Subject: Re: bug#46840: 27.1; Add gnus-draft-mode-prepared-hook References: <87czwkxijs.5.fsf@jidanni.org> X-Now-Playing: Big Thief's _Two Hands_: "Not" Date: Mon, 01 Mar 2021 14:01:43 +0100 In-Reply-To: <87czwkxijs.5.fsf@jidanni.org> (=?utf-8?B?IuepjeS4ueWwvA==?= Dan Jacobson"'s message of "Mon, 01 Mar 2021 01:02:41 +0800") Message-ID: <87lfb781u0.fsf@gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable 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: 積丹尼 Dan Jacobson writes: > If there were a gnus-draft-mode-prepared-hook, this could be simplified: Sorry; that doesn't seem very useful -- as you've found out, you can trivially do that from `gnus-summary-prepared-hook'. Closing. 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: 0.0 (/) X-Debbugs-Envelope-To: 46840 Cc: 46840@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: -1.0 (-) =E7=A9=8D=E4=B8=B9=E5=B0=BC Dan Jacobson writes: > If there were a gnus-draft-mode-prepared-hook, this could be simplified: Sorry; that doesn't seem very useful -- as you've found out, you can trivially do that from `gnus-summary-prepared-hook'. Closing. --=20 (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From debbugs-submit-bounces@debbugs.gnu.org Mon Mar 01 08:02:01 2021 Received: (at control) by debbugs.gnu.org; 1 Mar 2021 13:02:01 +0000 Received: from localhost ([127.0.0.1]:48416 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lGiBV-00078R-DM for submit@debbugs.gnu.org; Mon, 01 Mar 2021 08:02:01 -0500 Received: from quimby.gnus.org ([95.216.78.240]:42076) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lGiBT-00078C-Sw for control@debbugs.gnu.org; Mon, 01 Mar 2021 08:02:00 -0500 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=JwFBzEcl/3gNqz99qiSEuRI1MRbhgim0Dn7H+agoHCw=; b=CY2dDwvgFeKfkBuLWnxNM7wD32 c6ZK3tbstiQpL9/Pj1bxkQm4+GFXIfWCLdV9nTiBqm90Xn3UaTQJnvBvykIKhNnGbOQ8heBalICiQ WbG1SUSLIUKXugSieGCurM2atFx/jjmO8E/rRs1XwetAhF6C7JHSS7mVOF4gG1YxhEks=; Received: from cm-84.212.220.105.getinternet.no ([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 1lGiBM-00020P-9X for control@debbugs.gnu.org; Mon, 01 Mar 2021 14:01:54 +0100 Date: Mon, 01 Mar 2021 14:01:51 +0100 Message-Id: <87k0qr81ts.fsf@gnus.org> To: control@debbugs.gnu.org From: Lars Ingebrigtsen Subject: control message for bug #46840 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 46840 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: 0.0 (/) 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: -1.0 (-) close 46840 quit From unknown Sun Sep 07 01:05:57 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Tue, 30 Mar 2021 11:24:09 +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