unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Stefan Monnier <monnier@iro.umontreal.ca>
Cc: emacs-devel@gnu.org
Subject: Re: Proposal for extending set-process-filter
Date: 27 Apr 2004 14:51:59 -0400	[thread overview]
Message-ID: <jwv7jw1cl7w.fsf-monnier+emacs@gnu.org> (raw)
In-Reply-To: <x5hdv54er4.fsf@lola.goethe.zz>

>> > 3) a file name for output.
>> Can be handled by (1) just fine.  What would you use it for (other than
>> /dev/null which is rather special since append is the same as overwrite)?
> Consistency with the BUFFER argument of start-process (which would be
> pretty much the same as the FILTER function, with the exception that
> it establishes a control buffer that is the default for process
> output, that will list the process as one of its processes, and that
> will kill the process if the buffer gets killed).  Also efficiency:
> redirecting a file descriptor to a file does not require Emacs
> processing power.  It also does not require conversion into multibyte
> strings and back and so on.

AFAIK, you can't do such a redirection after the exec.  I.e. it has to be an
argument of `start-process' rather than set-process-filter.

>> Output-appending can be done via a filter-function.
> Not really.  An open in append mode will also append at the end if
> the file gets extended by a different process.  That's pretty hard to
> do with a filter function.  One could start the file descriptor list
> with
> :append t
> or so, however.

I thought the `append' arg of write-region did it right.

>> What is still missing is the ability to open more file descriptors
>> than stdin, stdout, stderr.
> Item 5) above was supposed to cater for that.

But for the same reason as above I don't think this can be done in
set-process-filter: it has to be done before the `exec'.


        Stefan

  reply	other threads:[~2004-04-27 18:51 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-04-26 23:55 Proposal for extending set-process-filter David Kastrup
2004-04-27 15:01 ` Stefan Monnier
2004-04-27 15:33   ` David Kastrup
2004-04-27 18:51     ` Stefan Monnier [this message]
2004-04-27 20:46       ` David Kastrup
2004-04-27 16:30 ` Richard Stallman
2004-04-27 18:53   ` Stefan Monnier
2004-04-27 20:59     ` David Kastrup
2004-04-29 10:44       ` Richard Stallman
2004-04-27 21:10   ` David Kastrup
2004-04-27 21:25     ` Stefan Monnier

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=jwv7jw1cl7w.fsf-monnier+emacs@gnu.org \
    --to=monnier@iro.umontreal.ca \
    --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).