From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.help Subject: Re: Do we need to bind to both RET and variants? Date: Wed, 23 Jan 2019 17:33:39 -0500 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="103050"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Jan 23 23:53:29 2019 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gmROi-000Qax-O0 for geh-help-gnu-emacs@m.gmane.org; Wed, 23 Jan 2019 23:53:28 +0100 Original-Received: from localhost ([127.0.0.1]:43120 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gmROh-0004LB-Pe for geh-help-gnu-emacs@m.gmane.org; Wed, 23 Jan 2019 17:53:27 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:37399) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gmRMZ-0002xi-2K for help-gnu-emacs@gnu.org; Wed, 23 Jan 2019 17:51:15 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gmR5f-0004sU-W1 for help-gnu-emacs@gnu.org; Wed, 23 Jan 2019 17:33:48 -0500 Original-Received: from [195.159.176.226] (port=35394 helo=blaine.gmane.org) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1gmR5f-0004rc-P3 for help-gnu-emacs@gnu.org; Wed, 23 Jan 2019 17:33:47 -0500 Original-Received: from list by blaine.gmane.org with local (Exim 4.89) (envelope-from ) id 1gmR5d-0005bd-GL for help-gnu-emacs@gnu.org; Wed, 23 Jan 2019 23:33:45 +0100 X-Injected-Via-Gmane: http://gmane.org/ Cancel-Lock: sha1:EDuB+82lQkWjiN0nEA+mtEVWVR8= X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 195.159.176.226 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.org gmane.emacs.help:119143 Archived-At: > For the return key (for Emacs GUI) and the C-m variant RET (in nowindow > mode, terminal) to both work, should we be binding to both RET and > variants? No, if you don't care about the difference, then bind only RET (which will also apply to `return` because `return` is remapped to RET if there's no binding specifically for it). Same with TAB vs `tab`. It's important to follow this convention, otherwise you mess up every other package which does follow the convention (since your `return` binding will then take precedence even if it's in a low-precedence map). Stefan