GNU bug report logs -
#7515
[wishlist] Info Elisp::call-process -- Add process run directory information
Previous Next
Reported by: Jari Aalto <jari.aalto <at> cante.net>
Date: Mon, 29 Nov 2010 10:03:01 UTC
Severity: wishlist
Tags: fixed, patch
Found in version 23.2+1-5.1
Fixed in version 24.2
Done: Lars Magne Ingebrigtsen <larsi <at> gnus.org>
Bug is archived. No further changes may be made.
To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 7515 in the body.
You can then email your comments to 7515 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org
:
bug#7515
; Package
emacs
.
(Mon, 29 Nov 2010 10:03:01 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
Jari Aalto <jari.aalto <at> cante.net>
:
New bug report received and forwarded. Copy sent to
bug-gnu-emacs <at> gnu.org
.
(Mon, 29 Nov 2010 10:03:02 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
Package: emacs
Version: 23.2+1-5.1
Severity: wishlist
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:
;; Q: What determines the run directory of this command?
(call-process "pwd" nil (current-buffer))
-- System Information
Debian Release: squeeze/sid
APT Prefers testing
APT policy: (990, testing) (500, unstable) (1, experimental)
Architecture: amd64
Kernel: Linux picasso 2.6.32-5-amd64 #1 SMP Fri Sep 17 21:50:19 UTC 2010 x86_64 GNU/Linux
Locale: LANG=en_DK.UTF-8
-- Versions of packages `emacs depends on'.
Depends:
emacs23 23.2+1-5.1 GNU Emacs is the extensible self-documenting
emacs23-lucid 23.2+1-5.1 GNU Emacs is the extensible self-documenting
emacs23-nox 23.2+1-5.1 GNU Emacs is the extensible self-documenting
Information forwarded
to
owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org
:
bug#7515
; Package
emacs
.
(Mon, 29 Nov 2010 22:45:02 GMT)
Full text and
rfc822 format available.
Message #8 received at 7515 <at> debbugs.gnu.org (full text, mbox):
> 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::).
Information forwarded
to
owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org
:
bug#7515
; Package
emacs
.
(Tue, 30 Nov 2010 06:41:01 GMT)
Full text and
rfc822 format available.
Message #11 received at 7515 <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
tags 7515 + patch
thanks
2010-11-30 00:50 Glenn Morris <rgm <at> 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 <at> cante.net>
* processes.texi (Synchronous Processes): In `call-process'
description, mention `default-directory'.
[0001-processes.texi-Synchronous-Processes-In-call-process.patch (text/x-diff, inline)]
From b98e980f7e31d1e2444321fa76ffc56a39db50f3 Mon Sep 17 00:00:00 2001
From: Jari Aalto <jari.aalto <at> 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 <at> 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
Added tag(s) patch.
Request was from
Jari Aalto <jari.aalto <at> cante.net>
to
control <at> debbugs.gnu.org
.
(Tue, 30 Nov 2010 08:17:01 GMT)
Full text and
rfc822 format available.
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#7515
; Package
emacs
.
(Thu, 12 Apr 2012 19:19:02 GMT)
Full text and
rfc822 format available.
Message #16 received at 7515 <at> debbugs.gnu.org (full text, mbox):
Jari Aalto <jari.aalto <at> cante.net> writes:
> +it to finish. The current working directory of the subprocess is
> +`default-directory'.
I've applied something similar to the Emacs trunk.
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog http://lars.ingebrigtsen.no/
Added tag(s) fixed.
Request was from
Lars Magne Ingebrigtsen <larsi <at> gnus.org>
to
control <at> debbugs.gnu.org
.
(Thu, 12 Apr 2012 19:19:02 GMT)
Full text and
rfc822 format available.
bug marked as fixed in version 24.2, send any further explanations to
7515 <at> debbugs.gnu.org and Jari Aalto <jari.aalto <at> cante.net>
Request was from
Lars Magne Ingebrigtsen <larsi <at> gnus.org>
to
control <at> debbugs.gnu.org
.
(Thu, 12 Apr 2012 19:19:02 GMT)
Full text and
rfc822 format available.
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Fri, 11 May 2012 11:24:03 GMT)
Full text and
rfc822 format available.
This bug report was last modified 11 years and 363 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.