all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Stefan Monnier <monnier@IRO.UMontreal.CA>
To: Bob Rogers <rogers-emacs@rgrjr.dyndns.org>, Leo <sdl.web@gmail.com>
Cc: emacs-devel <emacs-devel@gnu.org>
Subject: Re: Elisp implementation of list-processes (and: Why is list-processes implemented in C?)
Date: Tue, 30 Nov 2010 16:06:38 -0500	[thread overview]
Message-ID: <jwvr5e2v8b4.fsf-monnier+emacs@gnu.org> (raw)
In-Reply-To: <19700.37958.1149.668766@rgr.rgrjr.com> (Bob Rogers's message of "Tue, 30 Nov 2010 01:05:58 -0500")

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



  reply	other threads:[~2010-11-30 21:06 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-11-27 18:52 Adding a hook to list-processes Bob Rogers
2010-11-27 19:43 ` Davis Herring
2010-11-27 20:25   ` Bob Rogers
2010-11-28 18:49 ` Stefan Monnier
2010-11-28 18:54   ` Bob Rogers
2010-11-30  6:05   ` Elisp implementation of list-processes Bob Rogers
2010-11-30 21:06     ` Stefan Monnier [this message]
2010-12-01  3:27       ` Elisp implementation of list-processes (and: Why is list-processes implemented in C?) Leo
2010-12-01  4:16       ` Elisp implementation of list-processes (and: Why islist-processes " Drew Adams
2010-12-01 10:55     ` Elisp implementation of list-processes Leo
2010-12-01 11:12     ` Leo
2010-12-02  2:48       ` Bob Rogers
2010-12-01 21:12     ` Richard Stallman

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=jwvr5e2v8b4.fsf-monnier+emacs@gnu.org \
    --to=monnier@iro.umontreal.ca \
    --cc=emacs-devel@gnu.org \
    --cc=rogers-emacs@rgrjr.dyndns.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.