> 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 _______________________________________________ Emacs-devel mailing list Emacs-devel@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-devel