From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: David Kastrup Newsgroups: gmane.emacs.devel Subject: Editing with tramp and version control? Date: Fri, 17 Aug 2007 10:44:44 +0200 Message-ID: <861we235z7.fsf@lola.quinscape.zz> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1187340297 30472 80.91.229.12 (17 Aug 2007 08:44:57 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 17 Aug 2007 08:44:57 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Aug 17 10:44:55 2007 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1ILxRs-0004k0-Tc for ged-emacs-devel@m.gmane.org; Fri, 17 Aug 2007 10:44:53 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1ILxRs-0006iD-Eh for ged-emacs-devel@m.gmane.org; Fri, 17 Aug 2007 04:44:52 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1ILxRn-0006f9-T3 for emacs-devel@gnu.org; Fri, 17 Aug 2007 04:44:47 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1ILxRm-0006dn-66 for emacs-devel@gnu.org; Fri, 17 Aug 2007 04:44:47 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1ILxRl-0006dk-UZ for emacs-devel@gnu.org; Fri, 17 Aug 2007 04:44:45 -0400 Original-Received: from pc3.berlin.powerweb.de ([62.67.228.11]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1ILxRl-0006P1-Ay for emacs-devel@gnu.org; Fri, 17 Aug 2007 04:44:45 -0400 Original-Received: from quinscape.de (dslnet.212-29-44.ip210.dokom.de [212.29.44.210] (may be forged)) by pc3.berlin.powerweb.de (8.9.3p3/8.9.3) with ESMTP id KAA18912 for ; Fri, 17 Aug 2007 10:44:42 +0200 X-Delivered-To: Original-Received: (qmail 6084 invoked from network); 17 Aug 2007 08:44:44 -0000 Original-Received: from unknown (HELO lola.quinscape.zz) ([10.0.3.43]) (envelope-sender ) by ns.quinscape.de (qmail-ldap-1.03) with SMTP for ; 17 Aug 2007 08:44:44 -0000 Original-Received: by lola.quinscape.zz (Postfix, from userid 1001) id 47A948F2E9; Fri, 17 Aug 2007 10:44:44 +0200 (CEST) User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.1.50 (gnu/linux) X-Detected-Kernel: Linux 2.4-2.6 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:76678 Archived-At: Hi, I frequently use tramp for editing remote files. Version control (git) does not work. I think that there should at least be an option for that: basically, all that would be required is going through the code and substituting start-process... with start-file-process... and so on, right? Another thing worth noting is vc-register, C-x v i, serves no useful function when a file is already registered. There are version control systems (at least git) where this function is mapped to "git-add" which adds material to the next commit. Since multi-file commits are more the rule than the exception with modern version control systems (which often make a point of having atomic multiple-file commits), I think it reasonable to have C-x v i register a file for the next commit. This registration may for some version control systems just be something done internally in Emacs (most probably not surviving the session). It would be made part of the next C-x v v commit by default. It is a bit more complicated to figure out how to change "the default". Since there is a lot of difference between version control systems of what may or may not be possible, maybe C-u C-x v v could just offer a prepared commit command in the minibuffer and give the user a possibility of editing it before submission? -- David Kastrup