From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Leo Newsgroups: gmane.emacs.devel Subject: Re: list-processes reimplementation, and list/menu buffers Date: Mon, 04 Apr 2011 09:06:32 +0800 Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1301879240 25024 80.91.229.12 (4 Apr 2011 01:07:20 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 4 Apr 2011 01:07:20 +0000 (UTC) Cc: emacs-devel@gnu.org To: Chong Yidong Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Apr 04 03:07:16 2011 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 1Q6YFv-0002dJ-Be for ged-emacs-devel@m.gmane.org; Mon, 04 Apr 2011 03:07:12 +0200 Original-Received: from localhost ([127.0.0.1]:42866 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Q6YFp-0006Mq-9E for ged-emacs-devel@m.gmane.org; Sun, 03 Apr 2011 21:06:53 -0400 Original-Received: from [140.186.70.92] (port=58385 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Q6YFh-0006Jl-Qx for emacs-devel@gnu.org; Sun, 03 Apr 2011 21:06:50 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Q6YFg-0007oh-JR for emacs-devel@gnu.org; Sun, 03 Apr 2011 21:06:45 -0400 Original-Received: from mail-iw0-f169.google.com ([209.85.214.169]:40582) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Q6YFg-0007ob-CG for emacs-devel@gnu.org; Sun, 03 Apr 2011 21:06:44 -0400 Original-Received: by iwg8 with SMTP id 8so6911272iwg.0 for ; Sun, 03 Apr 2011 18:06:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version:content-type :content-transfer-encoding; bh=VZhPfqx9OTxHcNphgtAQd7uyLxAURPCiooar/JC2NNU=; b=MLF0aEQJS3obtJJGii6ZzTpPov4ipcbKp7MSqwKfvo0Y7P+p2UjN7s4WzIAfVHc1Uv aCqFF1qCviAcuG5kvHb/SxafQBCYOKWHi96e2++r/xkJjYKdWk41OlUAdw3Yz5RViKTq kmcnw6Hl9ei3vE/sNBHXGo3zzZDwK9ULt4uC0= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version:content-type:content-transfer-encoding; b=N65G1Y//a3+wx2ufkVm8wtqaYs+58TzYAqpwbCFqe63EJ6BSKq4j7VBK+jyFp0+KN7 xhpCPR43GfsXmjKIYIfE8wGxvovPzZklk1kBGifhYDun1SlDuuVuvf1Sy1yCbftFtVzJ 5KEni3+tmuH7WCWIWxtZLytbGlwNpGdPAuMvE= Original-Received: by 10.43.131.195 with SMTP id hr3mr3461449icc.268.1301879201343; Sun, 03 Apr 2011 18:06:41 -0700 (PDT) Original-Received: from th041153.ip.tsinghua.edu.cn (th041085.ip.tsinghua.edu.cn [59.66.41.85]) by mx.google.com with ESMTPS id i3sm3355782iby.23.2011.04.03.18.06.38 (version=TLSv1/SSLv3 cipher=OTHER); Sun, 03 Apr 2011 18:06:39 -0700 (PDT) In-Reply-To: (Chong Yidong's message of "Sun, 03 Apr 2011 20:48:56 -0400") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.3.50 (Mac OS X 10.6.7) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 209.85.214.169 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:138094 Archived-At: Hello Yidong, On 2011-04-04 08:48 +0800, Chong Yidong wrote: > I took a look at the list-processes reimplementation. It looks OK, but > there's no real reason we should display the same buffer contents as the > old list-processes. Instead, it seems to make sense to provide > something similar to the list-packages and list-buffers interface. > > I took some code from your emacs-process.el, and reworked it using the > list-packages code from package.el. Unlike emacs-process.el, this > doesn't use the CL package, so it can be added to simple.el. > > > However, it would be cleaner to make a new `list-menu-mode' major mode, > usable for general "list of stuff" buffers. Then both the list-packages > and list-processes can derive from that major mode. With a bit more > work, list-buffers could use it too. I will investigate this approach. [...] Thanks for the work. I will try it out later today. It seems list-processes no longer cleans up dead processes. How about adding something like: (mapc (lambda (p) (when (memq (process-status p) '(exit signal closed)) (delete-process p))) (process-list)) towards the end of list-processes in the patch?=B9 Also, some people ask to be able to visit process buffers. Maybe we should also bind RET to visit the process buffer under point? Footnotes:=20 =B9 http://article.gmane.org/gmane.emacs.devel/136367 Leo