From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id uA52M5mS3WAeWQEAgWs5BA (envelope-from ) for ; Thu, 01 Jul 2021 12:02:01 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id +FyuLpmS3WDzZQAAB5/wlQ (envelope-from ) for ; Thu, 01 Jul 2021 10:02:01 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 576C02782F for ; Thu, 1 Jul 2021 12:02:01 +0200 (CEST) Received: from localhost ([::1]:59242 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lytWB-0000zq-Oa for larch@yhetil.org; Thu, 01 Jul 2021 06:01:59 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:56728) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lxWoB-0001SA-69 for emacs-orgmode@gnu.org; Sun, 27 Jun 2021 11:34:56 -0400 Received: from server.qxqx.de ([2a01:4f8:121:346::180]:40295 helo=mail.qxqx.de) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lxWo8-00015z-FG for emacs-orgmode@gnu.org; Sun, 27 Jun 2021 11:34:54 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=qxqx.de; s=mail1392553390; h=Content-Transfer-Encoding:Content-Type:In-Reply-To: MIME-Version:Date:Message-ID:Cc:References:To:From:Subject:Sender:Reply-To: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=ZnXjg+V8kDZf86cDGg58yOkONb+a4dYrr8Amu4d/rhc=; b=KG6yI3qMrhP/9w6XRuR8ZwKyij AQ+19t5LhcXoPlTLxzb2R+vei5Eazay/ctfT0btG8vmMfO1uAVzwe9opnX/1bRbVN9BDK3zkpCohZ ReX/epGxf+BT2nHY7Ix6ydUcCoqTysyQ8/RSVSQPIl9vaE3vI8TD4lpOycc0ESTP8IqA=; Subject: org-mode-map binds [tab] From: Daniel Mendler To: emacs-orgmode@gnu.org References: <20210626095705.11804.96621@vcs0.savannah.gnu.org> <20210626095707.B514720D0A@vcs0.savannah.gnu.org> <3209a500-8654-2508-3b1a-34a73edc0053@daniel-mendler.de> Message-ID: <00ca1c7b-1e1d-fc91-eef3-dfc29b51b825@daniel-mendler.de> Date: Sun, 27 Jun 2021 17:34:46 +0200 MIME-Version: 1.0 In-Reply-To: <3209a500-8654-2508-3b1a-34a73edc0053@daniel-mendler.de> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Received-SPF: pass client-ip=2a01:4f8:121:346::180; envelope-from=mail@daniel-mendler.de; helo=mail.qxqx.de X-Spam_score_int: -41 X-Spam_score: -4.2 X-Spam_bar: ---- X-Spam_report: (-4.2 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Mailman-Approved-At: Thu, 01 Jul 2021 06:00:27 -0400 X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Stefan Monnier Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1625133721; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=ZnXjg+V8kDZf86cDGg58yOkONb+a4dYrr8Amu4d/rhc=; b=es9Zi1N+JctgL/V37AZoaVELozsYTgiF9UO2pEZE3hDq68BTezzXD6dzCeef7PZhQNLHGX elo9iuAgxFrHszx3TqNTZuY9aSd2sIXzjvw7heo97vUvzj+TKIy1Q0j65a1UqrBSFA7WSd VffN0TtyNCuQQyA80JFxaOzdPA7YVxxMtntwKKmSuX1OR4yC4dZE+VEJxTQMJ/t67CiKK3 X7haydDRCxq7+JW57udG17mibuASoPe640QKkpsr7s6pw5bDE0i01qWdyn7bPausGQJLhV UI9VETr8rOVe9ns8U2DK1ZlEgK3B5TYxY42cwwabKAYoxC92ss9oVDUG8qy8PA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1625133721; a=rsa-sha256; cv=none; b=jcCyEiwMLZXCcPrRXdE0RTpoGmS9WHTE5K3QuUMARxI5L1oKBycEP3kjSOP/gXm29EDBFG CNjJOjI8z/E+bd+05K9wvWqRvajejOx6xuFjMvy+nsNaeZDvjO3kGmrisq9qFRD2XIQCAG LM0a043FdVgEcIUoyNNjdh04TZqWjkLCEAPDedJr7DpAXNQaa7uxzo7JOS1Bc49PxIb4NB d3Ywfj66gjRR5gEnkiqfvyinn9dTlR+Q9Sm614LBUfzBtcdvas3wbvMvuL3kI5f1hFdwhf uow7E7C1EU36DkooKOKnzWLs7sIZc7nvgGxobXmn7Yf3Eq8g9notm5biaPE4tQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=qxqx.de header.s=mail1392553390 header.b=KG6yI3qM; spf=pass (aspmx1.migadu.com: domain of emacs-orgmode-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org X-Migadu-Spam-Score: -0.42 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=qxqx.de header.s=mail1392553390 header.b=KG6yI3qM; dmarc=none; spf=pass (aspmx1.migadu.com: domain of emacs-orgmode-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org X-Migadu-Queue-Id: 576C02782F X-Spam-Score: -0.42 X-Migadu-Scanner: scn0.migadu.com X-TUID: UjHUajK5jajA `org-mode-map` binds `[tab]` which is unnecessary and harmful, since it takes precendence over bindings of TAB even in keymaps with higher precedence. Emacs : GNU Emacs 27.1 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.5, cairo version 1.16.0) of 2021-02-09, modified by Debian Package: Org mode version 9.4.6 (9.4.6-gab9f2a @ /home/user/.config/emacs/elpa/org-9.4.6/) ---- I've observed this problem with my GNU ELPA package Corfu, which installs a keymap with higher precedence than org-mode. In order to override Org, it also has to bind [tab], which is undesired. On 6/27/21 11:11 AM, Daniel Mendler wrote: > On 6/26/21 4:02 PM, Stefan Monnier wrote: >>> + (define-key map [tab] #'corfu-complete) >> >> Please avoid binding `tab`: the `tab` event (only generated under GUIs) >> is supposed to be remapped to the TAB char-event (aka `C-i`) and this is >> what you should bind to if you want your binding to work both under ttys >> and GUIs. >> >> More importantly, if you bind to `tab` than this binding will take >> precedence over all other bindings to TAB, even those in keymaps that >> have higher precedence. >> >> The same holds for `return` vs RET, and `escape` vs ESC. > > Hello Stefan, > > I am aware of the unfortunate implications of these bindings. > Originally I avoided these bindings for the exact reasons you mention > and I hoped I could do without those (only binding RET/TAB and > remappings). However I have to use these keys since Org-mode seems to > override these keys too. Otherwise my keymap will not take precedence > over the Org-mode keymap. > > Daniel >