[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: process-list in Elisp

From: Stefan Monnier
Subject: Re: process-list in Elisp
Date: Tue, 22 Feb 2011 13:10:56 -0500
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux)

> 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,


reply via email to

[Prev in Thread] Current Thread [Next in Thread]