From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: Bug: [PATCH] Make org-narrow-to-subtree usable out of Org mode [8.2.7b (release_8.2.7b-6-g07d470 @ /home/youngfrog/sourcetrees/org-mode/lisp/)] Date: Thu, 24 Jul 2014 09:48:40 +0200 Message-ID: <87bnsfrycn.fsf@nicolasgoaziou.fr> References: <87fvht9tdo.fsf@yahoo.fr> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:54395) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XADl0-0006Dw-Ho for emacs-orgmode@gnu.org; Thu, 24 Jul 2014 03:48:13 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XADkt-00048R-BA for emacs-orgmode@gnu.org; Thu, 24 Jul 2014 03:48:06 -0400 Received: from relay6-d.mail.gandi.net ([2001:4b98:c:538::198]:53070) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XADkt-00048B-4t for emacs-orgmode@gnu.org; Thu, 24 Jul 2014 03:47:59 -0400 In-Reply-To: <87fvht9tdo.fsf@yahoo.fr> (Nicolas Richard's message of "Tue, 22 Jul 2014 19:48:51 +0200") 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-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Nicolas Richard Cc: emacs-orgmode@gnu.org Hello, Nicolas Richard writes: > org-narrow-to-subtree is very nice, and I now have C-x n s hard-wired > into my fingers, but it doesn't work when outline-regexp is too > different from org-outline-regexp in Outline-but-non-Org mode buffers. `org-narrow-to-subtree' is an Org function. I don't think it should bother about non Org mode buffers. > It looked pretty easy to fix, so here is my suggestion, below. It should > be rather harmless since it only affects non-Org buffers (and might have > the nice side effect of allowing other commands to run in those buffers > -- but I haven't checked.) There was a discussion recently about making it easier to use some Org features outside of Org. IIRC, the conclusion was that should not happen at the core level, but as an external layer (e.g., a minor mode). Regards, -- Nicolas Goaziou