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 19:56:53 +0100 Message-ID: <84k17elfnu.fsf@gmail.com> References: <87ftq7kyvt.fsf@red-bean.com> <878svyqxwc.fsf@nicolasgoaziou.fr> <87y2vwv3gm.fsf_-_@red-bean.com> <84immy4v3r.fsf@gmail.com> <87sgm2txeb.fsf@red-bean.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:36123) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ibqsb-0002MX-Dg for emacs-orgmode@gnu.org; Mon, 02 Dec 2019 13:57:06 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ibqsa-0000Qm-CB for emacs-orgmode@gnu.org; Mon, 02 Dec 2019 13:57:05 -0500 Received: from 195-159-176-226.customer.powertech.no ([195.159.176.226]:44212 helo=blaine.gmane.org) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1ibqsa-0000QS-4o for emacs-orgmode@gnu.org; Mon, 02 Dec 2019 13:57:04 -0500 Received: from list by blaine.gmane.org with local (Exim 4.89) (envelope-from ) id 1ibqsW-000XvT-5H for emacs-orgmode@gnu.org; Mon, 02 Dec 2019 19:57: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: > On 02 Dec 2019, Marco Wahl wrote: >>What about numeric prefix arg 0 to reveal the whole buffer (aka >>'widen')? I think this would be a logical completion to the feature. > > Since `widen' itself is already available via C-x n w, it might be > better to save a special flag value like that for some special > behavior that we (or someone else) might think of in the future. I'm > pretty sure that anyone using `org-narrow-to-subtree' must also know > about the `widen' command, too. Okay, this sounds sound. Let me be a bit more explicit about my wish: I vote for the prefix arg 0 to widen because this fits to the logic to view the whole file as level 0 subtree. With this perspective on the feature the effect of a numeric prefix argument is clear as day: ... C-u 2 M-x org-narrow... => Narrow to the level-2 subtree containing point. C-u 1 M-x org-narrow... => Narrow to the level-1 subtree containing point. C-u 0 M-x org-narrow... => Narrow to the level-0 subtree containing point. The last line stands in opposition to the current behavior. C-u 0 M-x org-narrow... => Narrow to the level-1 subtree containing point. ^ ^