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: On the adoption of transient.el Date: Sun, 31 Jul 2022 23:32:33 -0400 Message-ID: References: <3925d696-f742-6ac7-7a05-8b3faac6e819@inventati.org> 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="27409"; mail-complaints-to="usenet@ciao.gmane.io" Cc: juri@linkov.net, emacs-devel@gnu.org To: Manuel Uberti Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Mon Aug 01 05:34:10 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 1oIMC1-0006w8-Sa for ged-emacs-devel@m.gmane-mx.org; Mon, 01 Aug 2022 05:34:10 +0200 Original-Received: from localhost ([::1]:42966 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oIMC0-0005ET-Rc for ged-emacs-devel@m.gmane-mx.org; Sun, 31 Jul 2022 23:34:08 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:42476) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oIMAW-0004Ur-FS for emacs-devel@gnu.org; Sun, 31 Jul 2022 23:32:36 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:40760) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oIMAT-0008WN-Qu; Sun, 31 Jul 2022 23:32:33 -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=ZnGETnKH8PO9C8JSCnx3AJK5MWrsQX5xmtWY0R3oHpU=; b=Rn/uwgdIOM0P 5MDublvBqv9GWB7+zRH2l0bQdXzZDg/pHre56I3JehDLh5grhHZxjkAQs3NM43NMbDXtfu5s6JwfC XLwy+o4jrDFwJgAoCORBv5vCde/hc0IUsG1S1CcxiFw1UbZoiLywX0mIT2enorRRwn4A5KjtGSo4r O1Py5y5VROgDXVXv8kSbSRWZLKZt5HL2NTsNlr9UNvL/K8eJC3Xrag85GU9K6UqMcRk+abspfox8c PuF3rZallRyrgFLMKqjVjCZ/TELKUdzK9LBlh/CBjpAmrcfXRgTxJwtO3XRxxzCeT4D8xGsmxfRrq 3+fz8l0CG9+brAAIVOZIDA==; Original-Received: from rms by fencepost.gnu.org with local (Exim 4.90_1) (envelope-from ) id 1oIMAT-0005oD-6s; Sun, 31 Jul 2022 23:32:33 -0400 In-Reply-To: <3925d696-f742-6ac7-7a05-8b3faac6e819@inventati.org> (message from Manuel Uberti on Sun, 31 Jul 2022 09:08:25 +0000) 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:292931 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. ]]] This seems to be an idea for a command that would let you select hunks from a diff, and commit those hunks directly into a repo -- but only if it is a git repo. VC is supposed to handle various version control systems in a generic way, and any added faciities should be generic, too. Also, I have a feeling it is cleaner and safer for the command to make the selected changes in an Emacs buffer visiting the source file. Then, after you look at that buffer and make sure it has the contents you want, you can commit it with C-x v v. This would make it simpler, and also eliminate the problematical limitation to git. -- 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)