[OS X Emacs] Re: M-x proced
sdl.web at gmail.com
Mon Mar 8 12:54:34 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 think what needs to be implemented is list_system_processes which
starts in line 3174 of sysdep.c. Looks simple but needs someone familiar
with osx and c.
More information about the MacOSX-Emacs