Google
 

Trailing-Edge - PDP-10 Archives - 6.1_emacs_manuals_1er - emacs/teach-emacs.exe
There is 1 other file named teach-emacs.exe in the archive. Click here to see a list.
?p 
'?h	<?x-

'				H \	>T:@r}@2~@W x?X-L#X
@XJdx9RHZ-f8MwA@$GiZt4<eeeeeeeeeeeeeeeeeee2Kb,0a's+-LY!!L!M,29xTEx 
UMV**U.UEx 
EMACSEMACSNTEACHEXEGEMEMACS-SOURCESTEACH-EMACSTXTGEMEMACS-SOURCESNTEACHEXE@z@~rAR,>,>,>+ ^ >*>\"	Ee " Z &J+ !>*><+ \
ejm,>@
c^Peeeell++.n P
P0

0$0 d
`<(m,00u00ux@#G59gQjo,VG :^^WYO@!>Cp(W8^L8$,0w:a6c:a4/+$P3J(-d$#yy+$c+@7
-d,+$`+@3J(+$P9-@
e^T@){{{{{$-ia7I@%B@sPWp(Wlwjw	RSSR@CtR@
c	@!$R@!$R1elR@AR@BRR@!$R	@!tRSSde@
c	S@"Rrgr9 @H7Hr6e~"7u@CS_r!hY
L@r!{N}~rtr",pr"28!-8!-h!-h!-h!-(!-(!-(!-8p222-zs-r2<2",d2"2U'x5x= !)' &"")), &) &)'$''&$'")
d@%p@eW@%!@;@%#S@%6@!k@%J@%^@
h@
!@%6@P@r@
c@@@
c:U
U
	0X Y.
#:`cy@`@% 
 !!"\$	G-G	J 	J@O@u 2 Ra+
Internal error at 6$EMACS:TECPUR.EXE.1120@0zz lee@
c@	@%O@#z99999999@$@9@$@C99@#}9999999999999@$]999999999999999999999999999999999999999999999999999999999999999999999[[[[[[[[[[[[[[[[[[[[[[[[[[9999TT@#YYTTTTT[[[TT[TTTTTTTTTTTTTPTTTT@#zWTTTT@$ATTTTTTT4TT6666666666T@$.@$@#w'@$T@#zW,@":T^-N
[
[
[@#4@$
hB@#zs:@#{O@$	M@%-K@9b@$I@$x@$
F@#}n@Wm@#|@$1T@$]@$@@$ TT[[[[[[[[[[[[[[[[[[[[[[[[[[TTTT TTTTTTTTT9@$@rTT@#|yTTTTTTTTTTTTT@$U/TTTTTTT@$)@$I@$gT@$H@$!=@$!qTTT4@$w@#Bc6666666666T@$.@$Q@$n@$p@#Bc@$"@@$$`@$"0@$#@$"J@$$@$"@$E=@$(I@$?@$@r@$&;@$#@#|y@$1DT@$2>@$Dx@$3@$Cf@$q@$"s@$
5@#~@%R]@$FT@$'[[[[[[[[[[[[[[[[[[[[[[[[[[TTT@$k@$"^TTTTTTTT@$@$2O[TT@#|yTTTTTTTTTTTTT9TTTTTTTTTTTT@$9@$*TTT4TT6666666666T@$B8TTT@#G@$o@$	@$9@$@$H@$|@$I@$@$2O
[@$x9@#|y@$^@$1@$m@$8@$=T@$@$9@%;@#~^@%TaTP@$	@$=o@$H@$C9T[[[[[[[[[[[[[[[[[[[[[[[[[[TTTT@$ mmpp^0]^^
@"X@r@"XqHa^@$E=q^^@$E=q^^@"X@sG@"Xq8`^@"X@sz@"Xpx\^@#g"pXZ^"@!>Cp(W^&P####cc@!>Cp(W^)Z@@eeee;P6666==Z22PZrrrr		Zmm@@779<r{@XoxT^P^Z^WJeeeell@




ber teach-emacs.init@ym(hfx*)-..E	Bad value in q-reg ..E (output radix)32<1	The second argument)was less than the firstAFN	AmbiguousAFS flag nameAOR	ArgumentAout of rangeARG	Bad argument)AVN	AmbiguousAvariableAor macro name.?BD"	BadAconditionAafterA" --Ashould beAG,L,N,E,B,C,D,A orAUABEL	A built-in ^R command called from macroAsignaledAan error5CMD	A char that isn't aATECOAcommand was executed9CNM	Caller wasn'tAa macro (it wasATECOAinternalAcode)'DCD	A disabled command~wasexecutedDSI	DamnedEscrewEinfinitely3ERP	Attempted>:<E....^\Ewithnoclosing > firstESR	Empty sort recordICB	Illegal ^] commandIEC	Illegal "E" commandIFC	Illegal "F" commandIFN	Illegal FS flag nameIQN	Invalid q-register name'ILN	Invalid local q-register number'ISK	Invalid sort key - "^P" command&KCB	Kill currently selected buffer/M^R	Attempted to macro a meaningless number,NDO	No device open for output - try "EW"$NFC	No free channels to pop into/NFI	No file open for input - try doing "ER"'NHP	Nonexistent horizontal position8NIB	You have addressed a character not in the bufferNIM	Not inside a macro7NOP	Specified type of IO channel hasn't been pushedNRA	File not random access5N^R	Not in ^R - command meaningful only inside ^RPDL	Pushdown stack full$PUR	Attempted write in pure page,RDO	Attempt to modify a read-only buffer3QIT	^G typed on TTY and FS NOQUIT$ was negativeDQNB	Q-register not buffer - attempt to select a string or numberQNN	Q-register not numeric'QNS	Q-register not string or buffer(QRF	Q-regs failed, probably TECO bug,QRP	Q-register PDL overflow or underflowSFL	Search failed"SNI	Semicolon not in iteration1SNR	There is no valid search string to repeat STL	String argument too long!STS	Dispatch string too short<TMN	Too many macro, ^]q-register, ^]^X, or ^]^Y nestings<UBP	Unbalanced parentheses found with an FL-type commandUCT	Unseen catch tag2UEB	FL-type command encountered end of buffer.!UEC	Unexpected end of commandUGT	Unseen go-tag)UJC	Undefined journal file characters)UMC	Unmatched ")" or ">" as a command/URK	Buffer space or library space exhausted UTC	Unterminated conditional7UTI	Unterminated iteration or errset (missing ">"?)(UVN	Undefined variable or macro name?WLO	FS OFACCP$ when old access pointer wasn't multiple of 5!WNA	Wrong number of arguments                                                                  
=~=~~<~w<NoMM & Yes or NopaceMM Make SpacevalG!* number of characters between auto-saves!
fs^rmdlywfs^rmcntrginB!* Don't let cursor be in this percent of screen!
FS%BOTTOM/!* 1 => Searches ignore case!
FSBOTHCASEintB!* Center cursor this percentage down the screen!
FS%CENTERrse;!* 1 => Display mode line in standout mode!
FSINVMODgO!* 1 => Try real overprinting on the screen!
F"'NFS^HPRINW"'NFS^MPRIN5!* Number of lines in echo area!
FFSECHOLINES ;!* Leave this percent of screen blank at EOB!
FS%END=!* 1 => display error messages in echo area!
FSECHOERRn7!* Page width for filling and grinding!
FSADLINEModeP!* Overwrite Mode status (see M-X Overwrite Mode)!
1FSMODECHWFS^RREPLACEde<!* 1 => Display chars 0-37 as SAIL graphics!
FFSSAILSystem Output Holding7!* 1 => let system handle C-S and C-Q!
FSTTYPAGErgin?!* Don't let cursor be in this percent of screen!
FS%TOPodeJ!* 1 => word commands deal with LISP atoms!
:I.W"n:I.W@'1FSMODECHodeu!* nonzero => Auto Fill (break long lines at margin)!
1FSMODECH
32FS^RINITU "E'
M.M^R Auto-Fill SpaceU int ^@+* 1 => auto save under visited filenameMode'!* 1 => digits and Minus before control chars set arg!
0FS^RINIT[2
"NM.M^R AutoargU2'
Q2-Q0"E'Q2U-
Q2U0Q2U1Q2U2Q2U3Q2U4
Q2U5Q2U6Q2U7Q2U8Q2U9ntts
/8+1*8Fundamental^!* Controls action of ) in showing the matching (!
"NM.M& Matching Paren'"#0'FS^RPAREN.?!ceseb!* -1 => Use tabs for indentation.  0 => only spaces.!
"EM.M& Indent without TabsUMM & Indent
M.M& Xindent without TabsUMM & Xindent'
M.M& Indent with TabsUMM & Indent
M.M& Xindent with TabsUMM & XindentSP
es.	 ' bigg,* Nonzero => Auto Fill indents new linese        :       :       :       :       :       :       :       :       :       :       :       :top2MEMOXGPPRESS@XGPUNFASLOUTPUTOLREC FN2sVisit File Save OldB* -1 => visiting new file saves old, 0 => don't, 1 => ask userpQ..H"EMDirectory Lister'ist~p<ngALUELisp MULTIPLE-VALUE IndentntLISP]*'3F[DFILE
FSOSTECO"E
ETFOO EVARS
FSXUNAMEFSDFN1'
"#ETEMACS.VARS'
FSHSNAMEFSDSNAM
F[BBIND[1[3[4
128*5,32:i*[2
*5:f2 /
"*5:f2 |!'!
1:<ER@Y>"L'
<.-Z;
@:F"EL!<!>'
1AF 	:"L@L!<!>'
.,(CS:.-2,.+1F=::"EC'
).-1X3
.u1@f	 l
1a-34"eq2[..d
.+1,(@fll).-1x4
]..d
@:i4"4"!''!'
"#.(:\u4)-."eq1-1j'
@f 	l
:@f"n
q1j:X4''
FQ3-2:G3F:"'L+(
0:G3-:"'E)"L
M4U3@L!<!>'
F=3*"EM4'
"#Q4M.V3'
@L>
:@i*|[1fsqpptr[2
:g(m.aAUX& Process Init Vars)u2
q2fsqpunwin
:m(q1(]1))
|m.vMM & Process Init Vars
MM & Process Init VarsInhibit Writeber~i<MainFundamentale;!* non-0 => do auto saves!
"'NM(M.MAuto Save Mode)5!* non-0 => by default use auto save!
1FSMODECHEMACS Library FilenameEMACS VersionTWENEX Library Filename	S Given an object, returns its full name.
The object should be given as a prefix arg, and
the name is returned as a string pointer.meMM ~DOC~ & Macro Name![2[3[4
fp-101"e
q:..q(0)u2
:fo..qMM u3
:fo..qMM!u4
<q3,f..qu3
q3:;q3-q4;
q3/3*3+2-q3"e-69u40;'
%3>
q4+69"n0'
3,10000:g:..q(q3-1)'
fp+4"e
0,m(m.m& Get Library Pointer)BAREu2
q2"n,q2m(q2m.m~Invert~)u2'
q2'
fp-100"n@feQNSfserr'
fs:ejpage*5120+400000000000.u2
400.*5120+400000000000.u4
<q2-q4;q2-;
q2+fq2+4-;
q2+fq2+4u2>
q4-q2"e0'
:i4~INVERT~q4,q2m(Q2+4)u4
,q2m4NameMM & Macro Name
8S After a ) has been inserted, shows the matching (.arenMM ~DOC~ & Matching Paren!HFSRGETTY"E0'Q..F"E0'
0:"N0'
QDisplay Matching Paren[1
Q1"E0'
.[0FNQ0J
R
<B-.;0A*5+1:G..D-/:@;R>
Q0-1-.&1"N0'
Q0J
0F[%TOP
0,0A*5+2:G..D[3
QPermit Unmatched Paren[2
F[VB
Q2"NQ1"LFSWINDOW+BFSVB''
1:<-FLL>"LQ2"EFG'0'
F]VB
Q1"LFSWINDOW+B-."G0''
Q3-32"N1A-Q3"NFG''
0@V
Q1*30:
q0J0@V
0,C Store buffer in specified file.
This file becomes the one being visited.
Specify filename as string argument.
Precomma arguments have hairy meanings; see the code.leMM ~DOC~ Write File:!QBuffer Index[2
0F[VBW0F[VZW
:F"LQ.F-Q..F"E
Q:.B(Q2+2)F"NFSDFILE'''
5,1FWrite FileT1
F[DFILEET[TECO] OUTPUT0FSDVERSWEIF]DFILE
FSOFCDATE[3
HPEF
0FSMODIF
0FSXMODIF
+1"EFSRGETTY"EONoPrint''
FSOFILESRGETTY"E:FT'
:I*CFSECHODIS
@FTWritten: 1FSECHOLINES-1"N@FT
'
0FSECHOACT
!NoPrint!
Q..F-Q.F"NQ3'
FSZU:.B(Q2+11)
FS^RMDLYFS^RMCNT
:"L
Q3U:.B(Q2+8)
FSOFVERSF"L
FSOFILEF[DFILEFSDFN2:F6(
F]DFILE)'U:.B(Q2+9)
1FSMODECH'
"N0'
FSDFILEU1
M(M.MSet Visited Filename)1
0leMM Write FileTS Standard M.I: prepares for an FI,
by prompting and/or finishing redisplay.
A post-comma argument is used for prompting instead
of the most recent character typed in.
The pre-comma argument is bit-decoded;
   1 => Check for metizer characters.  Echo meta bits.
   2 => Don't prompt or echo.
   4 => Echo meta bits on non-digits. MM ~DOC~ & Prepare for Inputt:!	[0[1
FSHELPMAC-(M.M^R Documentation)"E
M.M& Read Line HelpF[HELPMAC'
0[D
FSOLDFLUS"EFSTYPEOU"L0@V''
&2"NOMETIZE'
FSECHOACTIVE"E
20:"E
FSTYICOUNT-(FSTYIBEG)U0
Q0<FS.TYIBACK>
@FT 
Q0<FS.TYINXTU1
Q0-1U0"NQ0@;'
5,Q1M(M.M& Charprint)
@FT >
FF&1"NU1@FT1'''
FSECHOACTIVE"N
FSRGETTY"N@FT '
&5"N@':FIU1
&4"N:FIF 0123456789"G:FIU1''
5,Q1M(M.M& Charprint)
@FT '
!METIZE!
:FIW
&1"E'
@:FIFS^RINDIRECTU0
FQ0"G
F~0!BIT-PREFIX-12"E
FIWQ0,M0FSREREAD''
utMM & Prepare for Input
,& Internal hook to help Lisp indentationHook-MM ~DOC~ & Standard Lisp Indentation Hookk:!K[1[2[3
2fo..QL Special Indent Offsetu1
.u2
+1j
1a*5+1:g..D-A"nq2j0'
@flx4
@fll
-3fo..QL 4 Indentu3
fq3:"lq2j:fm3'
q3:"loSpec'
q3+1"eoDef'
q3+2"eq2j0'
qL Indent DEFanything"n
f~4DEF -4"eoDef''
q2j0
!Spec!
.(+q1jfsshposu4)j
:<:@fll1a-;:@;l>
fsshpos-q4:"gq2j0'
q3:<<:@fll1a-;:@;l>@fll>"n
q2j,0'
.-"gq2j,0'
1:<<:@fll1a-;:@;l>@fll>"n
+q1j0'
.-"g+q1j0'
q2j0
!Def!
l.-q..2"g
+q1j,0'
"#q2j'
0$ook'MM & Standard Lisp Indentation Hook
2& Hook indents PROGS with tags right justified&MM ~DOC~ & Standard Lisp PROG Hook *[0[1.[2
+1j
1:<<:@fll1a-;:@;l>
0,1a*5+1:g..d-("n@fll!<!@>'
@fll>"nq2j,0'
.-"gq2j,0'
2u0
Z-qZj0l@f 	l
 ,1a*5+1:g..D-A"e
+q0-1j'
"#+q0j'
,0Hook MM & Standard Lisp PROG Hook
~?S Auto save all buffers.
We don't need to select a buffer unless we save it.
Argument is nonzero if have already auto-saved anything.
Nonzero precomma arg means ignore selected buffer.s$MM ~DOC~ & Auto Save All Buffers:!$Q..F-Q.F"N0'
FQ.B/5[00[1[..O
QBuffer Name[2
[3
0[4
[5
FNQ4"NQ2M(M.MSelect Buffer)'
<Q1-Q0;
Q:.B(Q1+10)"N
"'EF"EWF~:.B(Q1+1)2'"N
Q:.B(Q1+4)[..O
FSZ*(FSXMODIF)(]..O)"N
Q:.B(Q1+1)M(M.MSelect Buffer)
1U4
Q3"E
FSRGETTY"N@FT (Auto Save)'
"#@FT''
1U3
F[DFILE
1:<2,1M(M.M^R Save File)>"L
QBuffer FilenamesU5
FG@FT (Auto Save error for 5!)600FSECHOACT'
'''
Q:.B(Q1)+Q1U1>
fersMM & Auto Save All BuffersP^R Save visited file on disk if modified.
An argument means do an auto-save type save.
"1," as argument indicates that this call was not explicitly
requested, and the user should be asked to confirm if
the file has become a lot smaller.  "2," means an Auto Save,
which should abort rather than query if anything might be wrong.leMM ~DOC~ ^R Save File!
Q..F-Q.F"N0'
QBuffer Index[5
FF&1"EFSMODIF"N1FSXMODIF''
Q:.B(Q5+10)[1
QBuffer Filenames[0
1[2
FQ1"GFF&1"N
Q1U0-1U2''
Q0"NQ0'F[DFILE
Q2"G
Q:.B(Q5+12)"N
"N0'
@FTFile is read only.  Save anyway
1M(M.M& Yes or No)"E0''
Q0"N
FSDDFAST"L
1:<ERFSIFCDATEC
Q:.B(Q5+8)[3
Q4"NQ3"NQ4-Q3"N
:I*AFSECHODIS
@FTThe file now on disk is not what you last visited or saved!

FQ1"L0UAuto Save Count'
-2"E@FTNot auto saving 0.
600FSECHOACT'
FSXMODIF"N@FTShould I write the file anyway
1M(M.M& Yes or No)"E0''
"#@FTLuckily you have not edited the buffer since then.
Use Revert File to read the version off disk.
0FSECHOACT'
'''>'''
FSXMODIFIED"E
@FT
(No changes need to be written)
FQ1"LFF&1"E
0UAuto Save Count''
0FSECHOACT'
Q2"G
Q0"E"N'
@M(M.MWrite File)'
FSOSTECO"N
fsxjname
f~jSNDMSG*(f~jHERMES)"n
0FSDVERS"N
FSDFILEU0
Q0U:.B(Q5+2)
1FSMODECH
Q0UBuffer Filenames''''
"N3*FSZ-(2*Q:.B(Q5+11))"L
-2"E@FT
(File has shrunk -- not auto-saving 0)600FSECHOACT'
0F[TYISOURCE
@FT
File has shrunk a lot.  Save anyway
@FG1M(M.M& Yes or No)"E0FSERR'''
Q1"NFQ1"L
QAuto Save Max-1"E
QAuto Save Count"G
Q:.B(Q5+9)FSDVERS
1,M(M.MWrite File)
FF&1"E
0UAuto Save Count'
0''''
Q2,M(M.MWrite File)
Q1"E0'
%Auto Save Count
FQ1"G
FF&1"N
1FSMODIF
ODelAutoSave''
"#QAuto Save Count-QAuto Save Max"G
!DelAutoSave!
1:<0FSDVERSWER>"E
FSIFVERS(EC)-QAuto Save MaxF"GFSDVERS
1:<@ED>''''
FF&1"E0UAuto Save Count'
0leMM ^R Save File~oS Set the ..J Mode to display options.
When setting the major mode, call this with a nonzero argument
and the major mode name as a string argument.  It will change the mode
and run the <modename> Mode Hook variable, if there is one.ineMM ~DOC~ & Set Mode Linee:!-(FSQPPTR*2)FSMODECH
FSVZ+B[4
QEditor Name[0
QMode[1
QBuffer Index[3
"N:I1Q1UMode
0FO..Q1 Mode Hook[2
Q2"NM2''
0[.1q..J[.2
<fq.2@;0:g.2-[:@;%.1
1,fq.2:g.2u.2>
F~.20-1-FQ0"N0'
F[BBindG0I 
0FO..QEditor Type[2
Q2"NG2I '
I(G1
QSubmodeU2FQ2"G
I[2]'
QAuto Fill Mode"N
I Fill'
FSJRNOUT"N
I Jrn'
Q:.B(Q3+10)"N
I Save'
"#QAuto Save Default"N
I Save(off)''
FS^RREPLACE"NI Ovwrt'
FSTYISINK"NI Def'
Q4"NI Narrow'
MSet Mode Line Hook+0U2
FQ2"GG2'
I)  
QBuffer NameU2
QBuffer FilenamesU1
Q1"NQ1F[DFILE
F~(FSDFN1:F6)2"E0U2''
Q2"NI2:  '
FQ1"GG1
FSOSTECO"N
FQ1RFSHSNAME:F6U2
FSOSTECO-1"E
FQ2F~2"EFQ2D''
"#4F~DSK:"E4D
FQ2+2F~<2>"EFQ2+2D'''
ZJFSDVERS"E-2D''
FSDVERS"'E+(FSDVERS+2"'E)"L
Q:.B(Q3+9)U1
I (G1I)'
Q:.B(Q3+12)"GI (R-O)'
Q:.B(Q3+12)"LI (Buf R-O)'
I '
ZJQ.1<I] >JQ.1,[I
hf=..j"nhx..j'
0~^R Search for character string as you type it.
C-Q quotes special characters.  Rubout cancels last character.
C-S repeats the search, forward, and C-R repeats it backward.
C-R or C-S with search string empty changes the direction of search
or brings back search string from previous search.
Altmode exits the search; with search string empty
it switches to non-incremental ^R String Search.
Other Control and Meta chars exit the search and then are executed.
If not all the input string can be found, the rest is not discarded.
You can rub it out, discard it all with C-G, exit,
or use C-R or C-S to search the other way.
Quitting a successful search aborts the search and moves point back;
quitting a failing search just discards whatever input wasn't found.h"MM ~DOC~ ^R Incremental Searchh:!\23.fo..qSearch Command[.7
21.fo..qSearch Quote[.8
[D
0[L
10.[R
[Q@:iQ`
q4+1*5-fq3"e
q3[..ozj
200,0i]..o'
.u:3(%4)
qLu:3(%4)
q2u:3(%4)
q0u:3(%4)
qDu:3(%4)
`
[T
fstyisourc"e
@:iT`
Q9-Q.9"N2[R'Q9U.9
fsrgetty"n2&qR"n
qcfsechodis
@ft9: q2u8''
@ft8:i8
`'
"#:iT'
[C:ICTL
[0
[2:i2
[8:i8
[9
0[.9
1fo..qSearch Exit Option
200fsqvector[3
-1[4
[5
.[P
[S:ISM.M& Isearch RuboutUS:MS
:I*M(M.M& Isearch Help)F[HelpMac
1f[noquit
[6[7
qD"g:i6I-Search:i7Failing I-Search'
qD"l:i6Reverse I-Search:i7Failing Reverse I-Search'
q6u9
0[I
fsrgetty"e
fstyisourc"e@ft S: '
1fstypeo''
!Restart!
1:<1uI-2f[noquit
<qL"eq6'"#q7'u9q9-q.9"nmt'
0@V1uI:fiu00uI@fiu5
q5-"efq2:@;!<!0;>0fsnoquitwqD:m(m.m^R String Search)'
q5-8"eoFunny'
q5-176."goFunny'
q5-
FSREREAD'
!Normal!
4uR
mQ
:i220
fstyisource"e
fq8"nmt'
@ft0
"#
!Try!
mt
''
qL"n!<!>'
.u5
40.&qR"e
qD"gfq2-1r'
"#fsz-qPf[vz
fq2-1"gfq2:c"ezj''
f]vz''
qD:s2"l!<!>'
q5j1uLfg!<!>
!Funny!
q5-177."eoRubout'
q5&537.-(q.7+100.)"eoForward'
q5&537.-R"eoBackward'
q5&537.-(q.8+100.)"eoQuote'
qE"eonormal'
oControl
!Quote!
1f[noquit
fsosteco"n-1f[helpch'
fiu0
fsosteco"nf]helpch'
0fsquitwf]noquit
onormal
!Forward!
qD"l:i6I-Search:i7Failing I-Search'
q4"LqD"goDefault'
"#1uD!<!>''
mQ
qD"L0uL'
1uD
40.uR
otry
!Backward!
qD"g:i6Reverse I-Search:i7Failing Reverse I-Search'
q4"LqD"loDefault'
"#-1uD!<!>''
mQ
qD"g0uL'
-1uD
40.uR
otry
!Default!
mQ
qSearch Default Ring[..o
.fswordu2]..o
fq2"l:i2'
q2u8
40.uR
otry
!Rubout!
q4"lfg!<!>'
ms
qL"eq6'"#q7'u9
mt!<!>
!Control!
q5fsreread
0;
>
f]noquit
>u0@feqit-q0"e@fg
qL"'gqI"N:i*:'"#:i* 'fsjrnwr
QL"g<ms-ql;>mt
oRestart'
qI"emsmtoRestart'
QPJ0fsnoquit
-1fsquit'
q0f"nfserr'
fq2"g
qSearch Default Ring[..o
fq(.fsword)-1"G5c.-z"ej''
q2,.fsword
]..o'
fstyisource"e@ft'
qPmMM & Maybe Push Point
0MM ^R Incremental Search
#^R Search for a character string.
Reads string in echo area.  Special characters:
   ^B	Start search from beginning of buffer.
   ^D	Yank in a default off of search default ring,
	popping it.  Flushes any previous type-in.
   ^E   Start from end of buffer.
   ^F	Position window so search object is near top
   ^L	Redisplay.
   ^Q	Quote next character.
   ^R	Reverse direction.
   ^S	Search then return to read in loop.
   ^T	Yank in the Teco default.
   ^U	Flush string so far.
   ^V   Find string only if surrounded by delimiters.
   ^W	Word search (ignore any white space between words)
   ^Y	^D with no pop and no flush.
   	Search then exit to ^R mode, whether succeed or fail
 Rubout	Delete last character of search string.

If you search for the null string, the default is used.
Otherwise, the new string becomes the default and the old
default is saved on a ring, unless it is only one character.archMM ~DOC~ ^R String Search!$
23.fo..qSearch Command[.7
21.fo..qSearch Quote[.8
[0[8[90[3
[1
0[5.[6
0[.30[.40[.5
Q..O[4
fsBCons[2@fn/Q2fsBKill/[..O
0[7
F<!EXIT!
F<!SEARCH!
Q7"Gfsrgetty"E0u7''
Q7"EfsEchoDis
CfsEchoDis
Q5"L@ftBJ 'Q5"G@ftZJ '
Q.3"N@ftTop Line '
Q1"L@ftReverse '
q.5"N@ftDelimited '"#
q.4"N@ftWord ''
@ftSearch: 
Q2U..OH@t-1U..0'
"#Q7<fsEchoDis
XfsEchoDis>0U7'
<Q4U..OfsListen"E0@v'q2U..O
@:fi:fcu0fiu9
q0-33."Eq9fsEchoOut
q3"nf;EXIT'
f;SEARCH'
q0-177."Lq9iq9fsEchoOut
0u3q0-
i'!<!>'
q0-302."E-1u50u31u10;'
q0-304."EHK0U3
QSearch Default Ring[..O
.FSWORDu0."EZJ'5R
]..Og00;'
q0-305."E1u50u3-1u10;'
q0-306."E1-q.3u.30;'
q0-314.@;
q0-(Q.8+300.)"E@ftFIU9'
q0-322."E-q1u10u30;'
q0-(Q.7+300.)"E@ft1u32u7
f;SEARCH'
q0-324."EHK0U3
g(fsSString)0;'
q0-325."EHK0;'
q0-326."E1-q.5u.50;'
q0-327."E1-q.4u.40;'
q0-331."E0u3
QSearch Default Ring[..O
.FSWORDu0]..Og00;'
q0-177."E0u3
Z"Nfsrgetty"E0afsEchoOutw-D!<!>'
0A-37."G0a-177"N1U7''
-D'0;'
0u3q9iq9fsEchoOut'
>>
Z"N0S..O'
Z(QSearch Default Ringu..O
)"N
FQ(.FSWORD)-1"G5C.-Z"EJ''
FSSSTRING,.FSWORD'
"#.FSWORDFSSSTRING'
Q4U..O.U8FNQ8J
Q5"LBJ'Q5"GZJ'
q.5"nq1"l-q1<-:s2"eoSFL'0a(fk-1c)"c@'>fk-1r'
"#q1<:s2"eoSFL'fk+1c-1a"c@'>fk+2r''
"#Q.4"NQ1,Q2M(M.M& Word Search)'"#Q1:S'"E
!SFL!-1FSQPUNFG
q3"N@ft FAIL 0fsechoactive'
1'']..N
q.3"N:f
2fo..QNext Screen Context Lines:@f'
Q5"N0u50u7'
-q3;Q1"L-'1u1>
Q4U..O
Q6M(M.M& Maybe Push Point)
q.3"N:f
2fo..QNext Screen Context Lines:@f'
0fsEchoActivew1rchMM ^R String Search
~i^R Search for a single character.
Special Characters:
   ^A	Call ^R String Search; use M-X Describe to see what that does.
   ^F	Position window so search object is near top
   ^Q	Quote following character
   ^R	Reverse search direction and read another char
   ^S	Search for default
        Also done if character the macro was called by is typed again,
	overides any other function of that character shown here.
   ^T	Search for Teco default
If ^S is not used, the character typed becomes the default
for future searches.  The previous default is saved on a "ring",
unless it was only one character.arch MM ~DOC~ ^R Character Search:!!23.fo..qSearch Command[.7
21.fo..qSearch Quote[.8
[0[1[20[3[9
!RDCH!M.I@:FIU0
FIU9
Q0-(FS^RLAST)"EQ.7U0'
Q0:FCU0
Q0-301."E
Q1:M(M.M^R String Search)'
Q0-306."E1u3oRDCH'
Q0-(q.8+300.)"EM.IFIU9'
Q0-322."E-Q1U1ORDCH'
Q0-(Q.7+300.)"EF[SSTRING
QSearch Default Ring[..O
.FSWORDFSSSTRING]..O
OSEARCH'
Q0-324."N
F[SSTRING0S9'
QSearch Default Ring[..O
FQ(.FSWORD)-1"G5C.-Z"EJ''
FSSSTRING,.FSWORD]..O
!SEARCH!
.U0Q1:S"EFG1'
Q0M(M.M& Maybe Push Point)
q3"N:f
2fo..QNext Screen Context Lines:@f'
1MM ^R Character Search
~QC Read mail using your favorite mail-reader.
Passes a string argument to the mail-reader.
If the variable Mail Reader Library exists,
it is the name of the mail-reader library.
Otherwise, on Twenex, if Mail Reader Program exists,
run that program in a subfork; and an argument means
kill the subfork.  The default is RMAIL on ITS, MM on Twenex.

A precomma arg of 1 means just mail one message.
A precomma arg of 2 tells RMAIL to exit to DDT when done.ilMM ~DOC~ Mail-[2-1"n:i2<entry>'
"#:i2& Mail Message'
:f"l:i*'"#:i*'[1
0fo..qMail Reader Library[0
q0"efsosteco"e:i0RMAIL''
fq0:"lfm(m.a02)1'
0FO..qMail Reader Programu0
q0"e:i0MM'
0fo..qMail Fork[2
"eff&1"n"nq2"n-q2fz
0uMail Fork'0'''
"nf=0MM"e:i1SEND''
"nf=0MS"e:i1SEND''
0fo..qFork Call Hook[3
fq3"gm3'
:fr
:i*Zfsechodis
0fsechochar
q2"nfq1"g0,q2fz0 1
'
"#q2fz'oDone'
fsOSTeco-1"e
fzSYS:0.EXE 1
[1'
"#fz<SUBSYS>0.SAV 1[1'
q1m.vMail Fork
!Done!
0fo..qFork Return Hook[3
fq3"gm3'
0MM Mail
~YC Mail a message, using your favorite mail-reading program.
If you abort the message, you can resume by giving this
command a nonzero argument.
TheamailreaderOusedeby defaultisRMAILMonlITS,dandLMMronyTwenex.il Reader Library'w
1,(F):m(m.mMail)ailMM Send MailC Read new messages, using your favorite mail-reading program.
TheamailreaderOusedeby defaultisRMAILoonqITS, anddMM onbTwenex.
(F)m(m.mMail)'
(F)m(m.mMail)READ	FS:EJPAG-256"E'
QEcho Area HeightFSECHOLINES
0F[VARMAC
FSSAILUSAIL Character Mode
FS^MPRINTUDisplay Overprinting


:,.FX~[<!PREFIX!F@:M(Q.XM.P)Control-X  Q.X
CS 	EMACS *Initialization*~:  |!* -*-TECO-*- *!

!* This is the EMACS init for TEACH-EMACS.
   It visits the teaching file and dumps out the
   runnable EMACS tutorial program.!

!* Create startup macro to be run when we're 'd.!
 @:i*| :i..9 f[bbind
       fs rgetty"e
!"! ftUnfortunately, the EMACS tutorial cannot be used on a printing
terminal.  Your terminal is a printing terminal, or at least that
is what the system believes.  If you have access to a CRT terminal,
try this program again from there.  If your terminal really is a CRT
but the system doesn't know it,
         fs osteco"n !"! ft
you should use the EXEC command Terminal Type to tell it, and try again.
If the system doesn't know about your type of terminal but EMACS does,
you should use the EXEC commands Terminal Length and Terminal Width to
tell the system the size of your screen, try again, and when the tutorial
gets to this point that time, type the EMACS codename for the terminal.

	   < 1:< @m(m.mSet Terminal Type) >;
	     !"! ft
Sorry, that isn't a known terminal type.  Here are the known types:

	     m(m.mList Library)TRMTYP
	     !"! ft
 ft
You don't type the "# TRMTYP ".  For example, if you are on a
Datamedia Elite 2500, type "DM2500".
 ft
Try again now.
 ft
 !''''!
	     >
	   fs rgetty"e !"! ft
It looks like your terminal really can't do the job.  Sorry.
	     fsexit'
	   f+'
         fs osteco"e ft
you should try telling the system, and try again.
For information on display terminals supported by ITS, do :TCTYP ?<cr>,
or look in INFO;CRTSTY > for info on indirectly supported terminals.
           140000.FS EXIT''
       fs rgetty-7"E FT
VT05 TERMINALS ARE NOT VERY GOOD FOR THIS TUTORIAL, EVEN THOUGH
YOU CAN USE EMACS ON THEM - TRY A VT52 OR A VT100.
 140000.FS EXIT'
       fs rgetty-22."e m(m.mload library)VT100
                       m(m.mVT100 Page Mode)'
       fs osteco"n er <emacs>emacs.init @y'
       "# er emacs;* emacs @y'
       m(hfx*(i )) f]bbind
       fsosteco"e etdsk:teach text'
       "# etdsk:teach-emacs.tutorial'
       fshsnamefsdsnamew fsdfileu0	    !* Compute desired visited file!
       q0uBuffer Filenames	    !* Put that name in right places.!
       q0u:.b(qBuffer Index+2)
       m(m.m & Set Mode Line)
       jsblank lines inserted here !* grow text to fit screen size.!
       0l:k fsheight-24< i
> j
       !* On non-meta keyboards, allow Alt 1 2 to mean an arg of 12.!
       FS %TOFCI"E
         M.M ^R Autoarg[0 460.-1[1
	 10< %1W Q0U1>  Q0U..-
	 ]1 ]0'
       0fsmodif
       0u..h :m..l
       F+
      | m.vMM & Startup EMACS

 m(m.mLoad Lib)Docond
 0fsmodified
 0u*Initialization*   !* Make this work if run in a just-built EMACS.!

 fsosteco"e
   -1,m(m.m Visit File)EMACS;TEACH >
   m(m.m Fundamental Mode)
   m(m.mDocond Set Flag)+ITS'
 "#
   -1,m(m.m Visit File)<EMACS>TEACH-EMACS.TXT
   m(m.m Fundamental Mode)
   m(m.mDocond Set Flag)+Twenex'

!* Do the DOCONDing, inside an ^R in case we aren't already in one.!
 70[Fill Column
 @:i*| m(m.mDocond) fs^r exit|f[^r enter
 
 -2fs qp unwind

 fsosteco"e
   m(m.aPURIFYDump Environment)EMACS;TSTCH >'
 "#
   fs osteco-1"e
     m(m.aPURIFYDump Environment)<EMACS>NTEACH.EXE'
   "#  m(m.aPURIFYDump Environment)<EMACS>TEACH-EMACS.SAV''

 FTEMACS tutorial dumped.

 160000. fs exit

 :i..9 f[bbind
       fs rgetty"e
!"! ftUnfortunately, the EMACS tutorial cannot be used on a printing
terminal.  Your terminal is a printing terminal, or at least that
is what the system believes.  If you have access to a CRT terminal,
try this program again from there.  If your terminal really is a CRT
but the system doesn't know it,
         fs osteco"n !"! ft
you should use the EXEC command Terminal Type to tell it, and try again.
If the system doesn't know about your type of terminal but EMACS does,
you should use the EXEC commands Terminal Length and Terminal Width to
tell the system the size of your screen, try again, and when the tutorial
gets to this point that time, type the EMACS codename for the terminal.

	   < 1:< @m(m.mSet Terminal Type) >;
	     !"! ft
Sorry, that isn't a known terminal type.  Here are the known types:

	     m(m.mList Library)TRMTYP
	     !"! ft
 ft
You don't type the "# TRMTYP ".  For example, if you are on a
Datamedia Elite 2500, type "DM2500".
 ft
Try again now.
 ft
 !''''!
	     >
	   fs rgetty"e !"! ft
It looks like your terminal really can't do the job.  Sorry.
	     fsexit'
	   f+'
         fs osteco"e ft
you should try telling the system, and try again.
For information on display terminals supported by ITS, do :TCTYP ?<cr>,
or look in INFO;CRTSTY > for info on indirectly supported terminals.
           140000.FS EXIT''
       fs rgetty-7"E FT
VT05 TERMINALS ARE NOT VERY GOOD FOR THIS TUTORIAL, EVEN THOUGH
YOU CAN USE EMACS ON THEM - TRY A VT52 OR A VT100.
 140000.FS EXIT'
       fs rgetty-22."e m(m.mload library)VT100
                       m(m.mVT100 Page Mode)'
       fs osteco"n er <emacs>emacs.init @y'
       "# er emacs;* emacs @y'
       m(hfx*(i )) f]bbind
       fsosteco"e etdsk:teach text'
       "# etdsk:teach-emacs.tutorial'
       fshsnamefsdsnamew fsdfileu0	    !* Compute desired visited file!
       q0uBuffer Filenames	    !* Put that name in right places.!
       q0u:.b(qBuffer Index+2)
       m(m.m & Set Mode Line)
       jsblank lines inserted here !* grow text to fit screen size.!
       0l:k fsheight-24< i
> j
       !* On non-meta keyboards, allow Alt 1 2 to mean an arg of 12.!
       FS %TOFCI"E
         M.M ^R Autoarg[0 460.-1[1
	 10< %1W Q0U>  Q0U..-
	 ]1 ]0'
       0fsmodif
       0u..h :m..l
       F+
      ileReadnameCompiler Filename             A                        AA   A    A'   A   AA   AA    A   AA    ()   )(   A    A         A         A   AA   AA   AA   AA   AA   AA   AA   AA   AA   AA    A    ;    A>   A    A<   A    A   AA   AA   AA   AA   AA   AA   AA   AA   AA   AA   AA   AA   AA   AA   AA   AA   AA   AA   AA   AA   AA   AA   AA   AA   AA   AA    (]   A    )[   A   AA    A'  AA   AA   AA   AA   AA   AA   AA   AA   AA   AA   AA   AA   AA   AA   AA   AA   AA   AA   AA   AA   AA   AA   AA   AA   AA   AA    (}   A    ){   A        
Texte..DFundamental!EMACSil(Fundamental)  Main:  ill
To use the HELP features, type the <HELP> character, and then a
character saying what kind of help you want.  If you are REALLY lost,
type <HELP> ? and EMACS will tell you what kinds of help it can give.
If you have typed the <HELP> character and decide you don't want any
help, just type C-G to abort.e~~filename~4OPN0104  PS:<HESS>PURIFY.:EJ.0   File not foundJ.0]*-(fs:ejpage)"n]*'Kill VariableMACSg:ejEMACS:<EMACS>EMACS.:EJ.160w:ejEMACS:<EMACS>TWENEX.:EJ.99wq.1u..l0u.1q.2u..p0u.2:m(q.3(0u.3))Y
L@Y
L@Y
L@Y
L@Y
L@Y
L@Y
L@Y
L@Y
L@Y
L@Y
L@Y
L@Y
L@Y
L@Y
L@Y
L@Y
L@Y
L@Y
L@Y
L@Y
L@Y
L@Y
L@Y
L@Y
L@Y
L@Y
L@Y
L@Y
L@Y
L@Y
L@Y
L@Y
L@Y
L@Y
L@Y
L@Y
L@Y
L@Y
L@Y
L@Y
L@Y
L@Y
L@Y
L@Y
L@Y
L@Y
L@Y
L@Y
L@Y
L@Y
L@Y
L@Y
L@Y
L@Y
L@Y
L@Y
L@Y
L@Y
L@Y
L@Y
L@Y
L@Y
L@Y
L@Y
L@Y
L@Y
L@Y
L@Y
L@Y
L@Y
L@Y
L@Y
L@Y
L@Y
L@Y
L@Y
L@Y
L@Y
L@Y
L@Y
L@Y
L@Y
L@Y
L@Y
L@Y
L@Y
L@Y
L@Y
L@Y
L@Y
L@Y
L@Y
L@Y
L@Y
L@Y
L@Y
L@Y
L@Y
L@Y
L@Y
L@Y
L@Y
L@Y
L@Y
L@Y
L@Y
L@Y
L@Y
L@Y
L@Y
L@Y
L@Y
L@Y
L@Y
L@Y
L@Y
L@Y
L@Y
L@Y
L@Y
L@Y
L@Y
L@Y
L@Y
L@Y
L@Y
L@Y
L@Y
L@Y
L@Y
L@Y
L@Y
L@Y
L@Y
L@Y
L@Y
L@Y
L@Y
L@Y
L@Y
L@Y
L@Y
L@Y
L@Y
L@Y
L@Y
L@Y
L@Y
L@Y
L@Y
L@Y
L@Y
L@Y
L@Y
L@Y
L@Y
L@Y
L@Y
L@Y
L@Y
L@Y
L@Y
L@Y
L@Y
L@Y
L@Y
L@Y
L@Y
L@Y
L@Y
L@Y
L@Y
L@Y
L@Y
L@Y
L@Y
L@Y
L@Y
L@Y
L@Y
L@Y
L@Y
L@Y
L@Y
L@Y
L@Y
L@Y
L@Y
L@Y
L@Y
L@Y
L@Y
L@Y
L@Y
L@Y
L@Y
L@Y
L@Y
L@Y
L@Y
L@Y
L@Y
L@Y
L@Y
L@Y
L@Y
L@Y
L@Y
L@Y
L@Y
L@Y
L@Y
L@Y
L@Y
L@Y
L@Y
L@Y
L@Y
L@Y
L@Y
L@Y
L@Y
L@Y
L@Y
L@Y
L@Y
L@Y
L@Y
L@Y
L@Y
L@Y
L@Y
L@Y
L@Y
L@Y
L@Y
L@Y
L@Y
L@Y
L@Y
L@Y
L@Y
L@Y
L@Y
L@Y
L@Y
L@Y
L@Y
L@Y
L@Y
L@Y
L@Y
L@Y
L@Y
L@Y
L@Y
L@Y
L@Y
L@Y
L@Y
L@Y
L@Y
L@Y
L@Y
L@Y
L@Y
L@Y
L@Y
L@Y
L@Y
L@Y
L@Y
L@Y
L@Y
L@Y
L@Y
L@Y
L@Y
L@Y
L@Y
L@Y
L@Y
L@Y
L@Y
L@Y
L@Y
L@Y
L@Y
L@Y
L@Y
L@Y
L@Y
L@Y
L@Y
L@Y
L@Y
L@Y
L@Y
L@Y
L@Y
L@Y
L@Y
L@Y
L@Y
L@Y
L@Y
L@Y
L@Y
L@Y
L@Y
L@Y
L@Y
L@Y
L@Y
L@Y
L@Y
L@Y
L@Y
L@Y
L@Y
L@Y
L@Y
L@Y
L@Y
L@Y
L@Y
L@Y
L@Y
L@Y
L@Y
L@Y
L@Y
L@Y
L@Y
L@Y
L@Y
L@Y
L@Y
L@Y
L@Y
L@Y
L@Y
L@Y
L@Y
L@Y
L@Y
L@Y
L@Y
L@Y
L@Y
L@Y
L@Y
L@Y
L@Y
L@Y
L@Y
L@Y
L@Y
L@Y
L@Y
L@Y
L@Y
L@Y
L@Y
L@Y
L@Y
L@Y
L@Y
L@Y
L@Y
L@Y
L@Y
L@Y
L@Y
L@Y
L@Y
L@Y
L@Y
L@Y
L@Y
L@Y
L@Y
L@Y
L@Y
L@Y
L@Y
L@Y
L@Y
L@Y
L@Y
L@Y
L@Y
L@Y
L@Y
L@Y
L@Y
L@Y
L@Y
L@Y
L@Y
L@Y
L@Y
L@Y
L@Y
L@Y
L@Y
L@Y
L@Y
L@Y
L@Y
L@Y
L@Y
L@Y
L@Y
L@Y
L@Y
L@Y
L@Y
L@Y
L@Y
L@Y
L@Y
L@Y
L@Y
L@Y
L@Y
L@Y
L@Y
L@Y
L@Y
L@Y
L@Y
L@Y
L@Y
L@Y
L@Y
L@Y
L@Y
L@Y
L@Y
L@Y
L@Y
L@Y
L@Y
L@Y
L@Y
L@Y
L@Y
L@Y
L@Y
L@Y
L@Y
L@Y
L@Y
L@Y
L@Y
L@Y
L@Y
L@Y
L@Y
L@Y
L@Y
L@Y
L@Y
L@Y
L@Y
L@Y
L@Y
L@Y
L@Y
L@Y
L@Y
L@Y
L@Y
L@Y
L@Y
L@Y
L@Y
L@Y
L@Y
L@Y
L@Y
L@Y
L@Y
L@Y
L@Y
L@Y
L@Y
L@Y
L@Y
L@Y
L@Y
L@Y
L@Y
L@Y
L@Y
L@Y
L@Y
L@Y
L@Y
L@Y
L@Y
L@Y
L@Y
L@Y
L@Y
L@Y
L@@A1B=1B"1B'1B"1B>+$u@)1B*1B+1B"1B'1B"1B,1B>+$u@)@)You are looking at the EMACS tutorial.  Comments on this document
should be sent to your local EMACS supporter.

EMACS commands generally involve the CONTROL key (sometimes labelled
CTRL or CTL) or the META key (sometimes labelled EDIT).  Rather than
write out META or CONTROL each time we want you to prefix a character,
we'll use the following abbreviations:

 C-<chr>  means hold the CONTROL key while typing the character <chr>
	  Thus, C-F would be: hold the CONTROL key and type F.
 M-<chr>  means hold the META or EDIT key down while typing <chr>.
	  If there is no META or EDIT key, type <ALT>, release it,
	  then type the character <chr>.  "<ALT>" stands for the
	  key labelled "ALT" or "ESC".

Important note: if you must exit at some point, type C-X C-Z.
The characters ">>" at the left margin indicate directions for you to
try using a command.  For instance:
<<Blank lines inserted here by startup of TEACH-EMACS>>
>>  Now type C-V (View next screen) to move to the next screen.
	(go ahead, do it by depressing the control key and V together).
	From now on, you'll be expected to do this whenever you finish
	reading the screen.

Note that there is an overlap when going from screen to screen; this
provides some continuity when moving through the file.

The first thing that you need to know is how to move around from
place to place in the file.  You already know how to move forward a
screen, with C-V.  To move backwards a screen, type M-V (depress the
META key and type V, or type <ALT>V if you don't have a META or EDIT
key).

>>  Try typing M-V and then C-V to move back and forth a few times.


SUMMARY
-------

The following commands are useful for viewing screenfuls:

	C-V	Move forward one screenful
	M-V	Move backward one screenful
	C-L	Clear screen and redisplay everything
		 putting the text near the cursor at the center.

>> Find the cursor and remember what text is near it.
   Then type a C-L.
   Find the cursor again and see what text is near it now.


BASIC CURSOR CONTROL
--------------------

Getting from screenful to screenful is useful, but how do you
reposition yourself within a given screen to a specific place?
There are several ways you can do this.  One way (not the best, but
the most basic) is to use the commands previous, backward, forward
and next.  As you can imagine these commands (which are given to
EMACS as C-P, C-B, C-F, and C-N  respectively) move the cursor from
where it currently is to a new place in the given direction.  Here,
in a more graphical form are the commands:
 
			  Previous line, C-P
				  :
				  :
   Backward, C-B .... Current cursor position .... Forward, C-F
				  :
				  :
			  Next line, C-N

You'll probably find it easy to think of these by letter.  P for
previous, N for next, B for backward and F for forward.  These are
the basic cursor positioning commands and you'll be using them ALL
the time so it would be of great benefit if you learn them now.

>> Do a few C-N's to bring the cursor down to this line.

>> Move into the line with C-F's and then up with C-P's.
   See what C-P does when the cursor is in the middle of the line.

Lines are separated by a pair of characters, a Return and a Linefeed,
but EMACS almost always makes them look like one character.  You
can think of it as a Newline.

>> Try to C-B at the beginning of a line.  Do a few more C-B's.
   Then do C-F's back to the end of the line and beyond.

When you go off the top or bottom of the screen, the text beyond
the edge is shifted onto the screen so that your instructions can
be carried out while keeping the cursor on the screen.

>> Try to move the cursor off the bottom of the screen with C-N and
   see what happens.

If moving by characters is too slow, you can move by words.  M-F
(Meta-F) moves forward a word and M-B moves back a word.

>> Type a few M-F's and M-B's.  Intersperse them with C-F's and C-B's.

Notice the parallel between C-F and C-B on the one hand, and M-F and
M-B on the other hand.  Very often Meta characters are used for
operations related to English text whereas Control characters operate
on the basic textual units that are independent of what you are
editing (characters, lines, etc).  There is a similar parallel between
lines and sentences: C-A and C-E move to the beginning or end of a
line, and M-A and M-E move to the beginning or end of a sentence.

>> Try a couple of C-A's, and then a couple of C-E's.
   Try a couple of M-A's, and then a couple of M-E's.

See how repeated C-A's do nothing, but repeated M-A's
keep moving farther.  Do you think that this is right?

Two other simple cursor motion commands are M-< (Meta Less-than),
which moves to the beginning of the file, and M-> (Meta Greater-than),
which moves to the end of the file.  You probably don't need to try
them, since finding this spot again will be boring.  If you need the
shift key to type a "<", then you must also use the shift key to type
M-<.  Otherwise, you would be typing M-, .

The location of the cursor in the text is also called "point".  To
paraphrase, the cursor shows on the screen where point is located in
the text.

Here is a summary of simple moving operations including
the word and sentence moving commands:

	C-F	Move forward a character
	C-B	Move backward a character

	M-F	Move forward a word
	M-B	Move backward a word

	C-N	Move to next line
	C-P	Move to previous line

	C-A	Move to beginning of line
	C-E	Move to end of line

	M-A	Move back to beginning of sentence
	M-E	Move forward to end of sentence

	M-<	Go to beginning of file
	M->	Go to end of file

>> Try all of these commands now a few times for practice.
   Since the last two will take you away from this screen,
   you can come back here with M-V's and C-V's.  These are
   the most often used commands.

Like all other commands in EMACS, these commands can be given
arguments which cause them to be executed repeatedly.  The way you
give a command a repeat count is by typing C-U and then the digits
before you type the command.  If you have a META or EDIT key, you can
omit the C-U if you hold down the META or EDIT key while you type the
digits.  This is easier, but we recommend the C-U method because it
works on any terminal.

For instance, C-U 8 C-F moves forward eight characters.
	
>> Try giving a suitable argument to C-N or C-P to come as close
   as you can to this line in one jump.

The only apparent exception to this is the screen moving commands,
C-V and M-V.  When given an argument, they scroll the screen up or
down by that many lines, rather than screenfuls.  This proves to be
much more useful.

>> Try typing C-U 8 C-V now.

Did it scroll the screen up by 8 lines?  If you would like to
scroll it down you can give an argument to M-V.


WHEN EMACS IS HUNG
-----------------

If EMACS gets into an infinite (or simply very long) computation which
you don't want to finish, you can stop it safely by typing C-G.
You can also use C-G to discard a numeric argument or the beginning of
a command that you don't want to finish.

>> Type C-U 100 to make a numeric arg of 100, then type C-G.
   Now type C-F.  How many characters does it move?
   If you have typed an <ALT> by mistake, you can get rid of it
   with a C-G.

If you type <ALT> <ALT>, you get into something known as a
"minibuffer".  That is an advanced feature of EMACS.  We mention it
now only to say that you can get out of it with one or two C-G's if
you get into it by accident.


INSERTING AND DELETING
----------------------

If you want to type text, just do it.  Characters which you can see,
such as A, 7, *, etc. are taken by EMACS as text and inserted
immediately.  Type <Return> (the carriage-return key) to insert a line
separator.

You can delete the last character you typed by typing <Rubout>.
<Rubout> is a key on the keyboard, which may be labelle "Delete"
instead of "Rubout" on some terminals.  More generally, <Rubout>
deletes the character immediately before the current cursor position.

>> Do this now, type a few characters and then delete them
   by typing <Rubout> a few times.  Don't worry about this file
   being changed; you won't affect the master tutorial.  This is just
   a copy of it.

>> Now start typing text until you reach the right margin, and keep
   typing.  When a line of text gets too big for one line on the
   screen, the line of text is "continued" onto a second screen line.
   The exclamation mark at the right margin indicates a line which has
   been continued.
>> Use <Rubout>s to delete the text until the line fits on one screen
   line again.  The continuation line goes away.

>> Move the cursor to the beginning of a line and type <Rubout>.  This
   deletes the line separator before the line and merges the line onto
   the previous line.  The resulting line may be too long to fit, in
   which case it has a continuation line.
>> Type <Return> to insert the separator again.

Remember that most EMACS commands can be given a repeat count;  Note
that this includes characters which insert themselves.

>>  Try that now -- type C-U 8 * and see what happens.

You've now learned the most basic way of typing something in
EMACS and correcting errors.  You can delete by words or lines
as well.  Here is a summary of the delete operations:

	<Rubout>     delete the character just before the cursor
	C-D   	     delete the next character after the cursor

	M-<Rubout>   kill the word immediately before the cursor
	M-D	     kill the next word after the cursor

	C-K	     kill from the cursor position to end of line
	M-K	     kill to the end of the current sentence

Notice that <Rubout> and C-D vs M-<Rubout> and M-D extend the parallel
started by C-F and M-F (well, <Rubout> isn't really a control
character, but let's not worry about that).  C-K and M-K are like C-E
and M-E, sort of, in that lines are opposite sentences.

Now suppose you kill something, and then you decide that you want to
get it back?  Well, whenever you kill something bigger than a
character, EMACS saves it for you.  To yank it back, use C-Y.  Note
that you don't have to be in the same place to do C-Y; This is a good
way to move text around.  Also note that the difference between
"Killing" and "Deleting" something is that "Killed" things can be
yanked back, and "Deleted" things cannot.  Generally, the commands
that can destroy a lot of text save it, while the ones that attack
only one character, or nothing but blank lines and spaces, do not
save.

For instance, type C-N a couple times to postion the cursor
at some line on this screen.

>> Do this now, move the cursor and kill that line with C-K.

Note that a single C-K kills the contents of the line, and a second
C-K kills the line itself, and make all the other lines move up.  If
you give C-K a repeat count, it kills that many lines AND their
contents.

The text that has just disappeared is saved so that you can
retrieve it.  To retrieve the last killed text and put it where
the cursor currently is, type C-Y.

>> Try it; type C-Y to yank the text back.

Think of C-Y as if you were yanking something back that someone
took away from you.  Notice that if you do several C-K's in a row
the text that is killed is all saved together so that one C-Y will
yank all of the lines.

>> Do this now, type C-K several times.

Now to retrieve that killed text:

>> Type C-Y.  Then move the cursor down a few lines and type C-Y
   again.  You now see how to copy some text.

What do you do if you have some text you want to yank back, and then
you kill something else?  C-Y would yank the more recent kill.  But
the previous text is not lost.  You can get back to it using the M-Y
command.  After you have done C-Y to get the most recent kill, typing
M-Y replaces that yanked text with the previous kill.  Typing M-Y
again and again brings in earlier and earlier kills.  When you
have reached the text you are looking for, you can just go away and
leave it there.  If you M-Y enough times, you come back to the
starting point (the most recent kill).

>> Kill a line, move around, kill another line.
   Then do C-Y to get back the second killed line.
   Then do M-Y and it will be replaced by the first killed line.
   Do more M-Y's and see what you get.  Keep doing them until
   the second kill line comes back, and then a few more.
   If you like, you can try giving M-Y positive and negative
   arguments.


FILES
-----

In order to make the text you edit permanent, you must put it in a
file.  Otherwise, it will go away when your invocation of EMACS goes
away.  You put your editing in a file by "visiting" the file.  What
visiting means is that you see the contents of the file in your EMACS;
and, loosely speaking, what you are editing is the file itself.
However, the changes still don't become permanent until you "save" the
file.  This is so you can have control to avoid leaving a half-changed
file around when you don't want to.  Even then, EMACS really makes a
new version of the file and doesn't change the old version at all (so
that you can verify or throw away your changes later if you like).

If you look near the botton of the screen you will see a line that
starts with "EMACS (Fundamental) Main:" and continues with the
filename DSK:<your directory>TEACH-EMACS.TUTORIAL.  This is the name
of your own temporary copy of the text of the EMACS tutorial; the file
you are now visiting.  Whatever file you visit, that file's name will
appear in that precise spot.


The commands for visiting and saving files are unlike the other
commands you have learned in that they consist of two characters.
They both start with the character Control-X.  There is a whole series
of commands that start with Control-X; many of them have to do with
files, buffers, and related things, and all of them consist of
Control-X followed by some other character.

Another thing about the command for visiting a file is that you have
to say what file name you want.  We say the command "reads an argument
from the terminal" (in this case, the argument is the name of the
file).  After you type the command

	C-X C-V   Visit a file

EMACS will ask you for the file name.  You should end the name with
the Return key.  After this command, you will see the contents of the
file in your EMACS.  You can edit the contents.  When you wish to make
the changes permanent, issue the command

	C-X C-S   Save the file

A new version of the file will be created.  When the operation is
finished, EMACS prints the name and version saved.  You should save
fairly often, so that you will not lose very much work if the system
should crash.

If you forget to save and visit a different file, EMACS will remind
you that you made changes and ask you whether to save them.  (If you
don't save them, they will be thrown away.  That might be what you
want!)  You should answer with a "Y" to save them or a "N" to throw
the changes away.

To make a new file, just visit it "as if" it already existed.  Then
start typing in the text.  When you ask to "save" the file, EMACS
will really create the file with the text that you have inserted.
From then on, you can consider yourself to be editing an already
existing file.

It is not easy for you to try out visiting a file and continue with
the tutorial.  But you can always come back into the tutorial by
starting it over and skipping forward.  So, when you feel ready, you
should try visiting a file named "FOO", putting some text in it, and
saving it; then exit from EMACS and look at the file to be sure that
it worked.


EXTENDING THE COMMAND SET
-------------------------

There are many, many more EMACS commands than could possibly be put
on all the control and meta characters.  EMACS gets around this with
the X (eXtend) command.  This comes in two flavors:

	C-X	Character eXtend.  Followed by one character.
	M-X	Named command eXtend.  Followed by a long name.

These are commands that are generally useful but used less than the
commands you have already learned about.  You have already seen two
of them: the file commands C-X C-V to Visit and C-X C-S to Save.
Another example is the command to tell EMACS that you'd
like to stop editing.  The command to do this is C-X C-Z.  Think of
it as Z for zapping yourself.

There are many C-X commands.  The ones you need immediately are:

	C-X C-V		Visit file.
	C-X C-S		Save file.
	C-X C-Z		Quit EMACS.  This does NOT save your file.  The
			standard way to save and exit is C-X C-S C-X C-Z.

Named eXtend commands are commands which are used even less
frequently, or commands which are used only in certain modes.  These
commands are usually called "functions".  An example the function
Replace String which globally replaces one string with another.  When
you type M-X, EMACS prompts you at the bottom of the screen with
M-X and you should type the name of the function you wish to call; in
this case, "Replace String".  Just type "REP<Alt>" and EMACS will
complete the name.  Then you type the string that you want to replace,
an <Alt>, the string you want to replace it with, and a return.
When the <Alt> is echoed, it looks like this: 

>> Move the cursor to the blank line two lines below this one.
   Then type M-X rep<Alt>changed<Alt>altered<Return>.

   Notice how this line has changed: you've replaced
   the word c-h-a-n-g-e-d with "altered" wherever it occurs
   after the cursor.


MODE LINE
---------

If EMACS sees that you are typing commands slowly it shows them to you
at the bottom of the screen in an area called the echo area.  The echo
area contains the bottom three lines of the screen.  The line
immediately above them is called the MODE LINE.  The mode line says
something like

   EMACS (Fundamental) Main: filename --nn%-- *

This is a very useful "information" line.

You already know what the filename means -- it is the file you have
visited.  What the --nn%-- means is that nn percent of the file is
above the top of the screen.  If the top of the file is on the screen,
it will say --TOP-- instead of --00%--.  If the bottom of the file is
on the screen, it will say --BOT--.  If you are looking at a file so
small it all fits on the screen, the --nn%-- will simply not be there.

The star means that you have made changes to the text.  Right after
you visit or save a file, there is no star.

The part of the mode line inside the parentheses is to tell you what
modes you are in.  The default mode is Fundamental which is what you
are in now.  It is an example of a "major mode".  There are several
major modes in EMACS for editing different languages and text, such as
LISP mode, Text mode, etc.  At any time one and only one major mode is
active, and its name can always be found in the mode line just where
"Fundamental" is now.  Each major mode makes a few commands behave
differently.  For example, there are commands for creating comments in
a program, and since each programming language has a different idea of
what a comment should look like, each major mode has to insert
comments differently.  Each major mode is the name of an extended
command, which is how you get into the mode.  For example,
M-X Fundamental Mode is how to get into Fundamental mode.

If you are going to be editing English text, such as this file, you
should probably use Text Mode.
>> Type M-X Text Mode<Return>.

Don't worry, none of the commands you have learned changes in any
great way.  But you can now observe that periods are no longer part of
words when you do M-F or M-B!  Major modes are usually like that:
commands don't change into completely unrelated things, but they work
a little bit differently.

Major modes are called major because there are also minor modes.
They are called minor because they aren't alternatives to the major
modes, just minor modifications of them.  Each minor mode can be
turned on or off by itself, regardless of what major mode you are in,
and regardless of the other minor modes.  So you can use no minor
modes, or one minor mode, or any combination of several minor modes.

One minor mode which is very useful, especially for editing English
text, is Auto Fill mode.  When this mode is on, EMACS breaks the line
in between words automatically whenever the line gets too long.  You
can turn this mode on by doing M-X Auto Fill Mode<Return>.  When the
mode is on, you can turn it off by doing M-X Auto Fill Mode<Return>.
If the mode is off, this function turns it on, and if the mode is on,
this function turns it off.  This is called "toggling".

>> Type M-X Auto Fill Mode<Return> now.  Then insert a line of "asdf "
   over again until you see it divide into two lines.  You must put in
   spaces between them because Auto Fill breaks lines only at spaces.
   Notice that "Fill" appears in the mode line in addition to the name
   of the major mode, not instead of it.

The margin is usually set at 70 characters, but you can change it
with the C-X F command.  You should give the margin setting you want
as a numeric argument.

>> Type C-X F with an argument of 20.  (C-U 2 0 C-X F).
   Then type in some text and see
   EMACS fill lines of 20 characters with it.  Then set the margin
   back to 70 using C-X F again.


RECURSIVE EDITING LEVELS
------------------------

Sometimes you will get into what is called a "recursive editing
level".  This is a command which, as part of its job, wants you to
edit some text.  A good example is M-X Edit Options<Return>, which
shows you a list of many variables called options, and their values.
You can edit this list to change the values and thus turn the optional
features they control on or off.  When you are done, you can say "ok"
with the command C-M-Z.  If you do not have a META or EDIT key on your
terminal, type C-Z C-Z or <Alt>C-Z.  This is called "exiting" the
recursive editing level.  The text (the list of options) will
disappear and the changes you have made will be digested.

>> Type M-X Edit Options<Return> and see the list of options.
   Find the option "Auto Fill Mode" and edit the value to be 1.
   Now exit with C-Z C-Z and see that "Fill" is now present in the
   mode line, and auto-filling is in effect.
   Do M-X Edit Options<Return> again and set the value of the
   option to 0, and exit.  "Fill" will disappear from the mode line
   and auto-filling will no longer be in effect.

If you change your mind about the changes you have made inside the
recursive editing level, you can "abort" instead of "exit" by typing
the C-] command.  When you abort, the changes you have made will NOT
take effect.

>> Type M-X Edit Options<Return>.  Set the value of Auto Fill Mode to
   1 again, but instead of exiting, abort with C-].
   Say "Y" when it asks you whether you mean it.  You will see that
   "Fill" is not there in the mode line, because by aborting you said
   that your change to the value of the option should be ignored.
   Do M-X Edit options<Return> again.  You will see that the value of
   Auto Fill Mode is still 0.

You can't use C-G to get out of a recursive editing level because C-G
is used for discarding numeric arguments and partially typed commands
WITHIN the recursive editing level.


SEARCHING
---------

EMACS can do searches for strings (these are groups of contiguous
characters or words) either forward through the file or backward
through it.  To search for the string means that you are trying to
locate it somewhere in the file and have EMACS show you where the
occurrences of the string exist.  This type of search is somewhat
different from what you may be familiar with.  It is a search that is
performed as you type in the thing to search for.  The command to
initiate a search is C-S for forward search, and C-R for reverse
search.  BUT WAIT!  Don't do them now.  When you type C-S you'll
notice that the string "I-search" appears as a prompt in the echo
area.  This tells you that EMACS is in what is called an incremental
search waiting for you to type the thing that you want to search for.
A search is terminated by <ALT>.

>> Now type C-S to start a search.  SLOWLY, one letter at a time,
   type the word 'cursor', pausing after you type each
   character to notice what happens to the cursor.
>> Type C-S to find the next occurrence of "cursor".
>> Now type <Rubout> four times and see how the cursor moves.
>> Type <Alt> to terminate the search.

Did you see what happened?  EMACS, in an incremental search, tries to
go to the occurrence of the string that you've typed out so far.  To go
to the next occurrence of 'cursor' just type C-S again.  If no such
occurrence exists EMACS beeps and tells you that it is a failing
search.  C-G would also terminate the search.

If you are in the middle of an incremental search and type <Rubout>,
you'll notice that the last character in the search string is erased
and the search backs up to the last place of the search.  For
instance, suppose you currently have typed 'cu' and you see that your
cursor is at the first occurrence of 'cu'.  If you now type <Rubout>,
the 'u' on the search line is erased and you'll be repositioned in the
text to the occurrence of 'c' where the search took you before you
typed the 'u'.  This provides a useful means for backing up while you
are searching.

If you are in the middle of a search and happen to type a control
character (other than a C-S or C-R, which tell EMACS to search for the
next occurrence of the string), the search is terminated.

The C-S starts a search that looks for any occurrence of the search
string AFTER the current cursor position.  But what if you want to
search for something earlier in the text?  To do this one should
type C-R for Reverse search.  Everything that applies to C-S applies
to C-R except that the direction of the search is reversed.


GETTING MORE HELP
-----------------

In this tutorial we have tried to supply just enough information to
get you started using EMACS.  There is so much available in EMACS that
it would be impossible to explain it all here.  However, you may want
to learn more about EMACS since it has numerous desirable features
that you don't know about yet.  EMACS has a great deal of internal
documentation.  All of these commands can be accessed through the HELP
character.  If there is no key labelled "HELP" on your keyboard, you
can type the <HELP> character as C-_ (Control-Underscore), or with the
<HOLD> key, on Datamedia terminals.  Be warned: many terminals are
faulty and do not allow you to type the character C-_ in the logical
way (hold down Control and type an underscore).  For example, on a
VT-100 it works to hold down Control and type "/" or "?".

To use the HELP features, type the <HELP> character, and then a
character saying what kind of help you want.  If you are REALLY lost,
type <HELP> ? and EMACS will tell you what kinds of help it can give.
If you have typed the <HELP> character and decide you don't want any
help, just type C-G to abort.

The most basic HELP feature is <HELP> C.  Type <HELP>, a C, and a
command character, and EMACS prints a description of the command.
When you are finished reading it, type a Space or a C-G (quit) to
bring your text back on the screen.

>> Type <HELP> C Control-P.  When you are finished reading the output,
type a Space.  The message should be something like

	The command Control-P runs the function ^R Up Real Line:
	Move up vertically to the next real line.
	Continuation lines are skipped.

The "name of the function" is important for people who are customizing
EMACS.  It is what appears in the EMACS CHART as the documentation for
the command character.  It often starts with the characters "^R".  For
now you can ignore it.

Multi-character commands such as C-X C-Z and (if you have no META or
EDIT key) <ALT>V are also allowed after <HELP> C.

Here are some other useful <HELP> options:

   <HELP> D	Describe a function.  You type in the name of the
		function.  To see your text again when it is done,
		type a Space or C-G.

>> Try typing <HELP> D Replace String<Return>.  Then type a Space
when you are finished reading it.

   <HELP> A	Apropos.  Type in a keyword and EMACS will list
		all the functions containing that keyword.  For some
		functions it will also list a one or two character
		command which has the same effect.

>> Type <HELP> A File<Return>.  You will see a list of all functions
(M-X commands) with "file" in their names.  You will also see commands
like C-X C-V and C-X C-S, listed under the corresponding function
names.  When it says "--More--" at the bottom of the screen, type
a Space to see the rest of the list.

   <HELP> I	Run the INFO program.  INFO contains the
		the same information as in the EMACS manual, as well
		as documentation of some other system programs,
		organized by topic.
		Here is where you can find out
		about, for instance, special commands for editing
		LISP code, handling buffers, replacing text, filling
		and justifying text, etc.

INFO is a fairly sophisticated documentation finder which is what you
will have to use to learn more about EMACS.  After you are familiar
with the material in this tutorial, you should try invoking INFO with
<HELP> I and then, as soon as you are in INFO, type H.  The H will get
you INFO's tutorial, which will teach you how to use INFO just as this
has taught you how to use EMACS.


CONCLUSION
----------

Remember, to exit use C-M-Z (C-Z C-Z).  You will not be screwed if you
exit with C-C but various features will not be
provided, so it is probably wise to develop the habit of using C-M-Z.

This tutorial is meant to be understandable to all new users, so if
you found something unclear, don't sit and blame yourself - complain!
he@%`@%J@X@%`@@%`.@@%`7@%`D@%`^@:@%`g@v@%`w@%a	z@%a@%a0@%a=@%aZ@%ad@g@%an@@%az@%bz@
@%d@o$@%d+@@%d8@t@%dC@%dX@",*@%db@%dt@{@%e@;@%e@[@%e@@%e&@X@%e-@a@@
n@P@%e5@@%eE@<@%eT#@]@%e\@*@%eh@%e{@1@%f@%f@5@1@%f%@%f0@%f;@%fF@%fP@%f[@%fi@%fr@%f}@%g@%g@%g"@@%g.@%g9@%gG@$0@%gT@%g^@%gi@%gr@%g|@%h	@t@%h@%h)@&[@%h3@%h=@%hH@%hR@%h]@%hi@%hx@*@(:@%i	@%^@%i@%FX@%i&@%G,@%i/@#8
@%i@$,y@%i=@%"@N@}@%iF@	@%i^@%
u@%iR@%
5@#q@!k@%in@$\?@$@
@%i}@%a@%j@2~@&@$0@'2@&[@;@@%j@$-Y@>@%<@%j@#b!@z'@x
@N@#x'@}@|m@4;@{s@{H@@@>@ur@sV@f@^ @T@M@pS@j7@J@I@8x@8 @;-@:y@Au@@1@V]@UO@Dx@D;@Gr@G9@w~@v
@|Z@|@{5@z8@;@@%j@$-Y@@PF@N4@AP@9b@1e@+Y@KY@ED@(&@'F@o@(@y@Y@!X@ -@2m@1s@$@$@&G@&.@RA@PW@V`@V@U\@Tk@@-@N!@Kh@9O@6K@+J@* @E4@A@%j"@qy@%j&@%j6@%j@@|@%jI@)@%jR@%ji@.@%ju@%k@%k@%k9@Wy@%kC@=@%kM@%kV@%kmD@%kw@%l@&@%l@h@%l*@6@%l5@:@%lW@e@%l\@D@P@%ld@P@%lp@%m@@%m@qq@o/@%m@o@@
~@"@-@
c@r)jo@r%@=@A@
cp~=y@%aZ@4;@"?@*@*\@$?@%dt@%Cf@$z%@$`C@$>@$#`@#|@#~h@$C@$u(@$X@+Y@$@$#=@$X@@$@$n@$V@$*@$ @$IC@%6@%1s@%1e@%<m@$0n@#w'@$@%=[@"4!@$HP@$