From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Karl Fogel Newsgroups: gmane.emacs.devel Subject: Re: Invoking Magit Date: Tue, 02 Feb 2021 16:49:57 -0600 Message-ID: <875z3akru2.fsf@red-bean.com> References: <20210202134950.vybbpf3iewbymfjo.ref@Ergus> <20210202134950.vybbpf3iewbymfjo@Ergus> <878s86tnv6.fsf@red-bean.com> <87r1lynx0i.fsf@red-bean.com> Reply-To: Karl Fogel Mime-Version: 1.0 Content-Type: text/plain; format=flowed Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="26688"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cc: Ergus , emacs-devel@gnu.org To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Tue Feb 02 23:55:56 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 1l74aQ-0006mV-8M for ged-emacs-devel@m.gmane-mx.org; Tue, 02 Feb 2021 23:55:54 +0100 Original-Received: from localhost ([::1]:46276 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1l74aP-0004I1-5f for ged-emacs-devel@m.gmane-mx.org; Tue, 02 Feb 2021 17:55:53 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:41226) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1l74Um-0004xf-BB for emacs-devel@gnu.org; Tue, 02 Feb 2021 17:50:04 -0500 Original-Received: from sanpietro.red-bean.com ([45.79.25.59]:36676) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1l74Uj-0007hi-Q0 for emacs-devel@gnu.org; Tue, 02 Feb 2021 17:50:04 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=red-bean.com; s=202005newsp; h=Content-Type:MIME-Version:Message-ID: In-Reply-To:Date:Reply-To:References:Subject:Cc:To:From:Sender: Content-Transfer-Encoding:Content-ID:Content-Description; bh=vtH65bm1n+PATwQFV1QOoND5io6vbUfBPZaUhyh0bow=; t=1612306201; x=1613515801; b=MhQ2St6lj63eFLf+oIYL4vH+pcOghuQnM27vrvlczuTY8Ntv5uOknAbO04yw9jBAYFJqwPVBaS VrnyWiIL7tiazVi7cOznsWYpdBmK0jkHU0e7LZMekTkJd1273bN3QnBioNwMBmnncdBRQh97jCefZ q4PzH8P1iplk+sJLQ1ZoEmwms5meYHmNI/wA+hnv/CjJlSoJ/j1M4ZcZIDewitGuxMeL/GRt5gPgR mf4Jnur6dDJWVBb2GDCpnpJCSfVl4SEVZ82eVF5Kcx6WzNwMFVGs+HbVlt4zfw+AnhPfcMElaU/Lr 2e96JRPMXp4R+czrClQMP29tdaWvogMT42jtA==; Original-Received: from 99-112-125-163.lightspeed.cicril.sbcglobal.net ([99.112.125.163]:39088 helo=floss) by sanpietro.red-bean.com with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1l74Uh-0005Gx-2N; Tue, 02 Feb 2021 22:49:59 +0000 In-Reply-To: (Stefan Monnier's message of "Tue, 02 Feb 2021 14:59:26 -0500") Received-SPF: pass client-ip=45.79.25.59; envelope-from=kfogel@red-bean.com; helo=sanpietro.red-bean.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action 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:263762 Archived-At: On 02 Feb 2021, Stefan Monnier wrote: >Those are for use *within* the major/minor mode. The keybinding >under discussion is a global one to make it easier to enter >Magit. It doesn't have much choice but to collide with something >:-( Yes, I know? (Sorry; I think you maybe thought I was saying something I wasn't saying.) >>> I think it'd make more sense to use a keybinding under the >>> `C-x v` prefix. >> ...I couldn't tell whether you meant it would make more sense >> for *users* to >> do that (i.e., by their choice), or for *Emacs* to do that >> (i.e., we >> reserve that slot for Magit). > Neither/both. I meant for Magit to do that. What I'm proposing is cooperation between Emacs and popular independent 3rd-party packages: Emacs reserves certain bindings for a given package, so that when the package maintainers use those bindings, they know it's safe. Emacs would maintain a registry so it's clear to everyone what's going on. Let me put it this way: If Magit were shipped as part of Emacs, there would be no question in about what to do, right? Emacs would choose keybindings for the Magit entry points, the same way Emacs chooses keybindings for anything else. All I'm saying is, the fact that Magit is not shipped with Emacs is largely irrelevant here. What matters is its popularity, not its provenance. Emacs can still reserve keybindings for it, and the fact that the package is supplied from elsewhere is fine. (What those bindings would do when the package isn't loaded is simply display information about where to get the package in questions.) Best regards, -Karl