unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Leo <sdl.web@gmail.com>
To: Chong Yidong <cyd@stupidchicken.com>
Cc: emacs-devel@gnu.org
Subject: Re: list-processes reimplementation, and list/menu buffers
Date: Mon, 04 Apr 2011 09:06:32 +0800	[thread overview]
Message-ID: <m1ipuuakpz.fsf@th041153.ip.tsinghua.edu.cn> (raw)
In-Reply-To: <yyx1v1i7sef.fsf@fencepost.gnu.org> (Chong Yidong's message of "Sun, 03 Apr 2011 20:48:56 -0400")

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?¹

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: 
¹  http://article.gmane.org/gmane.emacs.devel/136367

Leo



  reply	other threads:[~2011-04-04  1:06 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-04-04  0:48 list-processes reimplementation, and list/menu buffers Chong Yidong
2011-04-04  1:06 ` Leo [this message]
2011-04-04  6:52   ` Leo
2011-04-04 13:01 ` Tom Tromey
2011-04-05 16:09 ` Chong Yidong
2011-04-05 21:04   ` Stefan Monnier
2011-04-05 23:20     ` Chong Yidong
2011-04-06 20:49       ` Chong Yidong

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=m1ipuuakpz.fsf@th041153.ip.tsinghua.edu.cn \
    --to=sdl.web@gmail.com \
    --cc=cyd@stupidchicken.com \
    --cc=emacs-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).