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.devel Subject: Re: Supporting git-send-email/hg email in VC Date: Thu, 25 Aug 2022 23:35:55 -0400 Message-ID: References: <848rndq2i7.fsf@iki.fi> 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="40599"; mail-complaints-to="usenet@ciao.gmane.io" Cc: emacs-devel@gnu.org, philipk@posteo.net To: Antoine Kalmbach Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Fri Aug 26 05:36:58 2022 Return-path: Envelope-to: ged-emacs-devel@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 1oRQ9R-000AOL-TP for ged-emacs-devel@m.gmane-mx.org; Fri, 26 Aug 2022 05:36:58 +0200 Original-Received: from localhost ([::1]:44324 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oRQ9Q-0003xF-6h for ged-emacs-devel@m.gmane-mx.org; Thu, 25 Aug 2022 23:36:56 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:56980) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oRQ8R-0003BQ-UO for emacs-devel@gnu.org; Thu, 25 Aug 2022 23:35:55 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:42208) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oRQ8R-00011M-L9; Thu, 25 Aug 2022 23:35:55 -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=kkC/GQoCBBQldozIqw8hqTJNzEuuOstgf21Hxo19Sww=; b=TjL3znGSc8ix N8AAE9FgcNGOoO4dPfcfNpgUhxg01kruMMPrByPbXsfd+WB5mtYnlVkhFyHOF7BAkb4FubFtv9v8p rlRLxJYHY3SAnlJ49Z9dgYLmaSn8nDi00H1rldwpowdCPFxgdPTPK3Q0cB2IqBZPpySJEbDAQEZJz NpV7X1Sufg73at7xxMVot4MQN7Cjd/aUYhb67c2Gu7biqBCVeIZsHWkstut9t0KynHj51+ENxzLhy 66M1EfNgp2LFj7oe2xleAbUxPGaqPuAFFCT6o0UdN63V0BTUuYT6AYnYEKAoqaXFlMZCi4poyf2Kj oD6ok7JD3zHTp11RkS2VFA==; Original-Received: from rms by fencepost.gnu.org with local (Exim 4.90_1) (envelope-from ) id 1oRQ8R-0007zF-6A; Thu, 25 Aug 2022 23:35:55 -0400 In-Reply-To: <848rndq2i7.fsf@iki.fi> (message from Antoine Kalmbach on Wed, 24 Aug 2022 14:56:00 +0300) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:294121 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. ]]] > Would it make sense for Emacs' VC to support emailing patches from > within Emacs? It kind of doesn't make sense that I can do mostly > everything in VC... but I have to jump to the command line (shell) to > use git-send-email. You can already send mail inside Emacs. It has had a feature to edit and send messages since 1985 or so. VC is a generic interface to version control systems. The idea is to make each command handles whichever version control system the files are using. If you'd like to implement the feature of "collect the differences from some previous version and email them," please do not implement it such that it is limited to one particular version control system, or only to version control systems that have some special support. Please implement a default method that works for all version control systems. The default method cannot use either git-send-email or git-format-patch, because they (I presume) work only with git. It should make use of vc-diff-internal to generate the patch. Having special code to handle the git case is ok, and it can use git-format-patch if that works -- provided the default method makes the feature work for other version control systems. Use the command `compose-mail' go start setting up the email. -- 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)