From unknown Sun Aug 10 10:54:50 2025 X-Loop: help-debbugs@gnu.org Subject: bug#18515: 24.3; Documentation of `call-process' Resent-From: Eli Barzilay Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 21 Sep 2014 03:35:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 18515 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: 18515@debbugs.gnu.org X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.141127047030422 (code B ref -1); Sun, 21 Sep 2014 03:35:01 +0000 Received: (at submit) by debbugs.gnu.org; 21 Sep 2014 03:34:30 +0000 Received: from localhost ([127.0.0.1]:47066 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XVXuv-0007ua-7Z for submit@debbugs.gnu.org; Sat, 20 Sep 2014 23:34:29 -0400 Received: from eggs.gnu.org ([208.118.235.92]:59748) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XVXur-0007uQ-M0 for submit@debbugs.gnu.org; Sat, 20 Sep 2014 23:34:26 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XVXuk-0003HG-3R for submit@debbugs.gnu.org; Sat, 20 Sep 2014 23:34:25 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50 autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:46389) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XVXuk-0003Gv-1E for submit@debbugs.gnu.org; Sat, 20 Sep 2014 23:34:18 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:60339) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XVXhV-0001UM-EE for bug-gnu-emacs@gnu.org; Sat, 20 Sep 2014 23:20:43 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XVXhP-0000ir-BX for bug-gnu-emacs@gnu.org; Sat, 20 Sep 2014 23:20:37 -0400 Received: from mail-qa0-f46.google.com ([209.85.216.46]:60392) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XVXhP-0000iO-6x for bug-gnu-emacs@gnu.org; Sat, 20 Sep 2014 23:20:31 -0400 Received: by mail-qa0-f46.google.com with SMTP id f12so4118777qad.19 for ; Sat, 20 Sep 2014 20:20:25 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:mime-version:content-type :content-transfer-encoding:message-id:date:to:subject; bh=UKneNcmBufTRbZ6NvnfPo1c646wm3fuhDZ/b/T+yihs=; b=GAtnVe0bXftK446DGTK+OAn52So6/M9miUexo8CMuR5veoCuvSgRhckgYeSKfyRMtY 7O3yS5YxmQDDDp9YAlV722GjLuLQtVLBx/ivWAU6Fv1ho9yKNEU5dTHcwONgdCZbArK7 7gb4fhZLpUUcQw18J7uB63rIF7CQlnX5N8IQf0IOMGCHR9QaFbL344gxJe79u54olxsm xUoQsIes3kGIjul7zJUy3+QbFGYs4xuuKqQWMR11vVDzR26Mi1rpVnOQmyWo3wMb+4Rz SsStAYjHxo30Y+WUpbhQa8AYAOJ8nBtBiqDPF7fBikqwDgog3O/4rE1HAVvIi4VOxgax 7pwg== X-Gm-Message-State: ALoCoQnHbIM89lmvAs+3Txlz++voslQRilWmqxbgcXK96cWBRCJoAdEkVNHdxcchwNDCk4PmEurU X-Received: by 10.140.38.231 with SMTP id t94mr12528179qgt.3.1411269624925; Sat, 20 Sep 2014 20:20:24 -0700 (PDT) Received: from home.barzilay.org (c-24-60-254-179.hsd1.ma.comcast.net. [24.60.254.179]) by mx.google.com with ESMTPSA id e4sm4902347qgf.32.2014.09.20.20.20.23 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 20 Sep 2014 20:20:24 -0700 (PDT) From: Eli Barzilay MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <21534.17398.640167.807129@home.barzilay.org> Date: Sat, 20 Sep 2014 23:20:22 -0400 X-Mailer: VM 8.2.0b under 24.3.1 (x86_64-redhat-linux-gnu) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -4.0 (----) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -4.0 (----) The documentation of `call-process' doesn't say anything about which directory the process is started at, or the fact that it switches to the directory in some way. As the example that I ran into, I setq `ring-bell-function' in my environment so it plays a nice ding. In some cases the dings didn't play at all, or played after a huge delay etc. Since this is running in a VM, I "obviously" concluded that something bad with the sound driver configuration happened, and went on a wild chase that lead to nothing. Eventually, I noticed that the delay happens only when I have a file open over sshfs -- and then I wrapped the `call-process' with a (let ((default-directory "/")) ...) and all is well. A note about switching to the directory in the documentation of `call-process', or even just a mention of the directory in which it runs could have saved me that chase... -- ((lambda (x) (x x)) (lambda (x) (x x))) Eli Barzilay: http://barzilay.org/ Maze is Life! From unknown Sun Aug 10 10:54:50 2025 X-Loop: help-debbugs@gnu.org Subject: bug#18515: 24.3; Documentation of `call-process' Resent-From: npostavs@users.sourceforge.net Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 02 Apr 2017 03:30:04 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 18515 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Eli Barzilay Cc: 18515@debbugs.gnu.org Received: via spool by 18515-submit@debbugs.gnu.org id=B18515.149110376332494 (code B ref 18515); Sun, 02 Apr 2017 03:30:04 +0000 Received: (at 18515) by debbugs.gnu.org; 2 Apr 2017 03:29:23 +0000 Received: from localhost ([127.0.0.1]:56265 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cuWCh-0008S1-AI for submit@debbugs.gnu.org; Sat, 01 Apr 2017 23:29:23 -0400 Received: from mail-io0-f178.google.com ([209.85.223.178]:33665) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cuWCe-0008Re-Px; Sat, 01 Apr 2017 23:29:21 -0400 Received: by mail-io0-f178.google.com with SMTP id f84so58899620ioj.0; Sat, 01 Apr 2017 20:29:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version; bh=f1K1rSoLcN7Un4tf2y5xuCHr+gGvtAEURBaaS+KieC0=; b=UM34+uAz3pjLWvNXrYUynIWilx1htqOyObHV8rpZ3Oto/fu7B6kJiBKG6r3D2G491o lbgOHgSsnX7ZRxLWVwCsVCO2SOfxOxtM9GmiG7ewY9St+ZmGphlYuvZy+fzeJ1vtIVmv QO0Q3hSkrUjpuhpE5HPYI2QEAo25b8UTbGX+++7LBfCKtbGMPIFZl+i0dzvZcCJPcZ5e 4vBQ4SUoWk+Np0DJkz1pfH4TLIjBOX7JTInxtisO+xcVtoAHdY1LjozT3FuPNnhJZhkL MgxOSvyQnvPDSC12EGBl12Fw27Y/L/of4zLqMzbWS39hzGEn1cHsK0neLRKRtDsNRrR8 Bz/w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:references:date :in-reply-to:message-id:user-agent:mime-version; bh=f1K1rSoLcN7Un4tf2y5xuCHr+gGvtAEURBaaS+KieC0=; b=sFR8FMQ0PY4fub1CN9fFJTidzjdCdk4cNVKN46tHvcv6TNsIPfzEwVhVp0CwkhvYZD ML5cl/QyPFwbskTvkxO05SsQ6LKBm/rWaCfdX3dKd4Uu3XdQOAYvw2yBRodkAL000GPO w2yEm7vM5MzfMerfDn0XTteLh6SfLRJZlNhXLeWzLZOh3FWn18XqIiGNmnx5koCwjosS CHiALrTX+Uol+QDtd2MuRKWpixe/evZe28tzCD8Y27UCpl4w5ggJWymAHfXz64FpnBib H7MYqvHheN5TSBXiB82h8eqk03yKj54JL8n+XMdS9sKPYSKYy8OVdqiY+PiyviPGVpFl JywQ== X-Gm-Message-State: AFeK/H0djNkq2P9EjBPjVeWsizalsZrmQP/o/NCBQLOOITiqbgqlk1kJFMcgzW3aPzn6DQ== X-Received: by 10.107.6.211 with SMTP id f80mr10359166ioi.96.1491103755281; Sat, 01 Apr 2017 20:29:15 -0700 (PDT) Received: from zony ([45.2.7.65]) by smtp.googlemail.com with ESMTPSA id x26sm5709666ioi.5.2017.04.01.20.29.13 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sat, 01 Apr 2017 20:29:14 -0700 (PDT) From: npostavs@users.sourceforge.net References: <21534.17398.640167.807129@home.barzilay.org> Date: Sat, 01 Apr 2017 23:30:38 -0400 In-Reply-To: <21534.17398.640167.807129@home.barzilay.org> (Eli Barzilay's message of "Sat, 20 Sep 2014 23:20:22 -0400") Message-ID: <87vaqnxz8h.fsf@users.sourceforge.net> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.2 (gnu/linux) MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Spam-Score: -2.1 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.1 (--) --=-=-= Content-Type: text/plain tags 18515 patch quit Eli Barzilay writes: > > Eventually, I noticed that the delay happens only when I have a file > open over sshfs -- and then I wrapped the `call-process' with a > (let ((default-directory "/")) ...) and all is well. A note about > switching to the directory in the documentation of `call-process', or > even just a mention of the directory in which it runs could have saved > me that chase... It's easy enough to add that of course, though I wonder if it really would have helped. What other directory would the process run in? --=-=-= Content-Type: text/x-diff Content-Disposition: inline; filename=v1-0001-Mention-that-processes-start-in-default-directory.patch Content-Description: patch >From af7d3558d8557569c6d39b4dbf0e8cd53e8367f3 Mon Sep 17 00:00:00 2001 From: Noam Postavsky Date: Sat, 1 Apr 2017 23:15:46 -0400 Subject: [PATCH v1] Mention that processes start in default-directory (Bug#18515) * lisp/subr.el (start-process): * src/callproc.c (call-process): Mention that process starts in `default-directory'. --- lisp/subr.el | 4 +++- src/callproc.c | 1 + 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/lisp/subr.el b/lisp/subr.el index ebac2e0ef5..0c9c852370 100644 --- a/lisp/subr.el +++ b/lisp/subr.el @@ -1970,7 +1970,9 @@ start-process If you want to separate standard output from standard error, use `make-process' or invoke the command through a shell and redirect -one of them using the shell syntax." +one of them using the shell syntax. + +The process runs in `default-directory'." (unless (fboundp 'make-process) (error "Emacs was compiled without subprocess support")) (apply #'make-process diff --git a/src/callproc.c b/src/callproc.c index 6d69e13757..1c37fa7054 100644 --- a/src/callproc.c +++ b/src/callproc.c @@ -239,6 +239,7 @@ t (mix it with ordinary output), or a file name string. Otherwise it waits for PROGRAM to terminate and returns a numeric exit status or a signal description string. If you quit, the process is killed with SIGINT, or SIGKILL if you quit again. +The process runs in `default-directory'. usage: (call-process PROGRAM &optional INFILE DESTINATION DISPLAY &rest ARGS) */) (ptrdiff_t nargs, Lisp_Object *args) -- 2.11.1 --=-=-=-- From unknown Sun Aug 10 10:54:50 2025 X-Loop: help-debbugs@gnu.org Subject: bug#18515: 24.3; Documentation of `call-process' Resent-From: Michael Albinus Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 02 Apr 2017 07:26:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 18515 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch To: npostavs@users.sourceforge.net Cc: Eli Barzilay , 18515@debbugs.gnu.org Received: via spool by 18515-submit@debbugs.gnu.org id=B18515.149111791916969 (code B ref 18515); Sun, 02 Apr 2017 07:26:02 +0000 Received: (at 18515) by debbugs.gnu.org; 2 Apr 2017 07:25:19 +0000 Received: from localhost ([127.0.0.1]:56395 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cuZt1-0004Pd-Js for submit@debbugs.gnu.org; Sun, 02 Apr 2017 03:25:19 -0400 Received: from mout.gmx.net ([212.227.15.15]:59813) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cuZt0-0004PR-Hj for 18515@debbugs.gnu.org; Sun, 02 Apr 2017 03:25:19 -0400 Received: from detlef.gmx.de ([93.209.81.254]) by mail.gmx.com (mrgmx003 [212.227.17.190]) with ESMTPSA (Nemesis) id 0MA91t-1coE643nAH-00BIzA; Sun, 02 Apr 2017 09:24:58 +0200 From: Michael Albinus References: <21534.17398.640167.807129@home.barzilay.org> <87vaqnxz8h.fsf@users.sourceforge.net> Date: Sun, 02 Apr 2017 09:24:56 +0200 In-Reply-To: <87vaqnxz8h.fsf@users.sourceforge.net> (npostavs's message of "Sat, 01 Apr 2017 23:30:38 -0400") Message-ID: <87wpb3p8zb.fsf@detlef> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Provags-ID: V03:K0:ESRSG+wRrExBNK4NTIg8D87vXc5DpWTqif/rqPOpBGZ/Fqu7r+e 1MDqumhn5D02pfSyaITHzD4TyJMHc7zD+pZS5jZZdWYMFEoQfSMtY1rl/K2fOdT+ZiyMT2b 36f95Hiy9QfjjMTObzqw7nphoYWw5qjGgDpDtg75bKA/jeCqpt6NAp6tvRhtuzHrfZZV17m J5ni7UOBYiu7MCZ63y+RQ== X-UI-Out-Filterresults: notjunk:1;V01:K0:/Fo1xFLEezs=:TAaL3aTRU0Fs/+IH62x4i2 IMoISRKu4zLe9Z+aMDFW+mNHV1oFNLpPFZhQZV2RZeOY/jv85Z6Rc4Z93piWpXiZe79bpm6F2 HyzXbTWvx2C3TAqn6HsBCHYDJbGhP72Wpt5cu8qKwi3cXARRf0pDDfjvKJpGvbrIVpXdLTMC6 8F/xRXrelvdYX5K1cYG5qZi7ZiqCLKDfCzFEw+nqqtE+VYAZ84Z276bkRBuMLOp6b7jRDC6Oz 5pZXsH6RBJPErm878OqE4xZDOi5ZhwJyrv/ty8AbHhH/xJQrrhVqnRTC4WFzxjrgy9nUACSHx QIkhhIpmVw8MP+s/w4u7ErdsrFxNfr7JwTxM3Z4qnsG4X50pg/5hLmo4Wm6Y4whdWcnK8j95P vMxTTMHhuBb0YT1jG/cQb/ZmqFs8O+wF7rYwdrRcnu91sUBT1AWsBN17hBnYKZDXlBFcpvb7Q Z+GeRaaWvouShkiWtIr5kOu76PB0Ej3MZbAK2ke732JGBdI6iKQCclLGseJI2mNo01HBaOUrH A/ZdDihlfX3/bRyptHXH12Vy1gt1FM+ejoA20kpS0T4+Lv3KrL+BIkjdrGV9xhpIHfWUnkE2c WYb+2ixvbUuOkk4tobWs1OE0bfRYGscXmDNSmy+xTmQb6jX/iKuWEEcAh1eQFgbC4qQ6dAAjw 760AjKHSUus2W3kXnlKCMzDnURAXJN0I4dWwWKM+BvKV0tDAo5Lcx0qJ4wDtbTMm6+pY58W8S PWjOmFqoD/YRGwsY1J/9DwrkpHVK/H2nCaQNnAWlwi42oMKmfcP9GMwP0vZxvodQGst3wCCfv dNj6DX9 X-Spam-Score: -3.5 (---) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.5 (---) npostavs@users.sourceforge.net writes: > --- a/src/callproc.c > +++ b/src/callproc.c > @@ -239,6 +239,7 @@ t (mix it with ordinary output), or a file name string. > Otherwise it waits for PROGRAM to terminate > and returns a numeric exit status or a signal description string. > If you quit, the process is killed with SIGINT, or SIGKILL if you quit again. > +The process runs in `default-directory'. That's not true if `default-directory' is remote. Best regards, Michael. From unknown Sun Aug 10 10:54:50 2025 X-Loop: help-debbugs@gnu.org Subject: bug#18515: 24.3; Documentation of `call-process' Resent-From: npostavs@users.sourceforge.net Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 02 Apr 2017 13:41:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 18515 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch To: Michael Albinus Cc: Eli Barzilay , 18515@debbugs.gnu.org Received: via spool by 18515-submit@debbugs.gnu.org id=B18515.149114043526542 (code B ref 18515); Sun, 02 Apr 2017 13:41:02 +0000 Received: (at 18515) by debbugs.gnu.org; 2 Apr 2017 13:40:35 +0000 Received: from localhost ([127.0.0.1]:56500 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cufkA-0006tx-Uz for submit@debbugs.gnu.org; Sun, 02 Apr 2017 09:40:35 -0400 Received: from mail-io0-f175.google.com ([209.85.223.175]:32809) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cufk8-0006tc-Gb; Sun, 02 Apr 2017 09:40:33 -0400 Received: by mail-io0-f175.google.com with SMTP id f84so61833521ioj.0; Sun, 02 Apr 2017 06:40:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version; bh=e0QSkMFYQBhdg/fSUNpKD7lJJGudwXfyeYxO38F7xUo=; b=jav4o+DzleL7U/JVHHk0kop4JWONnB4yiOybWXdMlBVo8EnnX+ZQTrUThI4M7qQ/V6 3Nm3qMdoBJb+i3jHc2rGZvN5Fkh+LJNSN6ZRCkCZJkYGBWjq2j5LCzGi3TnCeEUvr0OD T1KFHSzZEx4NmTjnuoI3K3Mz+dpYD8+CBNqEG8qyvtn25d1phdIla9nAlhhcujMWDsuq rGtvLZhAaII6DpbNhJacNTlHyFsIowKbH1/m4iG+Ef59Wf5VNJA6Vuzv/rgvWxIwM8U9 of+YAGIHRD61EJXJok97Rh4TSO8Bf9n1H9IgG7Q200aE5pO+xbyknYja4hDLq673I53I kj7w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:references:date :in-reply-to:message-id:user-agent:mime-version; bh=e0QSkMFYQBhdg/fSUNpKD7lJJGudwXfyeYxO38F7xUo=; b=ZPp6BCNhFaUASWvWpDTMQdy75izWvychmj7O+TParCPiZpHE2pmsIV9uTu79guLPYg 9pwQ6JRLSMxIYKB/mRUQEXSBGMCXacoXOfXhND9GhwN+i1FCIXOFSGCuGVpFDzuz0s7X HJW4a3YWmoSyq2dAy1QNrFGlZRQFOVGTVD7Bk2LhJTvATo0zS1P8lKlK83kTFTyvVJ+w KF5CBI6mDENw9IXSOrzgKBq2/Nn1/M9cupviHw3epEHhFOiQbxqUhqluelaE3NW5lByE wT3wWyScn2ndsggSqDK/rh8HM9jq/P3xicMpuOIcctR1kBTgQ5ucsUhKTOecU1F+xpAG rINA== X-Gm-Message-State: AFeK/H24QpeNiyzYrL3lIRobqGk/znvf5Y5vjp5jJRsbWnRSLf3GhEKJRJnpPbELq0NS6w== X-Received: by 10.107.153.9 with SMTP id b9mr12428214ioe.200.1491140426921; Sun, 02 Apr 2017 06:40:26 -0700 (PDT) Received: from zony ([45.2.7.65]) by smtp.googlemail.com with ESMTPSA id e20sm5745190itc.3.2017.04.02.06.40.25 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sun, 02 Apr 2017 06:40:25 -0700 (PDT) From: npostavs@users.sourceforge.net References: <21534.17398.640167.807129@home.barzilay.org> <87vaqnxz8h.fsf@users.sourceforge.net> <87wpb3p8zb.fsf@detlef> Date: Sun, 02 Apr 2017 09:41:48 -0400 In-Reply-To: <87wpb3p8zb.fsf@detlef> (Michael Albinus's message of "Sun, 02 Apr 2017 09:24:56 +0200") Message-ID: <87a87zx6xv.fsf@users.sourceforge.net> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.2 (gnu/linux) MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Spam-Score: -2.1 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.1 (--) --=-=-= Content-Type: text/plain retitle 18515 Document call-process behaviour with respect to default-directory quit Michael Albinus writes: >> +The process runs in `default-directory'. > > That's not true if `default-directory' is remote. Aha, good point. This is an important thing to document. --=-=-= Content-Type: text/x-diff Content-Disposition: inline; filename=v2-0001-Mention-that-processes-start-in-default-directory.patch Content-Description: patch >From 6c450de9b474f1eb6255f8474b3dc5c5be81b9c7 Mon Sep 17 00:00:00 2001 From: Noam Postavsky Date: Sat, 1 Apr 2017 23:15:46 -0400 Subject: [PATCH v2] Mention that processes start in default-directory (Bug#18515) * doc/lispref/processes.texi (Synchronous Processes): (Asynchronous Processes): * lisp/subr.el (start-process): * src/callproc.c (call-process): Mention that the subprocess starts in `default-directory' when local, suggest `start-file-process' and `process-file' otherwise. --- doc/lispref/processes.texi | 9 ++++++++- lisp/subr.el | 7 ++++++- src/callproc.c | 4 ++++ 3 files changed, 18 insertions(+), 2 deletions(-) diff --git a/doc/lispref/processes.texi b/doc/lispref/processes.texi index 2a79cc781f..c76ca025d9 100644 --- a/doc/lispref/processes.texi +++ b/doc/lispref/processes.texi @@ -301,7 +301,9 @@ Synchronous Processes This function calls @var{program} and waits for it to finish. The current working directory of the subprocess is -@code{default-directory}. +@code{default-directory} if that is local (as determined by +@code{unhandled-file-name-directory}), or "~" otherwise. If you want +to run a process in a remote directory use @code{process-file}. The standard input for the new process comes from file @var{infile} if @var{infile} is not @code{nil}, and from the null device otherwise. @@ -677,6 +679,11 @@ Asynchronous Processes The original argument list, modified with the actual connection information, is available via the @code{process-contact} function. + +The current working directory of the subprocess is +@code{default-directory} if that is local (as determined by +`unhandled-file-name-directory'), or "~" otherwise. If you want to +run a process in a remote direcotry use @code{start-file-process}. @end defun @defun make-pipe-process &rest args diff --git a/lisp/subr.el b/lisp/subr.el index ebac2e0ef5..472f931306 100644 --- a/lisp/subr.el +++ b/lisp/subr.el @@ -1970,7 +1970,12 @@ start-process If you want to separate standard output from standard error, use `make-process' or invoke the command through a shell and redirect -one of them using the shell syntax." +one of them using the shell syntax. + +The process runs in `default-directory' if that is local (as +determined by `unhandled-file-name-directory'), or \"~\" +otherwise. If you want to run a process in a remote directory +use `start-file-process'." (unless (fboundp 'make-process) (error "Emacs was compiled without subprocess support")) (apply #'make-process diff --git a/src/callproc.c b/src/callproc.c index 6d69e13757..a781e47b17 100644 --- a/src/callproc.c +++ b/src/callproc.c @@ -240,6 +240,10 @@ t (mix it with ordinary output), or a file name string. and returns a numeric exit status or a signal description string. If you quit, the process is killed with SIGINT, or SIGKILL if you quit again. +The process runs in `default-directory' if that is local (as +determined by `unhandled-file-name-directory'), or "~" otherwise. If +you want to run a process in a remote directory use `process-file'. + usage: (call-process PROGRAM &optional INFILE DESTINATION DISPLAY &rest ARGS) */) (ptrdiff_t nargs, Lisp_Object *args) { -- 2.11.1 --=-=-=-- From unknown Sun Aug 10 10:54:50 2025 X-Loop: help-debbugs@gnu.org Subject: bug#18515: 24.3; Documentation of `call-process' Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 02 Apr 2017 15:55:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 18515 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch To: npostavs@users.sourceforge.net Cc: eli@barzilay.org, michael.albinus@gmx.de, 18515@debbugs.gnu.org Reply-To: Eli Zaretskii Received: via spool by 18515-submit@debbugs.gnu.org id=B18515.149114847528441 (code B ref 18515); Sun, 02 Apr 2017 15:55:02 +0000 Received: (at 18515) by debbugs.gnu.org; 2 Apr 2017 15:54:35 +0000 Received: from localhost ([127.0.0.1]:57663 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cuhpq-0007Of-OP for submit@debbugs.gnu.org; Sun, 02 Apr 2017 11:54:34 -0400 Received: from eggs.gnu.org ([208.118.235.92]:42026) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cuhpp-0007OR-FZ for 18515@debbugs.gnu.org; Sun, 02 Apr 2017 11:54:34 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cuhpj-0001c7-9X for 18515@debbugs.gnu.org; Sun, 02 Apr 2017 11:54:28 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-0.0 required=5.0 tests=BAYES_20,RP_MATCHES_RCVD autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:59292) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cuhpj-0001bx-69; Sun, 02 Apr 2017 11:54:27 -0400 Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:1518 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1cuhph-0001St-Qf; Sun, 02 Apr 2017 11:54:26 -0400 Date: Sun, 02 Apr 2017 18:54:29 +0300 Message-Id: <831stareiy.fsf@gnu.org> From: Eli Zaretskii In-reply-to: <87a87zx6xv.fsf@users.sourceforge.net> (npostavs@users.sourceforge.net) References: <21534.17398.640167.807129@home.barzilay.org> <87vaqnxz8h.fsf@users.sourceforge.net> <87wpb3p8zb.fsf@detlef> <87a87zx6xv.fsf@users.sourceforge.net> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-Spam-Score: -5.0 (-----) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.0 (-----) > From: npostavs@users.sourceforge.net > Date: Sun, 02 Apr 2017 09:41:48 -0400 > Cc: Eli Barzilay , 18515@debbugs.gnu.org > > retitle 18515 Document call-process behaviour with respect to default-directory > quit > > Michael Albinus writes: > > >> +The process runs in `default-directory'. > > > > That's not true if `default-directory' is remote. > > Aha, good point. This is an important thing to document. I think at least the manual should say that the default-directory alluded to here is that of the buffer which is current when the respective functions are called. From unknown Sun Aug 10 10:54:50 2025 X-Loop: help-debbugs@gnu.org Subject: bug#18515: 24.3; Documentation of `call-process' Resent-From: npostavs@users.sourceforge.net Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 02 Apr 2017 16:25:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 18515 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch To: Eli Zaretskii Cc: eli@barzilay.org, michael.albinus@gmx.de, 18515@debbugs.gnu.org Received: via spool by 18515-submit@debbugs.gnu.org id=B18515.149115027831203 (code B ref 18515); Sun, 02 Apr 2017 16:25:02 +0000 Received: (at 18515) by debbugs.gnu.org; 2 Apr 2017 16:24:38 +0000 Received: from localhost ([127.0.0.1]:57681 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cuiIw-00087D-82 for submit@debbugs.gnu.org; Sun, 02 Apr 2017 12:24:38 -0400 Received: from mail-it0-f50.google.com ([209.85.214.50]:36044) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cuiIu-00086z-FN for 18515@debbugs.gnu.org; Sun, 02 Apr 2017 12:24:36 -0400 Received: by mail-it0-f50.google.com with SMTP id e75so35495020itd.1 for <18515@debbugs.gnu.org>; Sun, 02 Apr 2017 09:24:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version; bh=V6QsE0TwkUBu5msjcQ1xoAikvCFjwtn4n54RO9/+014=; b=YiD+kj0TcT+tquxcBrFDFhIDh9VreCWrFnGQqrA6DeFxGgBennNDQoHHk014LyV33P slGpt6/d4qmshljSCaDH0uVvkr/ZeccckeX1mC3TsREydhgkuG3PoL9+RE9+ULAktrCD uBKWmzvjMth0OAgOsSkjAkeAQP2wy/adYaKAPiWwLjWDr1zOMpP+aTynK3JI5bdiqvSQ 0aX7aBHqKHmNYqeUfsVglV+1VN43o0Sj9ehflOnpY28d7NPTeOqqVdHv84346DH6RM3c 2vmi6YhGGxj9FSxchQDSff0MwV34nLNHH5j0MW7nzMCDDifHZstFIDEArmujU3HVWyHf d4GQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:references:date :in-reply-to:message-id:user-agent:mime-version; bh=V6QsE0TwkUBu5msjcQ1xoAikvCFjwtn4n54RO9/+014=; b=lVlpe2JN7D0GHhNJWrEwInsZUZOZUjX419tGYQZ8IGXDZyhBZkWpor7MFY50er+OQn NMxRJr4vUoid6Ldk0FoY2QgcJtGOzttXB0btuZ4kGw0JE8+HGH+H7Ga8VorXsFz2Runx HbUYeDRnKXNl5egDC+AJXmIk4dkb1jQmw+6b7qGJy0l+bU+g6zNc2a6g35pYv/ndPubj T9vSOPoEDUOMReVYV338JpXtVbH3oKwpOmAL47xs3Hsmm4JytRSBlz/2p+okGZEKVgeI PUbWmDCGBA8p4I/G7UkCRS0/hKVgabh+eZvIQRAi/G6eiTvrdjWn+L3PWBJ1iS9/m6KT 6v8w== X-Gm-Message-State: AFeK/H1AShuT8Wb9se0uKCVUbNYrSxQAet5bnLTKbTXZzNUoRro55HxC po58MOlnPSVg+Q== X-Received: by 10.36.28.130 with SMTP id c124mr6640487itc.17.1491150270984; Sun, 02 Apr 2017 09:24:30 -0700 (PDT) Received: from zony ([45.2.7.65]) by smtp.googlemail.com with ESMTPSA id t7sm6407376ioe.22.2017.04.02.09.24.29 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sun, 02 Apr 2017 09:24:30 -0700 (PDT) From: npostavs@users.sourceforge.net References: <21534.17398.640167.807129@home.barzilay.org> <87vaqnxz8h.fsf@users.sourceforge.net> <87wpb3p8zb.fsf@detlef> <87a87zx6xv.fsf@users.sourceforge.net> <831stareiy.fsf@gnu.org> Date: Sun, 02 Apr 2017 12:25:52 -0400 In-Reply-To: <831stareiy.fsf@gnu.org> (Eli Zaretskii's message of "Sun, 02 Apr 2017 18:54:29 +0300") Message-ID: <87wpb2wzcf.fsf@users.sourceforge.net> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.2 (gnu/linux) MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Spam-Score: -0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.0 (/) --=-=-= Content-Type: text/plain Eli Zaretskii writes: >> >> +The process runs in `default-directory'. >> > >> > That's not true if `default-directory' is remote. >> >> Aha, good point. This is an important thing to document. > > I think at least the manual should say that the default-directory > alluded to here is that of the buffer which is current when the > respective functions are called. Hmm, seems a bit obvious to me, but okay. --=-=-= Content-Type: text/x-diff Content-Disposition: inline; filename=v3-0001-Mention-that-processes-start-in-default-directory.patch Content-Description: patch >From d750ec77e3f15c1cf4e94e288e097bc75904e5bd Mon Sep 17 00:00:00 2001 From: Noam Postavsky Date: Sat, 1 Apr 2017 23:15:46 -0400 Subject: [PATCH v3] Mention that processes start in default-directory (Bug#18515) * doc/lispref/processes.texi (Synchronous Processes): (Asynchronous Processes): * lisp/subr.el (start-process): * src/callproc.c (call-process): Mention that the subprocess starts in `default-directory' when local, suggest `start-file-process' and `process-file' otherwise. --- doc/lispref/processes.texi | 13 +++++++++++-- lisp/subr.el | 7 ++++++- src/callproc.c | 4 ++++ 3 files changed, 21 insertions(+), 3 deletions(-) diff --git a/doc/lispref/processes.texi b/doc/lispref/processes.texi index 2a79cc781f..2acb7c99e0 100644 --- a/doc/lispref/processes.texi +++ b/doc/lispref/processes.texi @@ -300,8 +300,11 @@ Synchronous Processes @defun call-process program &optional infile destination display &rest args This function calls @var{program} and waits for it to finish. -The current working directory of the subprocess is -@code{default-directory}. +The current working directory of the subprocess is set to the current +buffer's value of @code{default-directory} if that is local (as +determined by @code{unhandled-file-name-directory}), or "~" otherwise. +If you want to run a process in a remote directory use +@code{process-file}. The standard input for the new process comes from file @var{infile} if @var{infile} is not @code{nil}, and from the null device otherwise. @@ -677,6 +680,12 @@ Asynchronous Processes The original argument list, modified with the actual connection information, is available via the @code{process-contact} function. + +The current working directory of the subprocess is set to the current +buffer's value of @code{default-directory} if that is local (as +determined by `unhandled-file-name-directory'), or "~" otherwise. If +you want to run a process in a remote direcotry use +@code{start-file-process}. @end defun @defun make-pipe-process &rest args diff --git a/lisp/subr.el b/lisp/subr.el index ebac2e0ef5..472f931306 100644 --- a/lisp/subr.el +++ b/lisp/subr.el @@ -1970,7 +1970,12 @@ start-process If you want to separate standard output from standard error, use `make-process' or invoke the command through a shell and redirect -one of them using the shell syntax." +one of them using the shell syntax. + +The process runs in `default-directory' if that is local (as +determined by `unhandled-file-name-directory'), or \"~\" +otherwise. If you want to run a process in a remote directory +use `start-file-process'." (unless (fboundp 'make-process) (error "Emacs was compiled without subprocess support")) (apply #'make-process diff --git a/src/callproc.c b/src/callproc.c index 6d69e13757..a781e47b17 100644 --- a/src/callproc.c +++ b/src/callproc.c @@ -240,6 +240,10 @@ t (mix it with ordinary output), or a file name string. and returns a numeric exit status or a signal description string. If you quit, the process is killed with SIGINT, or SIGKILL if you quit again. +The process runs in `default-directory' if that is local (as +determined by `unhandled-file-name-directory'), or "~" otherwise. If +you want to run a process in a remote directory use `process-file'. + usage: (call-process PROGRAM &optional INFILE DESTINATION DISPLAY &rest ARGS) */) (ptrdiff_t nargs, Lisp_Object *args) { -- 2.11.1 --=-=-=-- From unknown Sun Aug 10 10:54:50 2025 X-Loop: help-debbugs@gnu.org Subject: bug#18515: 24.3; Documentation of `call-process' Resent-From: npostavs@users.sourceforge.net Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 06 Apr 2017 23:20:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 18515 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch To: Eli Zaretskii Cc: eli@barzilay.org, michael.albinus@gmx.de, 18515@debbugs.gnu.org Received: via spool by 18515-submit@debbugs.gnu.org id=B18515.149152076725268 (code B ref 18515); Thu, 06 Apr 2017 23:20:02 +0000 Received: (at 18515) by debbugs.gnu.org; 6 Apr 2017 23:19:27 +0000 Received: from localhost ([127.0.0.1]:35452 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cwGgZ-0006ZP-6N for submit@debbugs.gnu.org; Thu, 06 Apr 2017 19:19:27 -0400 Received: from mail-io0-f194.google.com ([209.85.223.194]:33886) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cwGgX-0006Z6-1H; Thu, 06 Apr 2017 19:19:25 -0400 Received: by mail-io0-f194.google.com with SMTP id n76so5966396ioe.1; Thu, 06 Apr 2017 16:19:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version; bh=JvYikSozJ//fCTBh2oh62fFic3eGG4oYePnbQMLQhzE=; b=aM5iv/glCCqOnQV6+CiJU1/+FOmesOTi08OplgXce1YK62TPRiF6+t26ZZqVIuSv7x 9gDygaMc3LLsC68zHTwZSQyDOcbScB2YPf6tu+ecIDmVPNFIavjNsf75JggmZ6lv+xI4 hNF56puVjacOSvbvdUk5ttsuvfN71cMLhcEiw5cTIQ5Dq1dFwP8Frmr040sWwfywaNOQ iGYA3w7S8u4KhYpIO1D4J2xfReHAPNXbU4AZ/AEHfEaiPgk1My6OH9/6yWYa+XfA2cux dFrUirMZlYlgfR23u360DoYvy9w7bM8Mg8CU0pJK35ouaUwffBHd9D1Ud8GhL1n0+4ku Lptw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:references:date :in-reply-to:message-id:user-agent:mime-version; bh=JvYikSozJ//fCTBh2oh62fFic3eGG4oYePnbQMLQhzE=; b=dRDyDVyQksqe+/u68T9PUNygW2f4oFwW49cLc2oYdcv+mmaAZAj7/jHY5/sK8Pm+uh LNFlttVnymUUbnTmCXaimtLyBk+YrGmN4nakkndeVI4WPnJCfxM9uSe3xp2YxJBcjasT k0kNObMV8r79CwaqMdO+qM0RurJbiQrF7nzEmX0xUDXJL+IjwA6YOJi6faDLbgDx2HcM lipjRYiRakuwrlbLKtKqlUtLIh9fJaKqnFIOR9SkBgWMuzQw1gOxmAiUpS5LH7D0jdWo eZYsWZdwf0yBhHuHjcGiYdZ2hiIhg51M8rJ1R2xR03xIoi2WzJq1mJp2+D6gK/sIVq// vYig== X-Gm-Message-State: AFeK/H2Me4J8gqDt0bYtgQ01W1JHstCB7uFLBg8CoLU3pelMCfPmjHjEi2w61omp3vgG9A== X-Received: by 10.107.138.14 with SMTP id m14mr39178176iod.235.1491520759669; Thu, 06 Apr 2017 16:19:19 -0700 (PDT) Received: from zony ([45.2.7.65]) by smtp.googlemail.com with ESMTPSA id g204sm10974449ita.31.2017.04.06.16.19.18 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 06 Apr 2017 16:19:19 -0700 (PDT) From: npostavs@users.sourceforge.net References: <21534.17398.640167.807129@home.barzilay.org> <87vaqnxz8h.fsf@users.sourceforge.net> <87wpb3p8zb.fsf@detlef> <87a87zx6xv.fsf@users.sourceforge.net> <831stareiy.fsf@gnu.org> <87wpb2wzcf.fsf@users.sourceforge.net> Date: Thu, 06 Apr 2017 19:20:43 -0400 In-Reply-To: <87wpb2wzcf.fsf@users.sourceforge.net> (npostavs@users.sourceforge.net's message of "Sun, 02 Apr 2017 12:25:52 -0400") Message-ID: <87inmhunqs.fsf@users.sourceforge.net> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -2.1 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.1 (--) tags 18515 fixed close 18515 25.2 quit npostavs@users.sourceforge.net writes: > Eli Zaretskii writes: > >>> >> +The process runs in `default-directory'. >>> > >>> > That's not true if `default-directory' is remote. >>> >>> Aha, good point. This is an important thing to document. >> >> I think at least the manual should say that the default-directory >> alluded to here is that of the buffer which is current when the >> respective functions are called. > > Hmm, seems a bit obvious to me, but okay. Pushed to emacs-25 [1: c7ed57eaef]. 1: 2017-04-06 18:50:54 -0400 c7ed57eaef46ed74ce926fc05dec9eaa5737f3d9 Mention that processes start in default-directory (Bug#18515)