From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: "Alfred M. Szmidt" Newsgroups: gmane.emacs.devel Subject: vc-magit mode (was: Re: PROPOSAL: Repurpose one key and reserve it for third-party packages) Date: Wed, 10 Feb 2021 08:09:45 -0500 Message-ID: References: <7ef75c33936136eb3a20@heytings.org> <87czxazbhr.fsf@melete.silentflame.com> <871rdqfaix.fsf@ericabrahamsen.net> <87mtwd42ck.fsf@melete.silentflame.com> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="5537"; mail-complaints-to="usenet@ciao.gmane.io" Cc: eric@ericabrahamsen.net, spwhitton@spwhitton.name, rms@gnu.org, emacs-devel@gnu.org To: thibaut.verron@gmail.com Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Wed Feb 10 14:11:22 2021 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 1l9pH8-0001Ll-PH for ged-emacs-devel@m.gmane-mx.org; Wed, 10 Feb 2021 14:11:22 +0100 Original-Received: from localhost ([::1]:60472 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1l9pH7-0008Su-S1 for ged-emacs-devel@m.gmane-mx.org; Wed, 10 Feb 2021 08:11:21 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:51810) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1l9pFi-0007rj-Nq for emacs-devel@gnu.org; Wed, 10 Feb 2021 08:09:55 -0500 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:42916) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1l9pFi-0002nO-5k; Wed, 10 Feb 2021 08:09:54 -0500 Original-Received: from ams by fencepost.gnu.org with local (Exim 4.82) (envelope-from ) id 1l9pFZ-0003a8-HM; Wed, 10 Feb 2021 08:09:46 -0500 In-Reply-To: (message from Thibaut Verron on Wed, 10 Feb 2021 12:35:06 +0100) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 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:264273 Archived-At: Here is an idea, a new backend -- vc-magit. This calls the right Magit functions. The user can then set the prefered backends using vc-handled-backends. This solves the (specific) conundrum of taking e.g., C-x g, and also provides the user with a consitent interface to VC mode when using magit. When in a buffer that has a git repository associated and your backend is vc-magit, vc-prefix-map, can be used by vc-magit / magit to bind specific magit keybindings that are not VC agonstic.