From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id 6Fz0AhmT3WA7WQEAgWs5BA (envelope-from ) for ; Thu, 01 Jul 2021 12:04:09 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id YN0yOhiT3WBBAwAAbx9fmQ (envelope-from ) for ; Thu, 01 Jul 2021 10:04:08 +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 71D192C113 for ; Thu, 1 Jul 2021 12:04:08 +0200 (CEST) Received: from localhost ([::1]:40462 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lytYE-0007GC-Tm for larch@yhetil.org; Thu, 01 Jul 2021 06:04:06 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:57272) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lxWr5-00047a-N1 for emacs-orgmode@gnu.org; Sun, 27 Jun 2021 11:37:55 -0400 Received: from server.qxqx.de ([2a01:4f8:121:346::180]:40763 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 1lxWr4-0003I5-5x for emacs-orgmode@gnu.org; Sun, 27 Jun 2021 11:37:55 -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:References:Cc:To:Subject:From: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=KIS4WjTupL2uPHXxa2mp/dOZI3 YrSD2cd7xKwgYEybNdfyvy7mDINu0WZkb53J/nxBhvZ6DDtAhFxFR/6snSLw9uIXKGsRCZ/Hg/u7B 9B0weX6F2fET1LrdPyWlUNbBLDFKnpXsOB4n/jp7/2QCZJO7+/DiMt6cY+jMsevbrWZo=; From: Daniel Mendler Subject: Bug: org-mode-map binds tab [9.4.6 (9.4.6-gab9f2a @ /home/user/.config/emacs/elpa/org-9.4.6/)] 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: Date: Sun, 27 Jun 2021 17:37:50 +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=1625133848; 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=jxWK4vDZO7zVUeXtI7nOj5CGpXO7HES2gvBRyMmsVF7rAg/w7CETKxyigkn8ayiEoatqIX GN50G6HYkfXFbASarN/IiUS6QKTowwDZfmdgPbQhTX2cMXn3qBrghh3cEWj3LPmWVLoIXQ 9y7DUCW+5iO7uzf/OasTRlSyvujVTokZ38Ty2OXcj0AcpIzgg3DM7z+VqG0tMv6U39EN0h Lt5DeUrbT4FQX9UIPTu+JyWfx5K6J6WdtiIKmHPfY50gCxTxTXl4Vmna/K0UXhXU9Umqdc a9U2JX+dhg2ze6DPP/rqEDaiTUu6tBcw10Bj99nAIl6iwv/D5mX120VawmOucA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1625133848; a=rsa-sha256; cv=none; b=NwwFqWt9ENZqxZDgIO+MfIc6RCl0MJdwVaeZUrMpllJgQICpRqyBf0Nq/ZH76e+/MhvvSc EQX+zQvFUYr83kwnpAG/2swY8qSmXF61XkL4R04JvTmTj7Qn+Dw2TpsqtjyWaMX6GydzJu 2hxz3YXvB5jFZQbNAcmXMgDZLP4L3OHVjm017odwWiexZ770x+CZjWQhPOg1vTL7SjKpd3 eUEGYyksippepZ7oV39DlGEXYZ/EWIBk9furxjDIPNnFragbBb7qTMSgfbXK+IRuJdqI4p RNrIXkk5B4tlVlVmb5S8wSf0CRndGPhUQGusy7SOTdjWQsMWb1qqZtEgSNn8LQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=qxqx.de header.s=mail1392553390 header.b=KIS4WjTu; 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-Spam-Score: -0.42 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=qxqx.de header.s=mail1392553390 header.b=KIS4WjTu; 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: 71D192C113 X-Spam-Score: -0.42 X-Migadu-Scanner: scn0.migadu.com X-TUID: Gtq8c0Pe9hNe `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 >