Re: writing an elisp interface to a c library

2005-08-30 Thread James Cloos
For the archives, src/xfaces.c is a good example to look at after reading the relevant sections of the elisp manual. I browsed through all of src; of all of the .c files, xfaces.c deals with an api most similar to what I asked about. -JimC -- James H. Cloos, Jr. <[EMAIL PROTECTED]> _

Re: writing an elisp interface to a c library

2005-08-18 Thread Thien-Thi Nguyen
James Cloos <[EMAIL PROTECTED]> writes: > (As I see it, the lib's api is such that it can be mapped to lisp w/o > diverging from its C look and feel. Following that api very closely, > then, seems to be the Right Thing To Do. Being able to write all of > the higher-level code using the lib in el

Re: writing an elisp interface to a c library

2005-08-18 Thread Masatake YAMATO
> Can anyone point me to a good example in the emacs codebase of a lisp > api that closely matches an existing external c api? So far I've only > hacked the elisp part of emacs, not the C > > I presume I'll need to create some read-only lisp integers matching > the names of the various enum v

writing an elisp interface to a c library

2005-08-18 Thread James Cloos
Can anyone point me to a good example in the emacs codebase of a lisp api that closely matches an existing external c api? So far I've only hacked the elisp part of emacs, not the C I presume I'll need to create some read-only lisp integers matching the names of the various enum values, lisp