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: call-process : outputing to a file Date: Sat, 13 Dec 2014 18:34:12 +0100 (CET) Message-ID: <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 1418492560 23717 80.91.229.3 (13 Dec 2014 17:42:40 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 13 Dec 2014 17:42:40 +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:42:32 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 1Xzqi7-0002In-Uu for geh-help-gnu-emacs@m.gmane.org; Sat, 13 Dec 2014 18:42:32 +0100 Original-Received: from localhost ([::1]:33877 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xzqi7-0001ke-A9 for geh-help-gnu-emacs@m.gmane.org; Sat, 13 Dec 2014 12:42:31 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:44062) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xzqhp-0001kX-Fg for help-gnu-emacs@gnu.org; Sat, 13 Dec 2014 12:42:20 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Xzqhi-0006ta-0S for help-gnu-emacs@gnu.org; Sat, 13 Dec 2014 12:42:13 -0500 Original-Received: from smtp02.smtpout.orange.fr ([80.12.242.124]:57996 helo=smtp.smtpout.orange.fr) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xzqhh-0006tF-Q6 for help-gnu-emacs@gnu.org; Sat, 13 Dec 2014 12:42:05 -0500 Original-Received: from localhost ([92.140.18.212]) by mwinf5d56 with ME id T5i01p00B4aY9GC035i0xl; Sat, 13 Dec 2014 18:42:01 +0100 X-ME-Helo: localhost X-ME-Date: Sat, 13 Dec 2014 18:42:01 +0100 X-ME-IP: 92.140.18.212 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:101556 Archived-At: 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