home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Mega CD-ROM 1
/
megacd_rom_1.zip
/
megacd_rom_1
/
FREEMACS
/
EMACS16A.ZIP
/
MINTED.EDD
< prev
next >
Wrap
Text File
|
1990-02-24
|
7KB
|
254 lines
Name:M:give-name
Insert a null string definition.
[*]
Name:M:done-editing
Reads strings from the current buffer.
[*]
Name:M:keys-read
Read the keymap inserted by #(M:keys-edit)
[*]
Name:Mstrings-delimiter
Returns the string delimiter for Mstrings-read and M:strings-edit.
[*]
Name:M:compare-ed
Read a .ED file. Convert the file into an EDIT type file, preserving
only those functions that DIFFER from the current ones. This is very
useful for making diffs between the currently loaded .ED files and
other .ED files.
[*]
Name:Mread-ed
Read a .ED file. Return ##(name) and ##(data). Dependent upon the format
of .ED files.
[*]
Name:Mread-ed-chars
Given a character count, read that many chars out of the buffer and
advance point.
[*]
Name:Mread-ed-word
Return a word from the two chars following point.
[*]
Name:M:copy-key
Copy one key definition to another.
[*]
Name:M:syntax-edit
Edit the syntax table.
[*]
Name:M:syntax-read
Read the syntax table back in.
[*]
Name:Mdebug
Announce a string and wait for a key to be pressed.
[*]
Name:Mgrep-do
Grep the strings in the library whose lib letter is arg1
[*]
Name:Mgrep-do-do
Grep the string named by arg1.
[*]
Name:Mstrings-edit-do
Insert one string into the buffer for editing, unless it's already there.
[*]
Name:Mstrings-read
Read all the strings out of the text buffer.
[*]
Name:Mstrings-read-do
Read the string arg2 out of the text buffer. The string belongs in the library
whose lib letter is arg1.
[*]
Name:M:erase-string
Erase the string named by arg1.
[*]
Name:M:remove-nonexistant
Remove non-existant functions from the documentation file.
[*]
Name:M:mef
Edit a group of strings whose names begin with arg1. Include executable
strings (beginning with :), and search every library.
[*]
Name:Mcompare-read
Define ##(name) and ##(data) to be the name and data of the next string.
[*]
Name:Mfilename
I included Jost Kreiger's cref and trace packages in the minted library.
-russ
Russ, I got your letter a bit late because of a typo in my name,
so here I hurry the text of the cross-reference thing. Unfortunately,
I forgot all about it in the meantime, as it was not really useful because
of memory problems. It turned out to be in no good shape at all, so I reworked
it a bit. MINT debugging is not easy, so I also remembered a rudimentray trace
tool I wrote at the same time. It comes in the same text.
Here it comes with a few remarks:
1. There were a few loose ends. I need sole left and right parentheses,
to pass them to a function (wait, what did I do then ...). These are
given names here instead of recalculating them every time. (I put this
in M&setup in the meantime.) I don't know if this is a general problem.
[ I changed it to use ##(bc,40,d,a) and ##(bc,41,d,a) -russ]
2. The trace-functions are everything else but smart, and they slow down
interpretation very much (if you trace, e.g., Fmultiple-do). I find them
helpful, though. Problems:
The trace buffer overflows rapidly with unfortunate side-effects.
You may never, never forget to untrace everything before saving.
(In this version the original text is part of the traced one, though.)
The indentation tends to get messed up very often.
In effect, its more of an idea than a facility. Everything is possible,
but most things will make it slower.
3. I called everything D: to make it part of a "DEVELOP" library.
Thats easy to change, of course. [I put it in minted -russ]
The probably obsolete contents of my comments file for you to check:
Fset-mode-by-ext sets spell mode, although the speller is not installed.
In Freadline, you can edit the old text with backspace (feature ?).
The x command always suggests x as a command.
I hope this can be of use
Jost Krieger
P.S.:
Please contact me under the nonmnemonical name "P920031@DBORUB01" in BITNET,
thats safest and our mailer doesn't mess up the incoming messages any more.
[*]
Name:Mtrace-do
Redefine a string such that it inserts its invocation and its result.
arg1 = name of string to redefine.
arg2 = value of string.
arg3 = arglist.
[*]
Name:M:trace
This function redefines a function to issue tracing output to a special buffer
called *trace* whenever it is called or returns. The name of the function is
prompted for.
[*]
Name:M:untrace
This function undoes the effect of M:trace.
[*]
Name:M:untrace-all
This function untraces all functions that have been traced.
[*]
Name:M:cref-all
Generate a buffer named *cref* containing a cross reference of all
defined strings. Each used string is listed on a new line, followed by an
asterisk if it is defined anywhere, and then followed by lines filled with
the names of functions that reference it.
[*]
Name:M:cref-lib
Generate a buffer called *cref* containing a cross reference of all
strings used in a library. A prompt is issued for the library letter.
Each used string is listed on a new line, followed by an asterisk if it
is defined in the library, and then followed by lines filled with
the names of functions in the library that reference it.
[*]
Name:Mcref-lib-do
Called with arg1 = a lib letter to cref.
[*]
Name:Mcref-one
Called with the name of a function to cref.
Get rid of syntactic sugar like ( and ) and #( and ##( and comma.
[*]
Name:Min-documentation
Locate the documentation for the function arg2 in the library arg1.
Execute arg3 if the documentation exists [with point just before the
string-delimiter, and mark 0 just after the Name:.], otherwise execute
arg4 if the documentation doesn't exist.
[*]
Name:Mfind-documentation
Return the documentation for a string.
[*]
Name:M:check-parens
[*]
Name:M:ek
Edit a key definition and it's assocated function.
[*]
Name:M:mint-expand
Expand the MINT word to the left of point as much as possible.
[*]
Name:M!Mint-mode
Enter Mint mode.
[*]
Name:M:mint-newline
Mint mode newline with auto indent, current indent level, and if breaking a
line then indent it a little more.
[*]
Name:Mcurrent-indent
Return the indenting of the previous open paren.
[*]
Name:Mget-indent
Return the indenting of the current line.
[*]
Name:M:mint-rpar
If we are putting our RPar on a line of code the just flash it, otherwise match
the indenting of the LPar and then flash it.
[*]
Name:M:mint-grep
#(M:mint-grep) will edit all strings containing STRING
[*]
Name:Mdefun
arg1 is the name of the function.
arg2 is the documentation of the function.
arg3 is the body of the function.
arg4 is the test code for the function.
[*]
Name:Mstrings-edit-do-do
Insert one string into the buffer for editing.
[*]
Name:M:eval-expression
Execute a primitive. If preceded by !, insert the result into the buffer.
[*]
Name:M:eval-last-sexp
Evaluate the MINT expression before point.
[*]