emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* What is the difference between `org-narrow-to-subtree' and `org-narrow-to-element'?
@ 2018-10-08 15:26 Marcin Borkowski
  2018-10-08 15:47 ` Marco Wahl
  2018-10-08 15:58 ` Eric S Fraga
  0 siblings, 2 replies; 5+ messages in thread
From: Marcin Borkowski @ 2018-10-08 15:26 UTC (permalink / raw)
  To: Org-Mode mailing list

Hi all,

I found these two commands.  They seem to do the same thing.  What is
the difference?

TIA,

-- 
Marcin Borkowski
http://mbork.pl

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: What is the difference between `org-narrow-to-subtree' and `org-narrow-to-element'?
  2018-10-08 15:26 What is the difference between `org-narrow-to-subtree' and `org-narrow-to-element'? Marcin Borkowski
@ 2018-10-08 15:47 ` Marco Wahl
  2018-10-10 20:05   ` Marcin Borkowski
  2018-10-08 15:58 ` Eric S Fraga
  1 sibling, 1 reply; 5+ messages in thread
From: Marco Wahl @ 2018-10-08 15:47 UTC (permalink / raw)
  To: emacs-orgmode

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
    

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: What is the difference between `org-narrow-to-subtree' and `org-narrow-to-element'?
  2018-10-08 15:26 What is the difference between `org-narrow-to-subtree' and `org-narrow-to-element'? Marcin Borkowski
  2018-10-08 15:47 ` Marco Wahl
@ 2018-10-08 15:58 ` Eric S Fraga
  2018-10-10 20:04   ` Marcin Borkowski
  1 sibling, 1 reply; 5+ messages in thread
From: Eric S Fraga @ 2018-10-08 15:58 UTC (permalink / raw)
  To: Marcin Borkowski; +Cc: Org-Mode mailing list

On Monday,  8 Oct 2018 at 17:26, Marcin Borkowski wrote:
> Hi all,
>
> I found these two commands.  They seem to do the same thing.  What is
> the difference?

These will only do the same thing if your element (where point is) happens to be the sub-tree and nothing else.  Try it within a list element in a sub-tree and you should notice a difference in behaviour.

--

Eric S Fraga via Emacs 27.0.50, Org release_9.1.13-894-gf79545

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: What is the difference between `org-narrow-to-subtree' and `org-narrow-to-element'?
  2018-10-08 15:58 ` Eric S Fraga
@ 2018-10-10 20:04   ` Marcin Borkowski
  0 siblings, 0 replies; 5+ messages in thread
From: Marcin Borkowski @ 2018-10-10 20:04 UTC (permalink / raw)
  To: Eric S Fraga; +Cc: Org-Mode mailing list


On 2018-10-08, at 17:58, Eric S Fraga <esflists@gmail.com> wrote:

> On Monday,  8 Oct 2018 at 17:26, Marcin Borkowski wrote:
>> Hi all,
>>
>> I found these two commands.  They seem to do the same thing.  What is
>> the difference?
>
> These will only do the same thing if your element (where point is) happens to be the sub-tree and nothing else.  Try it within a list element in a sub-tree and you should notice a difference in behaviour.

Thanks, I didn't think about this!

-- 
Marcin Borkowski
http://mbork.pl

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: What is the difference between `org-narrow-to-subtree' and `org-narrow-to-element'?
  2018-10-08 15:47 ` Marco Wahl
@ 2018-10-10 20:05   ` Marcin Borkowski
  0 siblings, 0 replies; 5+ messages in thread
From: Marcin Borkowski @ 2018-10-10 20:05 UTC (permalink / raw)
  To: Marco Wahl; +Cc: emacs-orgmode


On 2018-10-08, at 17:47, Marco Wahl <marcowahlsoft@gmail.com> 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

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2018-10-10 20:06 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-10-08 15:26 What is the difference between `org-narrow-to-subtree' and `org-narrow-to-element'? Marcin Borkowski
2018-10-08 15:47 ` Marco Wahl
2018-10-10 20:05   ` Marcin Borkowski
2018-10-08 15:58 ` Eric S Fraga
2018-10-10 20:04   ` Marcin Borkowski

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).