From mboxrd@z Thu Jan 1 00:00:00 1970 From: Marco Wahl Subject: Re: What is the difference between `org-narrow-to-subtree' and `org-narrow-to-element'? Date: Mon, 08 Oct 2018 17:47:43 +0200 Message-ID: <84a7nophi8.fsf@gmail.com> References: <87a7no31e8.fsf@mbork.pl> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:36724) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1g9XlE-0001iY-4o for emacs-orgmode@gnu.org; Mon, 08 Oct 2018 11:47:56 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1g9XlA-0000e4-Q5 for emacs-orgmode@gnu.org; Mon, 08 Oct 2018 11:47:56 -0400 Received: from [195.159.176.226] (port=40963 helo=blaine.gmane.org) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1g9XlA-0000db-Fr for emacs-orgmode@gnu.org; Mon, 08 Oct 2018 11:47:52 -0400 Received: from list by blaine.gmane.org with local (Exim 4.84_2) (envelope-from ) id 1g9Xj1-0005ZF-08 for emacs-orgmode@gnu.org; Mon, 08 Oct 2018 17:45:39 +0200 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 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! HTH, Marco