unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Jari Aalto <jari.aalto@cante.net>
To: Glenn Morris <rgm@gnu.org>, control@bugs.debian.org
Cc: 7515@debbugs.gnu.org
Subject: bug#7515: [PATCH] Info Elisp::call-process -- Add process run directory information
Date: Tue, 30 Nov 2010 08:45:51 +0200	[thread overview]
Message-ID: <871v63xqao.fsf_-_@picasso.cante.net> (raw)
In-Reply-To: <mxeia3iw2p.fsf@fencepost.gnu.org> (Glenn Morris's message of "Mon, 29 Nov 2010 17:50:06 -0500")

[-- Attachment #1: Type: text/plain, Size: 1358 bytes --]

tags 7515 + patch
thanks

2010-11-30 00:50 Glenn Morris <rgm@gnu.org>:
>> 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  <jari.aalto@cante.net>

	* processes.texi (Synchronous Processes): In `call-process'
	description, mention `default-directory'.


[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: 0001-processes.texi-Synchronous-Processes-In-call-process.patch --]
[-- Type: text/x-diff, Size: 1149 bytes --]

From b98e980f7e31d1e2444321fa76ffc56a39db50f3 Mon Sep 17 00:00:00 2001
From: Jari Aalto <jari.aalto@cante.net>
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 <jari.aalto@cante.net>
---
 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


  reply	other threads:[~2010-11-30  6:45 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-11-29 10:07 bug#7515: [wishlist] Info Elisp::call-process -- Add process run directory information Jari Aalto
2010-11-29 22:50 ` Glenn Morris
2010-11-30  6:45   ` Jari Aalto [this message]
2012-04-12 19:16     ` bug#7515: [PATCH] " Lars Magne Ingebrigtsen

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

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=871v63xqao.fsf_-_@picasso.cante.net \
    --to=jari.aalto@cante.net \
    --cc=7515@debbugs.gnu.org \
    --cc=control@bugs.debian.org \
    --cc=rgm@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 public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).