home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Mega CD-ROM 1
/
megacd_rom_1.zip
/
megacd_rom_1
/
FREEMACS
/
EMACS16A.ZIP
/
QUICK.REF
< prev
next >
Wrap
Text File
|
1990-03-05
|
13KB
|
309 lines
Enclosed is a 5 page MINT reference card that I put together.. thought
you might like it.
___________________________________________________________________________
dave ENET: CHILD::WECKER - DTN: 522_3873 - MS: CXO1-2/N22
USENET: decwrl!child.dec.com!wecker
ARPA: wecker%child.dec.com@decwrl.dec.com
SNAIL: 115 Palm Springs Drive, Colorado Springs CO 80921
___________________________________________________________________________
[Brought up to date by Russell Nelson]
Return prototype function Title
------ ------------------- --------------------------- ----------------------
mod #(%%,A,B) A % B "Modulo"
and #(&&,A,B) A & B "And"
mul #(**,A,B) A * B "Multiply"
sum #(++,A,B) A + B "Add"
sub #(--,A,B) A - B "Subtract"
div #(//,A,B) A / B "Divide"
str #(==,A,B,T,F) A==B ? T : F "String Equality"
xor #(^^,A,B) A ^ B "Exclusive-Or"
N #(N,A1,A2,...) N <- params "Default"
Y/N #(a?,A,B,Y,N) A<B (alphabetically) "Alphabetic?"
#(an,L,F,R) show L,R at bot (F)win:scrn "Announce"
buf# #(ba,N) N: 0=new +=specific -=cur "Buffer Allocate"
chr #(bc,V,F,T) convert V using From,To "Base Conversion"
#(bi,N,M,E) buf[N] = text upto mark M "Buffer Insert"
#(bl,P,D) bell P=divisor, D=duration "Bell"
time #(ct,F) (F)?file time:cur time "C Time"
#(db) does interrupt 3 "Debug"
#(de,N) delete file N "Delete File"
#(dm,M) delete region "Delete to Mark"
#(ds,N,B) N = B "Define String"
#(es,N1,N2,...) free all Ns "Erase String"
#(ev) read MS-DOS into env.NAME "Environment"
#(ex,F,A,I,O,E) prog=F args=A I=inp O=out "Execute Program"
list #(ff,N,S) dir of N, seperator=S "Find Files"
left #(fm,N,X,Z) N=right of match X or Z "First Match"
str #(g?,A,B,T,F) A>B ? T : F "Arithmetic Greater"
substr #(gn,N,D,Z) N+=D or Z "Get N (characters)"
char #(go,N,Z) N++ or Z "Get One (character)"
N #(gs,N,A1,A2,...) N <- params "Get String"
#(hl,N) exit return code N "Halt"
#(is,S,E) insert S at point "Insert String"
key #(it,T) get input in T hundreths "Input Timed"
Y/N #(l?,S,E,F,L,Y,N) between Start-End mark F,L "Look&Test"
#(ll,A) read .ed file A "Load Library"
#(lp,S,N,R,F) set pat to S, R=re? F=fold? "Look Pattern"
lst #(ls,S,P) prefix P, seperator S "List Strings"
var #(lv,F) (see table) "Load Variable"
Y/N #(mb,M,Y,N) if M before . "Mark Before"
#(mp,N,P1,P2,...) N <- param markers "Make Parameter"
Y/N #(n?,F,Y,N) Is there a string F "Name exists?"
num #(nc,A) char count of A "Number of Characters"
#(ow,S) write on screen "Over Write"
#(pm,S,E) S: 0:pop -:global +:local "Push/Pop Mark"
x,y #(pp) mouse position "Pick Position"
num #(rc,M) size of region "Read Count"
#(rd,F) F != NULL -> FULL redraw "Redisplay"
#(rf,N) read file N at dot "Read File"
str #(rm,M,V) get region "Read Mark"
#(rn,O,N) O becomes N "Rename file"
#(rs,N) N=0 "Restore String"
lst #(sa,A,B,C,...) sorted with commas between "Sort Ascending"
num #(sc,W,F) W=word F=function "Spell Check"
Cth chr #(si,N,C) Cth chr of N "String Index"
#(sl,A,F1,F2,...) write .ed file A "Save Library"
#(sm,M,V) Mark M = Mark V (or .) "Set Mark"
#(sp,M) . = M "Set Point"
#(st,S) 256 chars 0=blank 1=!blank "Syntax Table"
#(sv,F,V) (see table) "Store Variable"
#(tr,M,S) tran frm point to M using S "Translate to Mark"
#(wf,N,M) write file N between .-M "Write File"
#(xy,X,Y) position cursor on screen "X Y"
or #(||,A,B) A | B "Or"
#(buffer-fn.B) get the filename for a buffer Files
##(Lfilename) filename for library L Libs
##(lib-list) all loaded libraries
##(lib-name) current library
#(Fload-lib,FILE) load library
#(Fsave-lib,FILE) save library
#(F:save-all-libs) save everybody
#(L&setup) executed when lib L is loaded
##(Lmodified) exists of lib L was modified
##(buffer-mode.B) mode for buffer number B Buffers
##(buffer-type.B) type of buffer number B
##(buffer-filename.B) filename of buffer B
#(Ffor-all-buffers,S) execute S in all buffers
#(Fbuffer-modified,Y,N) does Y if modified else N
#(Fsave-buffer-if-modified) saves into ##(buffer-filename).tmp
#(Fok-to-trash-buffer,F) does F if user says OK
#(Ftrash-buffer) allow user to save a buffer Strings
#(M:ef,S) edit a string
#(M:give-name,S) create a new string
#(M:done-editing) defines the new strings
#(Fself-insert) default key binding
#(K.KEY) binding for key KEY
#(F:bind-to-key,F,K) binds Function to Key
#(F:unbind-key) will prompt for key to delete
#(M:keys-edit) creates a buffer to edit all keys
#(M:keys-read) reads the edit buffer back into keys
##(Fmark) current mark Marks
#(Fset-new-mark,M) add mark to 16 mark ring
#(F:swap-point-and-mark) does the usual
#(Freadline,PROMPT,ACTION,HELP,MODE) Input
##(value) initial value for Freadline
#(Floop,V,X) rescans Value Count times Programs
#(..,F) executes F and discards the value
#(Fhead,R) get head of ring R Rings
##(R.head) name of ring head string
##(R.size) ring size
#(Frotate,R) rotates a ring
#(Funrotate,R) unrotates a ring
#(Fring,R,S) make new ring R of size S
#(F:un-kill) pull head string off of ring Kill
#(Fkill,M) if ##(result)==kill append kill
#(Fbackward-kill,M) kill from M to . (preserving order)
#(Fredefine,S,V) String is pushed and set to Val Stacks
#(Funredefine,S) String is popped
#(Fmax,A,B) Numerical maximum Misc
#(Fisupper,C,Y,N) test C and exec Y or N
#(Fpad-to-column,C) adds tabs and spaces
#(Fyes-or-no,,Y,N) wait for yes or no to be typed
#(Ferror,E) reports E if it is not null
##(F-fill-column) used by #(Fformat-paragraph)
##(F-comment-column) where comments should be aligned to
#(Fmultiple,S,L) execute String on List elems (sep = ,)
#(Fcase,A,(V1,S1),(V2,S2)...) case statement (A == Vn)
Basic strings:
() protected string
#() active function
##() neutral function
#(d,KEY) process KEY
#(g) waits for a KEY and returns it
#(k) redisplay screen and modeline
The scanning algorithm:
1. neutral = "" active = "#(d,#(g))" ptr = beginning of active
2. if (none active) goto 1
3. if (cr,lf,ht) delete it and goto 2
4. if ("(") scan to matching ")" and move contents to neutral goto 2
5. if (",") mark end of neutral as end of arg, del(,), goto 2
6. if ("#(") mark end of neutral as arg and active, del("#(") goto 2
7. if ("##(") mark end of neutral as arg and neutral, del("##(") goto 2
8. if ("#") move it to end of neutral, goto 2.
9. if (")") mark end of netural as end fnc,arg. execute last fnc in
neutral. Put result in neutral or active (depending on fnc type).
if break-key is down, input it and goto 1. else goto 2.
10. Move char from active to neutral, goto 2
Names of Marks:
Character Meaning
___________ _______
@ through Z Global user marks
0 through 9 Local user marks.
< The character to the left of the point.
> The character to the right of the point.
{ The first blank character to the left of the point.
} The first blank character to the right of the point.
- The first non-blank character to the left of the point.
+ The first non-blank character to the right of the point.
[ The beginning of the file.
] The end of the file.
^ The beginning of this line.
$ The end of this line.
. The point.
Guidlines for announce #(an) strings:
... wait for operation to complete
? enter one character (y/n)
! error
: enter return terminated string
anything else is advisory and is ignorable
Load variable #(lv) values:
F Value returned
-------------------- --------------
as (Auto Save) Auto save counter (0..65535)
bc (Background Color) Background color (0..7), initially 0
bl (Bottom Line) bottom line of current window (1..23)
bo (Background Origin) Background color (0..7), originally
bs (Bot Scroll) percentage of bot screen that scrolls (0..100)
cl (Current Line) number of current line (1..32767)
cn (Computer Name) currently, either 'IBM-PC' or 'Z-100'.
cs (Column on Screen) column on screen (1..32767)
cw (Current Window) window currently in use (1..2)
fc (Foreground Color) Foreground color (0..15), initially 7
fo (Foreground Origin) Foreground color (0..15), originally
im (Inverse Mark) Mark that is showing inverse video.
is (Inhibit Snow) inhibit snow on CGA (0..1)
lc (Left Column) Left Column on screen (1..)
mb (Modified Buffer) flag, zero if buffer not modified (0..2)
nl (Number of Lines) number of lines (1..32767)
ow (Other Window) buffer being displayed in "other" window (0..)
pb (Percentage Before) Percentage of text buffer before point. (0..100)
rs (Row on Screen) row on screen (-32768..32767)
tc (Tab Columns) number of columns per tab (2,4,8,16)
tl (Top Line) top line of current window (1..23)
ts (Top Scroll) percentage of top screen that scrolls (0..100)
vn (Version Number) current version number.
wp (Window Percent) percent of screen allocated to the top window
ws (Whitespace Showing)redisplay shows whitespace (0..1)
none of the above number of current line (1..32767)
Set variable #(sv) values:
F Value set
-------------------- --------------
as (Auto Save) Auto save counter (0..65535)
bc (Background Color) Background color (0..7) initially 0
bl (Bottom Line) bottom line of current window (1..23)
bs (Bot Scroll) percentage of bot screen that scrolls (0..100)
cl (Current Line) number of current line (1..32767)
cs (Column on Screen) the point is moved to column on screen (1..32767)
cw (Current Window) window currently in use (1..2)
fc (Foreground Color) Foreground color (0..15) initially 7
im (Inverse Mark) Mark to inverse video to.
is (Inhibit Snow) inhibit snow on CGA (0..1)
lc (Left Column) Left Column on screen (1..)
mb (Modified Buffer) flag, zero if buffer not modified (0..2)
ow (Other Window) buffer being displayed in "other" window (0..)
rs (Row on Screen) moves the cursor to the Vth row on screen (1..)
tc (Tab Columns) number of columns per tab (2,4,8,16)
tl (Top Line) top line of current window (1..23)
ts (Top Scroll) percentage of top screen that scrolls (0..100)
wp (Window Percent) percent of screen allocated to the top window
ws (Whitespace Showing)redisplay shows whitespace (0..1)
none of the above number of current line (1..32767)
Regular expression characters:
\ causes the following character to have no special meaning.
^ matches the beginning of a line.
$ matches the end of a line.
. matches any single character.
[,;] matches , or ; (for instance).
[a-z] matches a-z (for instance).
[~a-z] matches anything but a-z (for instance).
* causes the previous character to be matched zero or more times.
Timed input return values:
Timeout no input was typed
C-@ Control-@
C-A Control-A
... The rest of the control characters are fashioned similarly.
C-_ Control-_
Space (a single space)
! Bang
... The rest of the printables just return themselves
Delete
Key Names:
BackSpace Ins Up Arrow Home
Tab Del Down Arrow End
Return I Chr Right Arrow Pg Up
Escape D Chr Left Arrow Pg Dn
Enter Ins Line Break
Help Del Line Sys Req
F0,F1,F2,F3... KP+,KP-,KP. KP0,KP1,KP2,KP3,KP4,KP5,KP6,KP7,KP8,KP9
Left Down Left Up Right Down
Right Up Middle Down Middle Up
Base Conversion:
Character Meaning
a or A ASCII character.
d or D decimal number.
h or H hexadecimal number.
o or O octal number.
b or B binary number.
Spell Function codes:
0 will spell check the word given in W.
1 will add a word given in W to the dictionary.
2 will return the number of words, or an error code as given below.
3 will write the speller to the file given in W.
4 will empty the dictionary.
5 will return the maximum number of words in the dictionary.
Spell Returns:
0 No error (function code 2: zero words in dictionary).
-1 Speller not installed.
-2 illegal function call was made
-3 word was mis-spelled
-4 word too long to add to dict / spell check
-5 dictionary is full!
-6 disk full, speller not saved