[OS X Emacs] Re: M-x proced

Leo sdl.web at gmail.com
Mon Mar 8 15:59:54 EST 2010


On 2010-03-08 15:59 +0000, David Reitter wrote:
> On Mar 8, 2010, at 9:55 AM, Leo wrote:
>> I am surprised to see OSX is not on the list. I wonder if people on
>> this list has a patch to make proced work on osx. Thanks.
>
> It looks like somebody would have to implement `list-system-processes'
> in C to bridge the appropriate BSD call to Emacs Lisp. Doesn't sound
> like a daunting task. People unfamiliar with Emacs and its C
> implementation should simply look into nsterm.m and add a `DEFUN'
> macro call plus a "defsubr" statement (at the end of the file), and
> that's pretty much it. There are also plenty of examples on how to
> construct a Lisp list by calling Fcons().

I have implemented list-system-processes without too much knowledge of C
but the more difficult part is system_process_attributes.

Leo




More information about the MacOSX-Emacs mailing list