From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric Abrahamsen Subject: Re: [PATCH] Use prefix arg to control scope of org-narrow-to-subtree. Date: Mon, 02 Dec 2019 08:51:54 +0000 Message-ID: <87lfrvqfdh.fsf@ericabrahamsen.net> 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]:49505) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ibhR6-0000rK-2V for emacs-orgmode@gnu.org; Mon, 02 Dec 2019 03:52:04 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ibhR5-0001Nu-2O for emacs-orgmode@gnu.org; Mon, 02 Dec 2019 03:52:03 -0500 Received: from 195-159-176-226.customer.powertech.no ([195.159.176.226]:36736 helo=blaine.gmane.org) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1ibhR4-0001Ms-S7 for emacs-orgmode@gnu.org; Mon, 02 Dec 2019 03:52:03 -0500 Received: from list by blaine.gmane.org with local (Exim 4.89) (envelope-from ) id 1ibhR2-000ukK-DB for emacs-orgmode@gnu.org; Mon, 02 Dec 2019 09:52:00 +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.) Just 2c: you're right that's a slightly odd use of the prefix argument. I think a slightly more conventional approach might be to use positive and negative numerical arguments, positive going one direction, negative the other. Just a suggestion, though -- I like this addition a lot.