From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Thibaut Verron Newsgroups: gmane.emacs.devel Subject: Re: Standardizing more key bindings? Date: Fri, 2 Oct 2020 08:26:14 +0200 Message-ID: References: Reply-To: thibaut.verron@gmail.com Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="38812"; mail-complaints-to="usenet@ciao.gmane.io" Cc: emacs-devel , Dmitry Gutov To: Richard Stallman Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Fri Oct 02 08:28:52 2020 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 1kOEYl-0009zz-Rz for ged-emacs-devel@m.gmane-mx.org; Fri, 02 Oct 2020 08:28:51 +0200 Original-Received: from localhost ([::1]:52780 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kOEYk-0005Iy-RC for ged-emacs-devel@m.gmane-mx.org; Fri, 02 Oct 2020 02:28:50 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:44226) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kOEWT-0004Py-Ac for emacs-devel@gnu.org; Fri, 02 Oct 2020 02:26:29 -0400 Original-Received: from mail-wm1-x332.google.com ([2a00:1450:4864:20::332]:53824) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kOEWR-0004Ep-JZ; Fri, 02 Oct 2020 02:26:29 -0400 Original-Received: by mail-wm1-x332.google.com with SMTP id x23so423356wmi.3; Thu, 01 Oct 2020 23:26:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:reply-to:from:date:message-id :subject:to:cc; bh=CIazRd5WD6kipOd9wj+Ffc/5GJK86UL6JkKr+CYciwY=; b=spl9SofuBsuBEhWTlaiSZfGbc+RI8nLqSYONc8fhDYQvXdFkJgCFITsyEiSe3BI8JK R4yAttVaXvyNA8xI9l9RGx17wVCeXVi6+c2epuhwv1x5JLAiuH75wxs7HoJ/xTc1ZThx JNoNOrhY2tk5dAsjXgqPIGCs26JoDRggpAkvOzX9ZeMsLy2V11Z7Lmjxmjq0lBpNrPEu EUXb6xEdI/0z5PoT/HQKgdkDL6O2exIWliNRiwVgj8CwUzlMay8/vwO5zRsorx7QDDMG 1hjpnifv7uiaiVYpQVp1IvQVaLKrQR7YXFDmqXYOpvtLujDFIhy3CdLG2sIxSTPeBbr3 L0bQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:reply-to :from:date:message-id:subject:to:cc; bh=CIazRd5WD6kipOd9wj+Ffc/5GJK86UL6JkKr+CYciwY=; b=XkES79OnrWR/BCieS9NSNSlM+Q095HfH+6usiaKF1PJ7qo5qUf6K/sAkmuS8C+4/bg ydmJ7igXMb24A6YP9mo0kBargFcA36qISKVLUDnFraU0BKg1Q6xsGToCCbC058kuKxrN QSp28XF6Gu/LSDRMc5JES57wcR6IgMidsD4PpfIWN0FjLnETudG1KRiOL62nEObjPJbU xk7d4TE+6DW+cFhklmCGKrZY87LldhNi8/HtUs6iUkYotyGge5l/q3SR55Aw2OPuMrQn k6WWNxL4HdpUuIvbnR3AP/s1s7xLIg4Xx4gvEWTlKRTBg5Eveulhr8POTfDNqJm6uRQo d3Wg== X-Gm-Message-State: AOAM533cvDprPkkal/aDQcbUly5Cjmp70Ptf3kUv27wlmdLCRbmgjptX TBapy2w8WZMDIZcO5bWHb131OJtkYNnqY8JfrGlhk+KRFWqHmA== X-Google-Smtp-Source: ABdhPJwxzM+eSjEGBRrC5f1pduR39UJZXIMvnzTVYsAISlD4yr/KX7x1WA0n1xUTxybGia/K2xZDeYOgaqvCLmgYZco= X-Received: by 2002:a1c:117:: with SMTP id 23mr983960wmb.48.1601619985424; Thu, 01 Oct 2020 23:26:25 -0700 (PDT) In-Reply-To: Received-SPF: pass client-ip=2a00:1450:4864:20::332; envelope-from=thibaut.verron@gmail.com; helo=mail-wm1-x332.google.com X-detected-operating-system: by eggs.gnu.org: No matching host in p0f cache. That's all we know. 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, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=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:256924 Archived-At: > To make them global means they conflict with a lot more other bindings, > and that makes the task of choosing these bindings harder. > It also means that the change would be a bigger incompatibility. I don't suggest that we choose bindings. The question is can we have infrastructure making is easy for users (or starter kit developers, etc) to set such bindings across modes. > The first question is, should thee bindings be conceptually global? > I don't think so. > (...) > Thus, I think we should plan on having these bindings only > in the major modes that involve talking to an intepreter. Yes, definitely. > How to _implement_ these bindings is another question. > The easy way is for each major modes to establish the bindings > in its major mode map. That is simple and coherent with > the rest of Emacs. But today, it typically results in different bindings, and rebinding, if wanted, has to be done in each of the modes. > The idea of having one single keymap to implement them presumes that > any given binding is implemented by the same command in all these modes. > Is that true? I doubt it. That is one possibility suggested in my original message. To have one single entry point for those commands, which then calls functions defined by the mode, similar to how indentation works.