all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* call-process : outputing to a file
@ 2014-12-13 17:34 Pierre Lorenzon
  2014-12-13 17:47 ` Pierre Lorenzon
  0 siblings, 1 reply; 2+ messages in thread
From: Pierre Lorenzon @ 2014-12-13 17:34 UTC (permalink / raw
  To: help-gnu-emacs


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 !


(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 



^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: call-process : outputing to a file
  2014-12-13 17:34 call-process : outputing to a file Pierre Lorenzon
@ 2014-12-13 17:47 ` Pierre Lorenzon
  0 siblings, 0 replies; 2+ messages in thread
From: Pierre Lorenzon @ 2014-12-13 17:47 UTC (permalink / raw
  To: help-gnu-emacs

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 
> 



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2014-12-13 17:47 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-12-13 17:34 call-process : outputing to a file Pierre Lorenzon
2014-12-13 17:47 ` Pierre Lorenzon

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.