From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: Org mode pollutes the narrow-map Date: Fri, 23 Aug 2019 10:40:21 +0200 Message-ID: <87mug0z34a.fsf@nicolasgoaziou.fr> References: <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]:45567) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1i157Z-0002Z8-Iw for emacs-orgmode@gnu.org; Fri, 23 Aug 2019 04:40:34 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1i157X-0008RN-EX for emacs-orgmode@gnu.org; Fri, 23 Aug 2019 04:40:33 -0400 Received: from relay3-d.mail.gandi.net ([217.70.183.195]:47065) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1i157W-0008Q4-Cq for emacs-orgmode@gnu.org; Fri, 23 Aug 2019 04:40:30 -0400 In-Reply-To: <86blwg908c.fsf@matem.unam.mx> ("Omar =?utf-8?Q?Antol=C3=ADn?= Camarena"'s message of "Thu, 22 Aug 2019 19:47:15 -0500") 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: Omar =?utf-8?Q?Antol=C3=ADn?= Camarena Cc: emacs-orgmode@gnu.org Hello, Omar Antol=C3=ADn Camarena writes: > Hello everyone, > > Does it seems a little rude that Org mode binds its own narrowing command= s 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 think 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.) It sounds reasonable. I changed the bindings in master. Thank you. Regards, --=20 Nicolas Goaziou