initCommon(); $template->displayHeader(); ?>

4.5. Examples

The table or reference card of Emacs and PSGML commands can be confusing for beginners. This section provides some examples of how to use them.

4.5.1. Tag Completion

[Note] Note

This section assumes that you have already parsed the DTD file.

To avoid having to type a tag repeatedly, use the key combination Ctrl-c, followed by <. At the bottom of the Emacs window, the following prompt appears:

Tag: <

To view a list of available tags, use either the Tab or ?. If you know the first few letters of a tag, enter them, followed by Tab. If the letters uniquely identify a tag, that tag appears. If more than one completion exists, a complete list of possible tags appears.

If you hit Ctrl+c, <, k, a prompt appears similar to the example below:

Click mouse-2 on a completion to select it.
In this buffer, type RET to select the completion near point.

Possible completions are:
<keycap>                 <keycode>
<keycombo>               <keysym>

4.5.2. Tag Closure

After you open a tag, you must close it. The easiest way to close an open tag is to use the key sequence Ctrl+c, /. This sequence closes the most recently opened tag.

4.5.3. Other Emacs Tasks

4.5.3.1. Working with One Window

Sometimes in Emacs, the window becomes split, with tags completions or other text in an alternate window. To return to a single window, use the key sequence Ctrl+x, 1.

4.5.3.2. Saving Work

To save your work, use the key sequence Ctrl+x, Ctrl+s.

4.5.3.3. The "Clear/Quit" Command

If the tag completion process becomes unwieldy or confusing, use the keysequence Ctrl+g to exit back to the text. Emacs clears any prompts and returns to the buffer text.

4.5.3.4. Opening a new file

To open a new file, use the key sequence Ctrl+x, Ctrl+f. A prompt appears at the bottom of the Emacs window. Enter the file name, using Tab completion if desired, of the file you wish to open.

4.5.3.5. Closing Emacs

To close Emacs use the key sequence Ctrl+x, Ctrl+c. If you have not saved your work, Emacs prompts you to save any changed files.

displayFooter('$Date: 2008/04/10 02:37:06 $'); ?>