From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Philip Kaludercic Newsgroups: gmane.emacs.bugs Subject: bug#57400: 29.0.50; Support sending patches from VC directly Date: Tue, 04 Oct 2022 10:42:19 +0000 Message-ID: <87tu4juayc.fsf@posteo.net> References: <84v8qgn1z9.fsf@iki.fi> <87h71zo3p8.fsf@posteo.net> <87sfljmgwz.fsf@posteo.net> <87y1twvima.fsf@posteo.net> <878rlw681a.fsf@gnus.org> <87r0zovbzr.fsf@posteo.net> <87mtacvag8.fsf@posteo.net> <83r0zow0nl.fsf@gnu.org> <87a66cukrs.fsf@posteo.net> <83bkqsvx18.fsf@gnu.org> <87y1tvub1k.fsf@posteo.net> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="33541"; mail-complaints-to="usenet@ciao.gmane.io" Cc: larsi@gnus.org, 57400@debbugs.gnu.org, ane@iki.fi To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Oct 04 12:45:52 2022 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 1offQt-0008WC-I8 for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 04 Oct 2022 12:45:51 +0200 Original-Received: from localhost ([::1]:52032 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1offQY-0005kR-Vj for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 04 Oct 2022 06:45:31 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:33678) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1offOA-000310-8s for bug-gnu-emacs@gnu.org; Tue, 04 Oct 2022 06:43:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:53494) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1offO9-0002dw-Th for bug-gnu-emacs@gnu.org; Tue, 04 Oct 2022 06:43:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1offO9-0001Rh-On for bug-gnu-emacs@gnu.org; Tue, 04 Oct 2022 06:43:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Philip Kaludercic Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 04 Oct 2022 10:43:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 57400 X-GNU-PR-Package: emacs Original-Received: via spool by 57400-submit@debbugs.gnu.org id=B57400.16648801475501 (code B ref 57400); Tue, 04 Oct 2022 10:43:01 +0000 Original-Received: (at 57400) by debbugs.gnu.org; 4 Oct 2022 10:42:27 +0000 Original-Received: from localhost ([127.0.0.1]:52569 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1offNb-0001Qf-17 for submit@debbugs.gnu.org; Tue, 04 Oct 2022 06:42:27 -0400 Original-Received: from mout01.posteo.de ([185.67.36.65]:43793) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1offNZ-0001QT-9r for 57400@debbugs.gnu.org; Tue, 04 Oct 2022 06:42:25 -0400 Original-Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id C2E98240026 for <57400@debbugs.gnu.org>; Tue, 4 Oct 2022 12:42:19 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1664880139; bh=7EGpAnm/o/dxENqeVtDGCWA7Zb6TPODgT81swUfnunE=; h=From:To:Cc:Subject:Autocrypt:Date:From; b=OkXj/PnyJbNFrypXNr1z4Ac8t6VQ4lyYXSFCQXuipQEYUGWIZFOGo8z9ZnzjJwcpT 9ZBGELUd3qvjJxNAEbBtwZyKqzB8Xe1OyekQG8v1R6Hhsl+oQLEJDJkVOhY2AgrZ1Y 6A9k37vGPB/K6Mo9DPAnLEGMTttAOQaxmJNYbOUHJOTFayYKHrt6fnePlsIIdL0mSV fU3tLgQqLRXkD8M65NcmeK1OlVz7cEsr5Y1fVjivlNW4h+5c8xiBpwfSUeEOy0mZCl Pw7+KI9ZTziWKXLsqoQhzGNQ/2ji5g56pRXJ9o+MisWB+aAJkvABmXHYH3YSMYgkm/ cjsUf5pLYvVxA== Original-Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4MhZ5l2RKLz6tmr; Tue, 4 Oct 2022 12:42:19 +0200 (CEST) In-Reply-To: <87y1tvub1k.fsf@posteo.net> (Philip Kaludercic's message of "Tue, 04 Oct 2022 12:40:23 +0200") Autocrypt: addr=philipk@posteo.net; prefer-encrypt=nopreference; keydata= mDMEYHHqUhYJKwYBBAHaRw8BAQdAp3GdmYJ6tm5McweY6dEvIYIiry+Oz9rU4MH6NHWK0Ee0QlBo aWxpcCBLYWx1ZGVyY2ljIChnZW5lcmF0ZWQgYnkgYXV0b2NyeXB0LmVsKSA8cGhpbGlwa0Bwb3N0 ZW8ubmV0PoiQBBMWCAA4FiEEDM2H44ZoPt9Ms0eHtVrAHPRh1FwFAmBx6lICGwMFCwkIBwIGFQoJ CAsCBBYCAwECHgECF4AACgkQtVrAHPRh1FyTkgEAjlbGPxFchvMbxzAES3r8QLuZgCxeAXunM9gh io0ePtUBALVhh9G6wIoZhl0gUCbQpoN/UJHI08Gm1qDob5zDxnIHuDgEYHHqUhIKKwYBBAGXVQEF AQEHQNcRB+MUimTMqoxxMMUERpOR+Q4b1KgncDZkhrO2ql1tAwEIB4h4BBgWCAAgFiEEDM2H44Zo Pt9Ms0eHtVrAHPRh1FwFAmBx6lICGwwACgkQtVrAHPRh1Fw1JwD/Qo7kvtib8jy7puyWrSv0MeTS g8qIxgoRWJE/KKdkCLEA/jb9b9/g8nnX+UcwHf/4VfKsjExlnND3FrBviXUW6NcB 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:244387 Archived-At: Philip Kaludercic writes: > Eli Zaretskii writes: > >>> From: Philip Kaludercic >>> Cc: larsi@gnus.org, 57400@debbugs.gnu.org, ane@iki.fi >>> Date: Tue, 04 Oct 2022 07:10:15 +0000 >>> >>> Eli Zaretskii writes: >>> >>> >> + (compose-mail addressee >>> >> + (or (plist-get patch :subject) >>> >> + (concat >>> >> + "Patch for " ;guess >>> >> + (file-name-nondirectory >>> >> + (directory-file-name >>> >> + (vc-root-dir))))) >>> >> + nil nil nil nil >>> >> + `((exit-recursive-edit))) >>> >> + (message-goto-body) >>> > >>> > compose-mail doesn't necessarily invoke message.el functions, so >>> > message-goto-body is not necessarily appropriate here. >>> >>> Oh, I thought it was because `submit-emacs-patch' did the same. Again, >>> do you have any suggestions what else could be done to keep this >>> generic? >> >> Can you ask more specific questions? Are you looking for a generic >> way of doing what message-goto-body does? > > Kind of, I would like to have some function that would place the point > at the beginning of the message body, no matter what MUA is used. From > what I see, the implicit assumption always is that a message is composed > in a single buffer where the headers are written out at the beginning of > the buffer, then there is some kind of to detect the end of the headers, > followed by the body. But what if a MUA wants to use a separate buffer > for the headers and the body, placing them in two separate windows? > What if the headers aren't shown at all? If I want to handle the > situation generically, it seems like I would have to take all the design > decisions into consideration. Another issue is how attachments are made: mml-attach-* is part of Gnus and inserts literal text that some MUAs interpret, but is this something that all MUAs have to do? >> If so, would >> rfc822-goto-eoh do the job? > > It doesn't seem to do the same, as in message-mode, it jumps to the > beginning of the "--text follows this line--" line, not to the line > after it.