mirror of
https://github.com/PDP-10/its.git
synced 2026-02-21 23:07:57 +00:00
557 lines
21 KiB
Plaintext
Executable File
557 lines
21 KiB
Plaintext
Executable File
!* -*-TECO-*- EMACS;DOC >!
|
||
!* functions for printing documentation and status information!
|
||
|
||
!~Filename~:! !This file contains EMACS's normally used functions!
|
||
EMACS
|
||
|
||
!& List Some Functions:! !S List all loaded functions of a given class.
|
||
Takes two string arguments: name substring, and doc prefix
|
||
(function class). "*" as the doc prefix means list everything
|
||
except subroutines.
|
||
Nonzero precomma arg means do Where Is on each function listed
|
||
and do not print "Done" at the end.!
|
||
|
||
m(m.m&_Load_BARE)
|
||
[7 :i7 !* Get Name prefix in q7!
|
||
[8 [9 :i9 !* Get "class' (doc prefix) in q9!
|
||
fs:ejpage*5120+400000000000.u8 !* 1st file in q8!
|
||
< -fq8; !* Stop if no more files.!
|
||
m(m.m &_Maybe_Flush) !* Give up if user has flushed output.!
|
||
,q8m( m.m &_List_One_File)79 !* List functions of this class in one file!
|
||
q8+fq8+4u8> !* Advance to next file.!
|
||
"n ft Done
|
||
'
|
||
|
||
|
||
!& List One File:! !S List some of the functions in a specific library.
|
||
Takes string pointer to library as numeric arg, plus two string args
|
||
just like & List Some Functions. Nonzero precomma arg says to do Where Is
|
||
on each function listed.!
|
||
|
||
[9 [8 :i8 :i9 !* Q9 gets doc prefix, Q8 gets name prefix!
|
||
[0 [1 [2 [6 [7
|
||
m.m &_Maybe_Flush[a !* MA returns if output flushed.!
|
||
f[b bind !* Make a buffer for temporary use!
|
||
f[s string f[ window !* Doing T commands can set window if get --more--!
|
||
g(1,m.m~Filename~) !* get this files name!
|
||
hf=0"e hk i(( Anonymous ))' !* Some files may not have a ~filename~!
|
||
j <:s
|
||
; -2d> !* Flush any CRLFs from the filename.!
|
||
:i6 In_library_..O:
|
||
|
||
!* Prepare the header for this file, in case needed.!
|
||
hk !* Print the header if we mention something in this file.!
|
||
fswidth-60"l -1f[truncate' !* Truncate the documentation at screen end!
|
||
g(m.m~DIRECTORY~) j !* Get the list of function names!
|
||
< .-z; !* Find the next function name.!
|
||
:f |