"Welcome to the second part of the screencast for outline-mode."n
"Now I'll show you how to navigate the trees."
"Let's use the same text and mode as before." n
(progn (insert screencast-outline-mode-example-text)
"You can move to the next and previous heading - simply up and down in the document."n
"Let's go three headings forward."
"And one back."
"Notice that the cursor now is \"deep\" down in a subtree."n
"We can go directly to the parent heading of that subtree. Skipping any headings on the same or lower levels."
"The last thing we can do is navigate between headings on the same level."
"All of these commands use the numeric prefix argument, so if you want to move a long distance, consider using it."
"This is the screencast for the outline-mode."n
"outline-mode is a mode for viewing only selected parts of a buffer at a time."n
"To use the mode type some text:"
(progn (goto-char (point-min)))
"And now activate the mode, for some colors (requires font-lock-mode)"
"The *'s marks headings of different levels, and thus forms a tree structure." n
"Each heading can have leaf content of text."
"We can hide these trees, and their content" n
"Let's hide the content of the first heading:"
"We can also unhide it:"
"For a quick overview, we can hide everything"
"Now we'll use the tree structure and hide the subtree of the first heading."
"Notice how the other heading at the same level are untouched."
"We'd like to get an overview of the content of the tree, and we make the next level of headings visible."
"This is not enough, and we decide to display all headings in the current tree - but we still don't show the content of the headings!"
"This could also have been achieved in another way. Let's go back to when the whole subtree was visible."
" Ok." p " Let's do it the other way:"
"This displays all headings, but still no content."
"Finally, we'd like to show just this subtree, and nothing else."
"Let's hide everything again."
" Ok." p
"This concludes the first part of the screencast. The next part will show how to navigate around the trees efficiently."
"* Food\nThis is the body,\nwhich says something about the topic of food.
** Delicious Food\nThis is the body of the second-level header.
** Distasteful Food\nThis could have\na body too, with\nseveral lines.
*** Dormitory Food
None at the moment
Another first-level topic with its header line.
(defun screencast-outline-mode-hiding (&optional arg)
(apply (if arg
(defun screencast-outline-mode-navigation (&optional arg)
(apply (if arg