all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Stefan Monnier <monnier@iro.umontreal.ca>
To: Leo <sdl.web@gmail.com>
Cc: emacs-devel@gnu.org
Subject: Re: process-list in Elisp
Date: Tue, 22 Feb 2011 13:10:56 -0500	[thread overview]
Message-ID: <jwv39ng2b5k.fsf-monnier+emacs@gnu.org> (raw)
In-Reply-To: <m1ipwcmtlc.fsf@gmail.com> (Leo's message of "Tue, 22 Feb 2011 15:11:43 +0800")

> Any objection to using this:

> (mapc (lambda (p)
>         (when (memq (process-status p) '(exit signal closed))
>           (delete-process p)))
>       (process-list))

> This re-use delete-process instead of another primitive.

That sounds OK.

> ,----[ (info "(elisp)Deleting Processes") ]
> | If you delete a terminated process explicitly before it is
> | deleted automatically, no harm results.
> `----

> I attach an implementation of list-processes in elisp that's more or
> less equivalent to the primitive list-processes except it no longer pops
> up an empty buffer when the process list is empty.

Will take a look and let you know, thank you,


        Stefan



  reply	other threads:[~2011-02-22 18:10 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-02-21 21:48 process-list in Elisp Stefan Monnier
2011-02-22  7:11 ` Leo
2011-02-22 18:10   ` Stefan Monnier [this message]
2011-02-26 21:12   ` Stefan Monnier
2011-03-03  2:00     ` Leo

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

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

  git send-email \
    --in-reply-to=jwv39ng2b5k.fsf-monnier+emacs@gnu.org \
    --to=monnier@iro.umontreal.ca \
    --cc=emacs-devel@gnu.org \
    --cc=sdl.web@gmail.com \
    /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 external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.