On Wed, 28 Aug 2002, Brian Willkie wrote:
Thanks for the reply. Actually the parser already exists as part of
a
stand-alone executable. It has been ported to many platforms including
Classic MacOS (which to the best of my knowledge does not support
stdout).
*nod* I suspected that it might, but you never know.
Additionally, I eventually want to select parts of the buffer to
pass
to the rest of the program (or process with elisp functions then pass
on etc),
Sure. The simple `start-process' call runs a program as an asynchronous
subprocess of Emacs. You can have it put the output into a buffer or
call a Lisp function when something is written.
That buffer, then, can have anything done to it you want. If you want to
feed that back into the running process, that's pretty easy.
`process-send-string' is probably what you want there.
which I would also like to call as a primitive (incidentally the
other
program is Csound, or a branch of it called icsound).
Sure. I don't quite know what _you_ mean when you say "primitive" here,
though. Do you mean "lisp function" or do you mean something else?
I want to combine the functionality of csound with Xemacs to create
an
IDE for csound. Is this madness?
No, it sounds a perfectly reasonable use of the tool, assuming that the
input and output of Csound &c. is primarily text-based, except for the
sound bit. ;)
If you really want dials and knobs and stuff, Emacs isn't a good
choice, but it looked like Csound deals mostly with text, right?
From the name of it I assume that file-name-handler-alist exists for
this reason (ie to handle certain files differently from standard text
files if necessary). Am I wrong? If that is its purpose, how is it
used?
You are wrong there. It's used to create virtual file systems within
Emacs, not to handle files differently from standard text.
What you probably want is to create a major mode for Csound files. That
will let you create what you want -- a way of editing those files in a
special purpose buffer.
You can also define functionality for sending some or all of the buffer
content to Csound, modifying the content and the like, as part of that
major mode.
Daniel
--
We should forget about small efficiencies, say about 97% of the time:
premature optimization is the root of all evil.
-- Donald E. Knuth, _Structured Programming with go to Statements_
(Computing Surveys, Vol. 6, No. 4, December 1974)