From mboxrd@z Thu Jan 1 00:00:00 1970 From: Marco Wahl Subject: Re: [PATCH] Use prefix arg to control scope of org-narrow-to-subtree. Date: Sun, 01 Dec 2019 14:13:26 +0100 Message-ID: <844kyk2npl.fsf@gmail.com> References: <87ftq7kyvt.fsf@red-bean.com> <878svyqxwc.fsf@nicolasgoaziou.fr> <87y2vwv3gm.fsf_-_@red-bean.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:47988) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ibP2d-00008H-3z for emacs-orgmode@gnu.org; Sun, 01 Dec 2019 08:13:36 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ibP2c-0001Hy-5f for emacs-orgmode@gnu.org; Sun, 01 Dec 2019 08:13:35 -0500 Received: from 195-159-176-226.customer.powertech.no ([195.159.176.226]:33868 helo=blaine.gmane.org) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1ibP2b-0001HK-V8 for emacs-orgmode@gnu.org; Sun, 01 Dec 2019 08:13:34 -0500 Received: from list by blaine.gmane.org with local (Exim 4.89) (envelope-from ) id 1ibP2Z-000QmG-IS for emacs-orgmode@gnu.org; Sun, 01 Dec 2019 14:13:31 +0100 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 Karl Fogel writes: > This is the enhancement to `org-narrow-to-subtree' that I suggested back in May [1]. > > It allows you to choose what level subtree to narrow to. There are > two ways to specify the subtree: use repeated C-u's to select "upward" > from the current subtree, or use a direct numeric prefix arg to > specify the subtree "downward" from level 1. (This is a somewhat > unusual prefix argument usage, but it's useful to be able to choose > from either direction, and the convenience of using C-u to select > upward is quite enormous -- I expect it to be the common case, and > it's pretty much the only way I use the feature.) > > The prefix arg is optional, of course: if you don't pass it, then > `org-narrow-to-subtree' behaves the same way it has always behaved. +1 I think your enhancement is great and worth a news entry. What about pushing your code if nobody objects within one week? Ciao, Marco