From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: DEL vs Backspace Date: Mon, 26 Apr 2021 14:45:29 +0300 Message-ID: <83tuntjmli.fsf@gnu.org> References: <838s7hxqkr.fsf@gnu.org> <1c2c69f9-f42e-45e2-ab0e-8506aa859f85@yandex.ru> <87sg3el36g.fsf@gnus.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="4851"; mail-complaints-to="usenet@ciao.gmane.io" Cc: larsi@gnus.org, emacs-devel@gnu.org, monnier@iro.umontreal.ca, dgutov@yandex.ru To: Stefan Kangas Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Mon Apr 26 13:47:40 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 1laziF-00010h-OC for ged-emacs-devel@m.gmane-mx.org; Mon, 26 Apr 2021 13:47:39 +0200 Original-Received: from localhost ([::1]:51844 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1laziE-0008Fu-QO for ged-emacs-devel@m.gmane-mx.org; Mon, 26 Apr 2021 07:47:38 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:39456) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lazgR-0007Ip-5v for emacs-devel@gnu.org; Mon, 26 Apr 2021 07:45:47 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:53606) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lazgQ-0005Dw-Hg; Mon, 26 Apr 2021 07:45:46 -0400 Original-Received: from 84.94.185.95.cable.012.net.il ([84.94.185.95]:2461 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1lazgP-0001Hz-S7; Mon, 26 Apr 2021 07:45:46 -0400 In-Reply-To: (message from Stefan Kangas on Sun, 25 Apr 2021 19:45:14 -0500) 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:268454 Archived-At: > From: Stefan Kangas > Date: Sun, 25 Apr 2021 19:45:14 -0500 > Cc: Eli Zaretskii , Dmitry Gutov , emacs-devel@gnu.org > > > Still, as modes start changing their keymaps to place bindings on > > `backspace` we'll end up with situations where a minor modes has > > a mapping for DEL and the major mode has a different mapping for > > `backspace` and they'll end up chosen based on the incidental "tty or > > GUI?" distinction rather than based on the minor modes bindings's > > precedence over major modes's. > > The only idea I have would be to add byte-compiler warnings for > `global-set-key' and `define-key' like: > > Deprecated binding to `"DEL"', use `[backspace]' instead That wasn't Stefan's idea (or if it was, I don't like it). The problem is not that DEL is bound, the problem is that DEL and are bound differently. We cannot deprecate binding of DEL, because we don't want to break users of systems where that function key is unavailable (some terminal emulator comes to mind). > But perhaps there would still exist reasons why someone would want to > specifically bind "DEL"? Certainly: if doesn't exist or isn't supported by the keyboard.