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: Mon, 02 Dec 2019 16:15:20 +0100 Message-ID: <84immy4v3r.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]:44727) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ibnQC-00080J-MS for emacs-orgmode@gnu.org; Mon, 02 Dec 2019 10:15:33 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ibnQB-0004BM-Kk for emacs-orgmode@gnu.org; Mon, 02 Dec 2019 10:15:32 -0500 Received: from 195-159-176-226.customer.powertech.no ([195.159.176.226]:59714 helo=blaine.gmane.org) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1ibnQB-00047x-DK for emacs-orgmode@gnu.org; Mon, 02 Dec 2019 10:15:31 -0500 Received: from list by blaine.gmane.org with local (Exim 4.89) (envelope-from ) id 1ibnQ8-0012X8-9P for emacs-orgmode@gnu.org; Mon, 02 Dec 2019 16:15:28 +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: > 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. What about numeric prefix arg 0 to reveal the whole buffer (aka 'widen')? I think this would be a logical completion to the feature.