[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: writing an elisp interface to a c library

From: Masatake YAMATO
Subject: Re: writing an elisp interface to a c library
Date: Thu, 18 Aug 2005 20:29:14 +0900 (JST)

> 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 objects to hold the (opaque)
> structs the lib uses and DEFUNs to match the lib's api?  I have read
> the primitives section of the elisp manual, but which src files are
> the best to study?  

I don't know well about the C side. However, I think M-x describe-function
on a built-in function is really helpful. Because its *Help* buffer
contains a link to its definition in a C source file.

Try "M-x describe-function car" to know about list.
Try "M-x describe-function to numberp" to know about number...

I feel strong GNU'ism from the link.

Masatake YAMATO

reply via email to

[Prev in Thread] Current Thread [Next in Thread]