From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Richard Stallman Newsgroups: gmane.emacs.bugs Subject: bug#57400: 29.0.50; Support sending patches from VC directly Date: Sun, 28 Aug 2022 00:07:02 -0400 Message-ID: References: <84v8qgn1z9.fsf@iki.fi> <87h71zo3p8.fsf@posteo.net> <87sfljmgwz.fsf@posteo.net> Reply-To: rms@gnu.org Content-Type: text/plain; charset=Utf-8 Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="1512"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 57400@debbugs.gnu.org To: Antoine Kalmbach Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Aug 28 06:08:36 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 1oS9bA-0000HA-9M for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 28 Aug 2022 06:08:36 +0200 Original-Received: from localhost ([::1]:55778 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oS9b9-0002NN-CI for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 28 Aug 2022 00:08:35 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:45018) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oS9ac-0001aZ-V9 for bug-gnu-emacs@gnu.org; Sun, 28 Aug 2022 00:08:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:39434) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oS9ac-0000aj-MF for bug-gnu-emacs@gnu.org; Sun, 28 Aug 2022 00:08:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oS9ac-0007LW-6H for bug-gnu-emacs@gnu.org; Sun, 28 Aug 2022 00:08:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Richard Stallman Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 28 Aug 2022 04:08:02 +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.166165963328172 (code B ref 57400); Sun, 28 Aug 2022 04:08:02 +0000 Original-Received: (at 57400) by debbugs.gnu.org; 28 Aug 2022 04:07:13 +0000 Original-Received: from localhost ([127.0.0.1]:57416 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oS9Zp-0007KK-3k for submit@debbugs.gnu.org; Sun, 28 Aug 2022 00:07:13 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:54382) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oS9Zm-0007K5-1q for 57400@debbugs.gnu.org; Sun, 28 Aug 2022 00:07:12 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:56204) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oS9Zf-0000ME-LG; Sun, 28 Aug 2022 00:07:03 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=Date:References:Subject:In-Reply-To:To:From: mime-version; bh=ff3xVRAKxUPNfxAuv606tScbB/8BEV748HaS1cn4X7Y=; b=e7U1shFdOeYM Mf+EzIqib3FVTtyPS/LJyHQi2aNkq6Be61oTeBlqKVSOlx3ntnoFP+kBKuRmBgp7VwkX3fOHz1ATe m9hwRle+qYGU5D6FzsbIW/UJtR415LRDgRX7VsoRG5vAnH5vuF/kZ5mwYfBtIbjcqhSW34GMz61RT OMFi4PTBLeu6LSjE5f9j8ieZrbMjGCjPbb/hTEaoJah9W9msvCyuSP/M7IVcc2WEp5cx/S8eiJc16 mnC03d+KdO93sfDyzvBCcAT8WlU14gUFKms10c7cgJ20iRGAwERY8wLvBqlYxaKHZQChkXRoqT0Gh 8ywHBuiyDRjnhiptWE2DGQ==; Original-Received: from rms by fencepost.gnu.org with local (Exim 4.90_1) (envelope-from ) id 1oS9Ze-0004Zh-It; Sun, 28 Aug 2022 00:07:02 -0400 In-Reply-To: (message from Antoine Kalmbach on Fri, 26 Aug 2022 13:45:51 +0300) 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:240973 Archived-At: [[[ To any NSA and FBI agents reading my email: please consider ]]] [[[ whether defending the US Constitution against all enemies, ]]] [[[ foreign or domestic, requires you to follow Snowden's example. ]]] > 1. `M-x vc-prepare-patch` > 2. Dispatch to `vc-git-prepare-patch` That would happen if the file uses git, Please implement a default alternative that works generically for other VC systems. > 3. Git wants a revision range, so interactively prompt for that > (e.g. `HEAD^`, `abcd1234..ghjk5678`, or `-1`) > 4. `call-process` to `git format-patch $REV`, and so forth, get the > list of files. > 5. Loop each file in `message-mode`. `C-c C-c` sends and goes to the > next patch, `C-c C-k` cancels the whole thing. `message-mode' is one of Emacs's packages for composing mail. Please use `compose-mail' so that you use whichever one the user has selected. I think you can insert the patch text into the composition buffer after `compose-mail' returns, and it will work with either of the two usual mail composition packages. -- Dr Richard Stallman (https://stallman.org) Chief GNUisance of the GNU Project (https://gnu.org) Founder, Free Software Foundation (https://fsf.org) Internet Hall-of-Famer (https://internethalloffame.org)