From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Jari Aalto Newsgroups: gmane.emacs.bugs Subject: bug#7515: [PATCH] Info Elisp::call-process -- Add process run directory information Date: Tue, 30 Nov 2010 08:45:51 +0200 Organization: Private Message-ID: <871v63xqao.fsf_-_@picasso.cante.net> References: <87ipzgzbm9.fsf@picasso.cante.net> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Trace: dough.gmane.org 1291214266 27555 80.91.229.12 (1 Dec 2010 14:37:46 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 1 Dec 2010 14:37:46 +0000 (UTC) Cc: 7515@debbugs.gnu.org To: Glenn Morris , control@bugs.debian.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Dec 01 15:37:38 2010 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1PNnoP-0002OK-Oa for geb-bug-gnu-emacs@m.gmane.org; Wed, 01 Dec 2010 15:37:38 +0100 Original-Received: from localhost ([127.0.0.1]:36691 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PNnoP-0002Ob-1m for geb-bug-gnu-emacs@m.gmane.org; Wed, 01 Dec 2010 09:37:37 -0500 Original-Received: from [140.186.70.92] (port=44312 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PNfRL-0006nD-Ly for bug-gnu-emacs@gnu.org; Wed, 01 Dec 2010 00:41:29 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PNKQW-0003gz-0a for bug-gnu-emacs@gnu.org; Tue, 30 Nov 2010 02:15:01 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:57004) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PNKQV-0003gV-Uj for bug-gnu-emacs@gnu.org; Tue, 30 Nov 2010 02:14:59 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1PNJte-0001sI-13; Tue, 30 Nov 2010 01:41:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Jari Aalto Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 30 Nov 2010 06:41:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 7515 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 7515-submit@debbugs.gnu.org id=B7515.12910992257163 (code B ref 7515); Tue, 30 Nov 2010 06:41:01 +0000 Original-Received: (at 7515) by debbugs.gnu.org; 30 Nov 2010 06:40:25 +0000 Original-Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PNJt2-0001rT-Kq for submit@debbugs.gnu.org; Tue, 30 Nov 2010 01:40:25 -0500 Original-Received: from emh01.mail.saunalahti.fi ([62.142.5.107]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PNJsz-0001rF-CI for 7515@debbugs.gnu.org; Tue, 30 Nov 2010 01:40:23 -0500 Original-Received: from saunalahti-vams (vs3-10.mail.saunalahti.fi [62.142.5.94]) by emh01-2.mail.saunalahti.fi (Postfix) with SMTP id 8C06A8C59E; Tue, 30 Nov 2010 08:45:56 +0200 (EET) Original-Received: from emh05.mail.saunalahti.fi ([62.142.5.111]) by vs3-10.mail.saunalahti.fi ([62.142.5.94]) with SMTP (gateway) id A0098286A1B; Tue, 30 Nov 2010 08:45:56 +0200 Original-Received: from picasso.cante.net (a91-155-187-216.elisa-laajakaista.fi [91.155.187.216]) by emh05.mail.saunalahti.fi (Postfix) with ESMTP id 797DB27D84; Tue, 30 Nov 2010 08:45:51 +0200 (EET) In-Reply-To: (Glenn Morris's message of "Mon, 29 Nov 2010 17:50:06 -0500") User-Agent: Gnus/5.110011 (No Gnus v0.11) Emacs/23.2 (gnu/linux) X-Antivirus: VAMS X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Tue, 30 Nov 2010 01:41:02 -0500 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:42057 Archived-At: --=-=-= Content-Type: text/plain tags 7515 + patch thanks 2010-11-30 00:50 Glenn Morris : >> Please add documentation to info page Elisp::call-process >> >> 37.3 Creating a Synchronous Process >> >> What variable affects the location where process is being run: > > 37.1 Functions that Create Subprocesses > > Synchronous and asynchronous processes are explained in the > following sections. Since the three functions are all called in a > similar fashion, their common arguments are described here. > > [...] > > The subprocess gets its current directory from the value of > `default-directory' (*note File Name Expansion::). I propose that the information is also mentioned in 31.7::call-process because at the same page, this is mentioned in context of another command: -- Function: process-file program &optional infile buffer display &rest args This function processes files synchronously in a separate process. It is similar to `call-process' but may invoke a file handler based on the value of the variable `default-directory'. The current working directory of the subprocess is `default-directory'. ----------------------------------------------------------------------- 2010-11-30 Jari Aalto * processes.texi (Synchronous Processes): In `call-process' description, mention `default-directory'. --=-=-= Content-Type: text/x-diff Content-Disposition: inline; filename=0001-processes.texi-Synchronous-Processes-In-call-process.patch >From b98e980f7e31d1e2444321fa76ffc56a39db50f3 Mon Sep 17 00:00:00 2001 From: Jari Aalto Date: Tue, 30 Nov 2010 08:41:41 +0200 Subject: [PATCH] processes.texi (Synchronous Processes): In call-process, mention default-directory Organization: Private Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit Signed-off-by: Jari Aalto --- doc/lispref/processes.texi | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/doc/lispref/processes.texi b/doc/lispref/processes.texi index 2d22eb3..8846051 100644 --- a/doc/lispref/processes.texi +++ b/doc/lispref/processes.texi @@ -260,7 +260,8 @@ system, much like text written into a file. @xref{Coding Systems}. @defun call-process program &optional infile destination display &rest args This function calls @var{program} in a separate process and waits for -it to finish. +it to finish. The current working directory of the subprocess is +`default-directory'. The standard input for the process comes from file @var{infile} if @var{infile} is not @code{nil}, and from the null device otherwise. -- 1.7.2.3 --=-=-=--