36Chapter2 • Working With Editors
The entire program can be folded and unfolded at once, or individual sections of the file
may be unfolded. Several sections from different parts of the program may be unfolded at once.
Jed treats each folded section as a subroutine and it can be edited as such. By moving the
pointer to a folded section and pressing
^C>
only that section of the program is displayed for
editing.
In order to use the folding mode, it must be activated from within Jed. In order to do this,
type
M-X folding-mode
. This will turn the folding mode on and immediately
fold up the current buffer.
See Table 2-12 for a list of the available commands in this mode.
Table2-12 Folding Mode Commands
ActionCommand
^C^WFold current buffer
^C^OUnfold current buffer
^C^XFold current marked section
^C^SUnfold current marked section
^C^FFold highlighted section
^C>Edit folded section
^C
Figure2-10 The same file folded.