From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: Elisp implementation of list-processes (and: Why is list-processes implemented in C?) Date: Tue, 30 Nov 2010 16:06:38 -0500 Message-ID: References: <19697.21373.201776.909872@rgr.rgrjr.com> <19700.37958.1149.668766@rgr.rgrjr.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1291176068 29421 80.91.229.12 (1 Dec 2010 04:01:08 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 1 Dec 2010 04:01:08 +0000 (UTC) Cc: emacs-devel To: Bob Rogers , Leo Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Dec 01 05:01:02 2010 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.69) (envelope-from ) id 1PNdsA-0007fl-Id for ged-emacs-devel@m.gmane.org; Wed, 01 Dec 2010 05:00:51 +0100 Original-Received: from localhost ([127.0.0.1]:56178 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PNds9-0005eb-Tb for ged-emacs-devel@m.gmane.org; Tue, 30 Nov 2010 23:00:49 -0500 Original-Received: from [140.186.70.92] (port=43098 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PNdcO-0006Oe-SX for emacs-devel@gnu.org; Tue, 30 Nov 2010 22:44:53 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PNXPV-0001JC-7f for emacs-devel@gnu.org; Tue, 30 Nov 2010 16:06:50 -0500 Original-Received: from chene.dit.umontreal.ca ([132.204.246.20]:48897) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PNXPV-0001Gc-0S for emacs-devel@gnu.org; Tue, 30 Nov 2010 16:06:49 -0500 Original-Received: from faina.iro.umontreal.ca (lechon.iro.umontreal.ca [132.204.27.242]) by chene.dit.umontreal.ca (8.14.1/8.14.1) with ESMTP id oAUL6cSh000529; Tue, 30 Nov 2010 16:06:38 -0500 Original-Received: by faina.iro.umontreal.ca (Postfix, from userid 20848) id 53C93B4154; Tue, 30 Nov 2010 16:06:38 -0500 (EST) In-Reply-To: <19700.37958.1149.668766@rgr.rgrjr.com> (Bob Rogers's message of "Tue, 30 Nov 2010 01:05:58 -0500") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) X-NAI-Spam-Score: 0 X-NAI-Spam-Rules: 1 Rules triggered RV3695=0 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) 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:133249 Archived-At: > A nearly complete Elisp implementation of Flist_processes is included > below; feedback welcome. So we now have 2 implementations candidates. :-( > It should produce the identical output (except > for using buttons for buffer names), though I haven't tested it on the > more exotic kinds of processes. The only thing I couldn't do was the > following snippet from the very end: > if (exited) > { > status_notify (NULL); > redisplay_preserve_echo_area (13); > } Leo had a similar problem. I don't have time to dig into it right now, but I suspect that this part of the behavior can be dropped. If not, maybe something like (sit-for 0) will do the trick. > The only other question is: Where should it go? It is called from > save-buffers-kill-emacs in files.el (the only other use is in > lisp/eshell/esh-proc.el), but files.el is already pretty crowded. On > the other hand, autoloading it for something so basic might be > problematic. Suggestions? It should probably go into subr.el. Yes, it's a large file, but that's not really a problem. The only real problem with it is that this file can't use CL macros (because CL macros use functions defined in subr.el). Stefan "who hasn't had time to look at either implementation"