From mboxrd@z Thu Jan 1 00:00:00 1970 From: =?utf-8?Q?Omar_Antol=C3=ADn_Camarena?= Subject: Org mode pollutes the narrow-map Date: Thu, 22 Aug 2019 19:47:15 -0500 Message-ID: <86blwg908c.fsf@matem.unam.mx> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:45065) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1i0xjb-0004uQ-5l for emacs-orgmode@gnu.org; Thu, 22 Aug 2019 20:47:20 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1i0xja-0007c6-Az for emacs-orgmode@gnu.org; Thu, 22 Aug 2019 20:47:19 -0400 Received: from mail-ot1-f51.google.com ([209.85.210.51]:46582) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1i0xja-0007bn-71 for emacs-orgmode@gnu.org; Thu, 22 Aug 2019 20:47:18 -0400 Received: by mail-ot1-f51.google.com with SMTP id z17so7201865otk.13 for ; Thu, 22 Aug 2019 17:47:17 -0700 (PDT) Received: from Dell ([2806:107e:13:5413:3cc5:d62a:aad6:ab76]) by smtp.gmail.com with ESMTPSA id f84sm414722oig.43.2019.08.22.17.47.15 for (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 22 Aug 2019 17:47:16 -0700 (PDT) List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: "Emacs-orgmode" To: emacs-orgmode@gnu.org Hello everyone, Does it seems a little rude that Org mode binds its own narrowing commands = in the global narrow-map? You can find this in org.el starting at line 19018: #+begin_src emacs-lisp ;;;; Narrow map (org-defkey narrow-map "s" #'org-narrow-to-subtree) (org-defkey narrow-map "b" #'org-narrow-to-block) (org-defkey narrow-map "e" #'org-narrow-to-element) #+end_src I don't need or really want those commands bound in non-org buffers. I thin= k it would be better to bind them (to C-x n s, C-x n b and C-x n e) in org-= mode-map. This is the approach taken by AUCTeX, for example. (To be clear, = I mean AUCTeX has some narrowing commands and it binds them to C-x n e and = C-x n g in its own keymaps.) --=20 Omar Antol=C3=ADn Camarena