.PP
The pop-up edit window has available a number of editing commands.
These commands allow you to move around and edit the text.  If an
illegal operation is attempted, the terminal bell will be rung.
The editor commands are patterned after those in the EMACS text editor:
.sp
.RS
.IP "Ctrl-a" 22
Beginning Of Line	
.IP "Ctrl-b"
Backward Character	
.IP "Ctrl-d"
Delete Next Character	
.IP "Ctrl-e"
End Of Line	
.IP "Ctrl-f"
Forward Character	
.IP "Ctrl-h"
Delete Previous Character	
.IP "Ctrl-j"
Newline And Indent	
.IP "Ctrl-k"
Kill To End Of Line	
.IP "Ctrl-l"
Redraw Display	
.IP "Ctrl-m"
Newline	
.IP "Ctrl-n"
Next Line	
.IP "Ctrl-o"
Newline And Backup	
.IP "Ctrl-p"
Previous Line	
.IP "Ctrl-r"
Search/Replace Backward	
.IP "Ctrl-s"
Search/Replace Forward	
.IP "Ctrl-t"
Transpose Characters
.IP "Ctrl-v"
Next Page	
.IP "Ctrl-w"
Kill Selection	
.IP "Ctrl-y"
Unkill	
.IP "Ctrl-z"
Scroll One Line Up
.IP "Meta-b"
Backward Word
.IP "Meta-f"
Forward Word
.IP "Meta-i"
Insert File
.IP "Meta-k"
Kill To End Of Paragraph
.IP "Meta-q"
Form Paragraph
.IP "Meta-v"
Previous Page
.IP "Meta-y"
Insert Current Selection
.IP "Meta-z"
Scroll One Line Down
.IP "Meta-d"
Delete Next Word
.IP "Meta-D"
Kill Word
.IP "Meta-h"
Delete Previous Word
.IP "Meta-H"
Backward Kill Word
.IP "Meta-<"
Beginning Of File
.IP "Meta->"
End Of File
.IP "Meta-Shift Delete"
Kill Previous Word
.IP "Meta-Delete"
Delete Previous Word
.IP "Meta-]"
Forward Paragraph
.IP "Meta-["
Backward Paragraph
.IP "Meta-Backspace"
Delete Previous Word
.IP "Meta-Shift Backspace"
Kill Previous Word
.RE
.sp
.LP
Search and Replace
.PP
The editor provides a search popup that can be used to search for a
string within the current Text widget.  The popup can be activated by
typing either \fIControl-r\fP or \fIControl-s\fP.  If \fIControl-s\fP is
used the search will be forward in the file from the current insert point
location; if \fIControl-r\fP is used the search will be backward.  The
activated popup is placed under the pointer.  It has a number of buttons
that allow both text searches and text replacements to be performed.
.PP
At the top of the search popup are two toggle buttons labeled
\fIbackward\fP and \fIforward\fP.  One of these buttons will always be
highlighted; this is the direction in which the search will be
performed.  The user can change the direction at any time by clicking on
the appropriate button.
.sp
.LP
File Insertion
.PP
To insert a file into the text, type the key sequence \fIMeta-i\fP,
which will activate the file insert popup.  This popup will appear under
the pointer, and any text typed while the focus is in this popup will be
redirected to the text field used for the filename.  When the desired
filename has been entered, click on \fIInsert File\fP, or type
\fICarriage Return\fP.  The named file will then be inserted in the text
widget beginning at the insert point position.  If an error occurs when
opening the file, an error message will be printed, prompting the user
to enter the filename again.  The file insert may be aborted by clicking
on \fICancel\fP.  
.sp
.LP
Cut and Paste with Mouse
.PP
The editor has a very powerful text selection mechanism that allows
the user to copy pieces of the text into the \fBPRIMARY\fP selection,
and paste the text into another area.
.PP
The simplest method of selecting text is to press pointer Button 1
on the beginning of the text to be selected, drag the pointer until all
of the desired text is highlighted, and then release the button to
activate the selection.  The text may now be pasted into any other
area.
.PP
To modify a currently active selection, click pointer Button 3 near
either the end or the beginning of the selection that you want to
adjust.  This end of the selection may be moved while holding down pointer
button 3.  When the proper area has been highlighted release the pointer
button to activate the selection.
.LP
The following table gives the mouse actions to cut and paste.
.sp
.RS
.IP "Button 1 Down" 18
Start Selection
.IP "Button 1 Motion"
Adjust Selection
.IP "Button 1 Up"
End Selection (cut)
.sp
.IP "Button 2 Down"
Insert Current Selection (paste)
.sp
.IP "Button 3 Down"
Extend Current Selection
.IP "Button 3 Motion"
Adjust Selection
.IP "Button 3 Up"
End Selection (cut)
.RE
.sp
.LP
Rapidly clicking pointer button 1 the following number of times will adjust
the selection as described.
.IP \fBTwo\fP 10
Select the word under the pointer.  A word boundary is defined by the
Text widget to be a Space, Tab, or Carriage Return.
.IP \fBThree\fP
Select the line under the pointer.
.IP \fBFour\fP
Select the paragraph under the pointer.  A paragraph boundary is
defined by the text widget as two Carriage Returns in a row with only
Spaces or Tabs between them. 
.IP \fBFive\fP
Select the entire text buffer.
.LP
To unset the text selection just click and release pointer button 1
without moving it.
.sp
.LP
This documentation was taken from the X Windows Manual, Athena Widget Set -
C Language Interface, Chapter 5.  Copyright MIT and DEC.
