From mboxrd@z Thu Jan 1 00:00:00 1970 From: Marcin Borkowski Subject: Re: What is the difference between `org-narrow-to-subtree' and `org-narrow-to-element'? Date: Wed, 10 Oct 2018 22:05:11 +0200 Message-ID: <87k1mp8t54.fsf@mbork.pl> References: <87a7no31e8.fsf@mbork.pl> <84a7nophi8.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:59174) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gAKkd-00086E-1o for emacs-orgmode@gnu.org; Wed, 10 Oct 2018 16:06:35 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gAKkZ-0000lD-SD for emacs-orgmode@gnu.org; Wed, 10 Oct 2018 16:06:35 -0400 Received: from mail.mojserwer.eu ([195.110.48.8]:35858) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gAKkZ-0000kx-KV for emacs-orgmode@gnu.org; Wed, 10 Oct 2018 16:06:31 -0400 In-reply-to: <84a7nophi8.fsf@gmail.com> 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: Marco Wahl Cc: emacs-orgmode@gnu.org On 2018-10-08, at 17:47, Marco Wahl wrote: > Hi! > >> I found these two commands. They seem to do the same thing. What is >> the difference? > > This is an example illustrating the difference. > > - Have point on the *table* of the following subtree. > > > --8<---------------cut here---------------start------------->8--- > * foo > > | foo | foo | > | foo | foo | > > * bar > --8<---------------cut here---------------end--------------->8--- > > > - Use command `org-narrow-to-subtree'. See the effect. > - Use command `widen' to get rid of the restriction. > - Make sure to have point on the table of the subtree again. > - Use command `org-narrow-to-element. See the effect. > - Compare! Thanks, it did not occur to me that "element" may be something other than a "subtree"! Best, -- Marcin Borkowski http://mbork.pl