Trailing-Edge
-
PDP-10 Archives
-
steco_19840320_1er_E35
-
10,5676/teco/macros/emacs.tec
There is 1 other file named emacs.tec in the archive. Click here to see a list.
E.(INPUT-LINE)@I\
E.(INPUT-TEXT)HK
!INPUT-LOOP!
^TU(CHR)Q(CHR)-^O33"E OINPUT-DONE'Q(CHR)-^O15"E OINPUT-DONE'Q(CHR)-^O177"E E.(INPUT-TEXT)-D
E.(LAST-LINE)-DEVUPDATEOINPUT-LOOP'
E.(INPUT-TEXT)Q(CHR)IE.(LAST-LINE)Q(CHR)IEVUPDATEOINPUT-LOOP !INPUT-DONE!E.(INPUT-TEXT)I\
E.(INPUT-CHAR)@I\
^TU(CHR)Q(CHR)-^O177"E E.(INPUT-TEXT) Z"N -D
E.(LAST-LINE)-D EVUPDATE' OINPUT-CHAR-DONE'
Q(CHR)-^O33"N
E.(INPUT-TEXT) Q(CHR)I E.(LAST-LINE) Q(CHR)I EVUPDATE'!INPUT-CHAR-DONE!\
E.(UPDATE-INFO-LINE)@I\E.(INFO-LINE)HK
ITECmacros^O11I:E<(.)"F :E>(.)'I
\
E.(NORMAL-DISPATCH)@I\:M(COMMAND-|)"FM(COMMAND-INSERT)'\
E.(META-DISPATCH)@I\:M(META-|)"FM(META-INSERT)'\
E.(CTL-X-DISPATCH)@I\:M(CTL-X-|)"FM(CTL-X-INSERT)'\
E.(DO-DISPATCH)@I\JFK|Q(CHR)U(CHR-TEMP)
Q(CHR-TEMP)-^O177"E-1U(CHR-TEMP)'
Q(CHR-TEMP)-^O40"LICTL-Q(CHR-TEMP)+^O100U(CHR-TEMP)'
Q(CHR-TEMP)-^O140"G Q(CHR-TEMP)-^O173"L Q(CHR-TEMP)-^O40U(CHR-TEMP)''
Q(CHR-TEMP)-)"EIR-PARNE.(.)W(DISPATCH)'
Q(CHR-TEMP)IE.(.)W(DISPATCH)\
E.(COMMAND-CTL-A)@I\:0L\
E.(COMMAND-CTL-B)@I\:+Q(ARG)R\
E.(COMMAND-CTL-C)@I\:-4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FLAG)"EE.(LAST-LINE)HKIWrite failed'
HPEF
M(UPDATE-INFO-LINE)\
[(COMMAND-CTL-S)](CTL-X-S)
E.(COMMAND-INSERT)@I\Q(ARG)<Q(CHR)I>\
E.(META-INSERT)@I\IQ(CHR)I\
E.(CTL-X-INSERT)@I\IQ(CHR)I\
E.(EMACS)@I\
:-1
:-3
1,21E$(.)
M(UPDATE-INFO-LINE)
22,22E$(INFO-LINE)
0,0X(LAST-LINE)24,24E$(LAST-LINE)
23,23E$(COMMAND-BUFFER)
E.(.):EI(INIT-FILE)TMACS.INI
0U(INIT-FILE)-1EC!MAIN-LOOP!
E.(.)EVUPDATE+1U(ARG)U(CHR)E.(LAST-LINE)HKQ(CHR)-?"E?OMAIN-LOOP' E.(DISPATCH)HKG(NORMAL-DISPATCH)
M(DO-DISPATCH)OMAIN-LOOP\E.(.)
0U*-1ECEEEMACSW(EMACS)