From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Roland Winkler" Newsgroups: gmane.emacs.devel Subject: Re: proced.el [was: docstrings in dired.el] Date: Fri, 23 May 2008 12:11:11 +0200 Message-ID: <18486.38975.243934.651997@tfkp07.physik.uni-erlangen.de> References: <18486.19302.606327.955538@tfkp07.physik.uni-erlangen.de> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1211538446 14920 80.91.229.12 (23 May 2008 10:27:26 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 23 May 2008 10:27:26 +0000 (UTC) Cc: emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri May 23 12:28:02 2008 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1JzUV4-0006IN-4Q for ged-emacs-devel@m.gmane.org; Fri, 23 May 2008 12:27:50 +0200 Original-Received: from localhost ([127.0.0.1]:47561 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JzUUJ-0003En-EU for ged-emacs-devel@m.gmane.org; Fri, 23 May 2008 06:27:03 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JzUU9-0003Bv-OZ for emacs-devel@gnu.org; Fri, 23 May 2008 06:26:53 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JzUU8-00039i-8J for emacs-devel@gnu.org; Fri, 23 May 2008 06:26:52 -0400 Original-Received: from [199.232.76.173] (port=53507 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JzUU8-00039L-0A for emacs-devel@gnu.org; Fri, 23 May 2008 06:26:52 -0400 Original-Received: from tfkpsv.physik.uni-erlangen.de ([131.188.164.197]:16370) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1JzUF3-0000gC-Iv; Fri, 23 May 2008 06:11:17 -0400 Original-Received: from tfkp07.physik.uni-erlangen.de (tfkp07.physik.uni-erlangen.de [131.188.164.207]) by tfkpsv.physik.uni-erlangen.de (Postfix) with ESMTP id A659821457; Fri, 23 May 2008 12:11:05 +0200 (CEST) In-Reply-To: X-Mailer: VM 8.0.9 under Emacs 22.2.1 (i686-pc-linux-gnu) X-detected-kernel: by monty-python.gnu.org: Linux 2.4-2.6 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:97573 Archived-At: On Fri May 23 2008 Eli Zaretskii wrote: > Thanks. But while at that, could you also please change proced.el to > not rely on an external program such as `ps', at least not explicitly? > Every modern OS has APIs to access the same information as `ps' does; > providing primitives to do that from Lisp will make proced.el much > more portable than it is currently, and I think it will also be > faster. I agree that some built-in functions would be much cleaner, because the different implementations of ps already have given me some headache. It seems that the options required by ps and the output it generates are by far less standardized than those of ls used by dired. (I interpret your email such that you would consider it worth the effort to implement this on the C level.) My problem is just that this goes way beyond my skills. If someone was willing and able to help me with that, I'd greatly appreciate it. > The hodgepodge of OS-specific options we have in proced.el at this > time is really ugly, IMO. Definitely, I agree. Roland