From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Kaushal Modi Newsgroups: gmane.emacs.help Subject: Re: Do we need to bind to both RET and variants? Date: Wed, 23 Jan 2019 18:11:42 -0500 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="186095"; mail-complaints-to="usenet@blaine.gmane.org" Cc: Help Gnu Emacs mailing list To: Stefan Monnier Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Jan 24 00:13:03 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 1gmRhe-000mDJ-Ac for geh-help-gnu-emacs@m.gmane.org; Thu, 24 Jan 2019 00:13:02 +0100 Original-Received: from localhost ([127.0.0.1]:43374 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gmRhc-0008K8-4B for geh-help-gnu-emacs@m.gmane.org; Wed, 23 Jan 2019 18:13:00 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:45679) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gmRh2-0008J5-Vo for help-gnu-emacs@gnu.org; Wed, 23 Jan 2019 18:12:25 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gmRgz-0004or-Vh for help-gnu-emacs@gnu.org; Wed, 23 Jan 2019 18:12:23 -0500 Original-Received: from mail-lj1-x232.google.com ([2a00:1450:4864:20::232]:34549) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gmRgz-0004nN-O5 for help-gnu-emacs@gnu.org; Wed, 23 Jan 2019 18:12:21 -0500 Original-Received: by mail-lj1-x232.google.com with SMTP id u89-v6so3551509lje.1 for ; Wed, 23 Jan 2019 15:12:21 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=hAdYSJ15O3J19g6+nx74311nrYKExaCSOIbmnDVOx18=; b=CuwfcKYUs7MDmHKtlR9Jm2d9DOV4YReVcWBejXPjGO9trZRUITlnElhYQ9iaBU460x ujyZ5F/F6kd4e0coajq6/z2SyTU3XvgVZkSgqf4ZsIZM8qt4FAPsw0e8lzbn/+8v+r01 6mpC6vSKuFrZDHqPNO5frR8ZfKV0aLWTL3t/Zc4RJUKBPWMK4T2mK58ZI4lyNmTK//nA jtTUBgobRxuwLzX31Ul6GKTQdQuGODyUTuBkoqiZwsfQxu112DTd/ahWXEs3HQ80v5bG K7dbbUjf17TC+ZWaia6BjcfB5pTCVoQpdYu1vOCa2kuLW99WGYycVMc92wG/3XZKPxau IrMw== 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:from:date :message-id:subject:to:cc; bh=hAdYSJ15O3J19g6+nx74311nrYKExaCSOIbmnDVOx18=; b=RSNYR3n6EVgPIzRwAuwpeXFbhjGCKT8/cJ+vmtZxWqvbhqcX6+ifuWdVx98V8RFh1o ysutefZjLa9lbIqZSrIZcTPDSSBOb0JXeOBWc25yOYv4vgkWJNsc5rnHe0dYT7UGJbwF HRsoYCbQ7Rlmxlwh49hZy7id+mWPqEWFNhsl6t0Fj9g00WTxW7DX1rAJeB6lFHC3MmUH ShYqOfliDIOWDR1CVr1R8zcFolhR8JNRq2swA7W0x9nQrBT+uO0RhpQHRQ9hDhMgSO3O FtlCuhxm+Z16ltsFrzi/v2T7O67ywDaq0cupOXJIlF+Ef9QAcidstElL2fTe1VdN0jEH GXPQ== X-Gm-Message-State: AJcUukeccVPpPs8aSAyQ1oWG+19cTt5zyxDu6y0d3RafRBU8oBg+VDXf sxbEG/kGA8cm3TuitaqZcVoFkGSl802q8veROLU= X-Google-Smtp-Source: ALg8bN4lixTpEpAxge+/kIcDeQJLjLhD5OeyP3576D1pEGj6QVBU5ARbDx1ereVuDsBhaAqAoty+MTsVxUQZ4rQX3BY= X-Received: by 2002:a2e:8546:: with SMTP id u6-v6mr2534616ljj.95.1548285139326; Wed, 23 Jan 2019 15:12:19 -0800 (PST) In-Reply-To: X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:4864:20::232 X-Content-Filtered-By: Mailman/MimeDel 2.1.21 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:119144 Archived-At: On Wed, Jan 23, 2019 at 5:53 PM Stefan Monnier wrote: > > 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). > But it did not work that way for me. Earlier I did not have a S- binding in my config. So once the binding changed to S-RET (in org-mode-map) upstream in Org, S- stopped working for me altogether (Emacs GUI). Then C-h k and typing S- should say interpret that as just RET: RET (translated from ) runs the command modi/org-return-no-indent I have bound modi/org-return-no-indent to C-m. So to fix this I had to add the bindings manually to my config: (bind-keys :map org-mode-map :filter (org-at-table-p) ("S-" . org-table-copy-down)) ;; https://lists.gnu.org/r/emacs-orgmode/2019-01/msg00312.html ;; Add the variant of bindings so that they work on Emacs ;; GUI too. (bind-keys :map org-mode-map ("M-S-" . org-insert-todo-heading) ("ESC S-" . org-insert-todo-heading) ("M-" . org-meta-return) ("ESC " . org-meta-return)) Any tips on what could be causing S- to be auto-translated to just RET, and not use the upstream Org source defined S-RET binding?