all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Pierre Lorenzon <devel@pollock-nageoire.net>
To: help-gnu-emacs@gnu.org
Subject: Re: call-process : outputing to a file
Date: Sat, 13 Dec 2014 18:47:10 +0100 (CET)	[thread overview]
Message-ID: <20141213.184710.218284863201722179.devel@pollock-nageoire.net> (raw)
In-Reply-To: <20141213.183412.478087176700913976.devel@pollock-nageoire.net>

From: Pierre Lorenzon <devel@pollock-nageoire.net>
Subject: call-process : outputing to a file
Date: Sat, 13 Dec 2014 18:34:12 +0100 (CET)

> 
> Hi,
> 
> I use emacs 25.0.50.
> 
> I don't undersand call-process documentation in particular at
> third argument nature. Documentation says that output might go
> to a file but I can't understand how.
> 
> (call-process myproc nil myfile nil)
> 
> consider myfile as a string and sends output to a buffer name
> with that string. That is not the result I wish.
> 
> (call-process myproc nil (:file myfile) nil) Says that make an
> error saying that :file is not a function : I could have guess
> that myself but in the documentation syntax is given as follows
> : (:file FILE-NAME) : what might that mean !

  OK it means (list :file file-name) and it works. Sorry for
  the noise !

  Regards

  Pierre 




> 
> 
> (call-process myproc nil :file myfile nil) causes also an error
> : wrong type arguments stringp nil.
> 
> 
> Does anyone have an idea or should I investigate the code to
> understand something ?
> 
> Regards 
> 



      reply	other threads:[~2014-12-13 17:47 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-12-13 17:34 call-process : outputing to a file Pierre Lorenzon
2014-12-13 17:47 ` Pierre Lorenzon [this message]

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=20141213.184710.218284863201722179.devel@pollock-nageoire.net \
    --to=devel@pollock-nageoire.net \
    --cc=help-gnu-emacs@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 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.