On Thu, 29 Aug 2002, Brian Willkie wrote:
On Thu, 29 Aug 2002, Daniel Pittman wrote:
[...]
> Sure. I don't quite know what _you_ mean when you say
"primitive"
> here,
I mean a function that is callable inside xemacs (interactive or
not) and written in C rather than eLisp.
Oh. You don't want to do that, really. If you think "I need C", you
probably looked at your problem the wrong way, at least with Emacs.
> input and output of Csound &c. is primarily text-based,
except for
> the sound bit. ;)
That is in fact one of its selling points.
*nod*
[...]
> What you probably want is to create a major mode for Csound
files.
> That
Well, yeah. I was so caught up with re-using C code that I went strait
for the low level details. I'll take a look at developing modes first.
A mode is what you want, really. They are what let you build, for
example, the powerful C or SGML editing facilities in Emacs.
Er, though if you want to look at a functional major mode, the xrdb mode
is my first choice, because it's simple and clear. If you want a working
example, look at that. :)
Thanks for taking the time to clear up my misconceptions and for the
advice.
That's OK. The manuals and the existing major modes made it pretty easy
to pick up how a major mode is put together, I found, the last time I
looked at one.
What you want to do with Csound, though, sounds completely practical and
like a good candidate for running with Emacs. :)
Daniel
--
When the tyrant has disposed of foreign enemies by conquest or treaty, and
there is nothing to fear from them, then he is always stirring up some war or
other, in order that he people may require a leader.
-- Plato