From mboxrd@z Thu Jan 1 00:00:00 1970 From: =?UTF-8?Q?Omar_Antol=C3=ADn_Camarena?= Subject: Re: Org mode pollutes the narrow-map Date: Fri, 23 Aug 2019 05:10:30 -0500 Message-ID: References: <86blwg908c.fsf@matem.unam.mx> <87mug0z34a.fsf@nicolasgoaziou.fr> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="00000000000019b7350590c60552" Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:59280) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1i16X2-0002KV-Op for emacs-orgmode@gnu.org; Fri, 23 Aug 2019 06:10:57 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1i16X1-0001e8-1M for emacs-orgmode@gnu.org; Fri, 23 Aug 2019 06:10:56 -0400 Received: from gauss.matem.unam.mx ([132.248.17.1]:38227) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1i16X0-0001WX-Oq for emacs-orgmode@gnu.org; Fri, 23 Aug 2019 06:10:54 -0400 Received: from mail-qk1-f178.google.com (mail-qk1-f178.google.com [209.85.222.178]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) (Authenticated sender: omar) by gauss.matem.unam.mx (Postfix) with ESMTP id 5CF6454220 for ; Fri, 23 Aug 2019 05:10:48 -0500 (CDT) Received: by mail-qk1-f178.google.com with SMTP id d23so7736611qko.3 for ; Fri, 23 Aug 2019 03:10:48 -0700 (PDT) In-Reply-To: <87mug0z34a.fsf@nicolasgoaziou.fr> 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: =?UTF-8?Q?Omar_Antol=C3=ADn_Camarena?= , emacs-orgmode@gnu.org --00000000000019b7350590c60552 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Great, thanks! On Fri, Aug 23, 2019, 3:40 AM Nicolas Goaziou wrote: > Hello, > > Omar Antol=C3=ADn Camarena writes: > > > 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 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, > > -- > Nicolas Goaziou > --00000000000019b7350590c60552 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Great, thanks!

On Fri, Aug 23, 2019, 3:40 AM Nicolas Goazi= ou <mail@nicolasgoaziou.fr= > wrote:
Hello,

Omar Antol=C3=ADn Camarena <omar@matem.unam.mx> writes:

> Hello everyone,
>
> Does it seems a little rude that Org mode binds its own narrowing comm= ands in the global narrow-map?
>
> You can find this in org.el starting at line 19018:
>
> #+begin_src emacs-lisp
>=C2=A0 =C2=A0;;;; Narrow map
>=C2=A0 =C2=A0(org-defkey narrow-map "s" #'org-narrow-to-s= ubtree)
>=C2=A0 =C2=A0(org-defkey narrow-map "b" #'org-narrow-to-b= lock)
>=C2=A0 =C2=A0(org-defkey narrow-map "e" #'org-narrow-to-e= lement)
> #+end_src
>
> I don't need or really want those commands bound in non-org buffer= s.
> 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,

--
Nicolas Goaziou
--00000000000019b7350590c60552--