From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Pierre Lorenzon Newsgroups: gmane.emacs.help Subject: Re: call-process : outputing to a file Date: Sat, 13 Dec 2014 18:47:10 +0100 (CET) Message-ID: <20141213.184710.218284863201722179.devel@pollock-nageoire.net> References: <20141213.183412.478087176700913976.devel@pollock-nageoire.net> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1418493331 3247 80.91.229.3 (13 Dec 2014 17:55:31 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 13 Dec 2014 17:55:31 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Dec 13 18:55:25 2014 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1XzquY-0007ZC-Tq for geh-help-gnu-emacs@m.gmane.org; Sat, 13 Dec 2014 18:55:23 +0100 Original-Received: from localhost ([::1]:33905 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XzquY-0003Cm-HO for geh-help-gnu-emacs@m.gmane.org; Sat, 13 Dec 2014 12:55:22 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:45690) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XzquI-00039X-0j for help-gnu-emacs@gnu.org; Sat, 13 Dec 2014 12:55:11 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XzquC-0001m6-5Q for help-gnu-emacs@gnu.org; Sat, 13 Dec 2014 12:55:05 -0500 Original-Received: from smtp02.smtpout.orange.fr ([80.12.242.124]:17681 helo=smtp.smtpout.orange.fr) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XzquB-0001ly-Um for help-gnu-emacs@gnu.org; Sat, 13 Dec 2014 12:55:00 -0500 Original-Received: from localhost ([92.140.18.212]) by mwinf5d56 with ME id T5uy1p00K4aY9GC035uy7h; Sat, 13 Dec 2014 18:54:59 +0100 X-ME-Helo: localhost X-ME-Date: Sat, 13 Dec 2014 18:54:59 +0100 X-ME-IP: 92.140.18.212 In-Reply-To: <20141213.183412.478087176700913976.devel@pollock-nageoire.net> X-Mailer: Mew version 6.5 on Emacs 25.0.50 / Mule 6.0 (HANACHIRUSATO) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 80.12.242.124 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:101557 Archived-At: From: Pierre Lorenzon 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 >