From unknown Tue Jun 17 22:09:04 2025 X-Loop: help-debbugs@gnu.org Subject: bug#42704: Documentation of call-process Resent-From: Gregory Heytings Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 04 Aug 2020 09:30:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 42704 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: 42704@debbugs.gnu.org X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.15965333867312 (code B ref -1); Tue, 04 Aug 2020 09:30:01 +0000 Received: (at submit) by debbugs.gnu.org; 4 Aug 2020 09:29:46 +0000 Received: from localhost ([127.0.0.1]:46817 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1k2tGU-0001ts-Fv for submit@debbugs.gnu.org; Tue, 04 Aug 2020 05:29:46 -0400 Received: from lists.gnu.org ([209.51.188.17]:37504) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1k2tGS-0001tj-6O for submit@debbugs.gnu.org; Tue, 04 Aug 2020 05:29:45 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:46392) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1k2tGR-0007fD-WB for bug-gnu-emacs@gnu.org; Tue, 04 Aug 2020 05:29:44 -0400 Received: from mx.sdf.org ([205.166.94.24]:63623) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1k2tGQ-0000iw-7b for bug-gnu-emacs@gnu.org; Tue, 04 Aug 2020 05:29:43 -0400 Received: from sdf.org (IDENT:ghe@faeroes.freeshell.org [205.166.94.9]) by mx.sdf.org (8.15.2/8.14.5) with ESMTPS id 0749TVOR018537 (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256 bits) verified NO); Tue, 4 Aug 2020 09:29:31 GMT Received: (from ghe@localhost) by sdf.org (8.15.2/8.12.8/Submit) id 0749TVSL020528; Tue, 4 Aug 2020 09:29:31 GMT Date: Tue, 4 Aug 2020 11:29:26 +0200 (CEST) From: Gregory Heytings Message-ID: User-Agent: Alpine 2.21 (NEB 202 2017-01-01) MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset=US-ASCII Received-SPF: pass client-ip=205.166.94.24; envelope-from=ghe@sdf.org; helo=mx.sdf.org X-detected-operating-system: by eggs.gnu.org: First seen = 2020/08/04 05:29:36 X-ACL-Warn: Detected OS = ??? X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.4 (-) 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.4 (--) The documentation of 'call-process' doe not make reference to the variable 'exec-path'. It should. Using '(setenv "PATH" "...")' does not have the expected effect for 'call-process'. The environment variable "PATH" is correctly updated, the variable 'process-environment' is also updated, but what 'call-process' actually uses to locate the executable is the variable 'exec-path'. This should be clearly stated in the documentation. From unknown Tue Jun 17 22:09:04 2025 X-Loop: help-debbugs@gnu.org Subject: bug#42704: Documentation of call-process Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 04 Aug 2020 14:33:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 42704 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Gregory Heytings Cc: 42704@debbugs.gnu.org Received: via spool by 42704-submit@debbugs.gnu.org id=B42704.159655156417030 (code B ref 42704); Tue, 04 Aug 2020 14:33:02 +0000 Received: (at 42704) by debbugs.gnu.org; 4 Aug 2020 14:32:44 +0000 Received: from localhost ([127.0.0.1]:48776 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1k2xzf-0004Qc-Tb for submit@debbugs.gnu.org; Tue, 04 Aug 2020 10:32:44 -0400 Received: from eggs.gnu.org ([209.51.188.92]:38520) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1k2xze-0004QR-TM for 42704@debbugs.gnu.org; Tue, 04 Aug 2020 10:32:43 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:36910) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1k2xzZ-0007Fr-IG; Tue, 04 Aug 2020 10:32:37 -0400 Received: from [176.228.60.248] (port=3753 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1k2xzY-0007HO-DE; Tue, 04 Aug 2020 10:32:37 -0400 Date: Tue, 04 Aug 2020 17:32:25 +0300 Message-Id: <83pn86a3d2.fsf@gnu.org> From: Eli Zaretskii In-Reply-To: (bug-gnu-emacs@gnu.org) References: X-Spam-Score: -2.3 (--) 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.3 (---) > Date: Tue, 4 Aug 2020 11:29:26 +0200 (CEST) > From: Gregory Heytings via "Bug reports for GNU Emacs, > the Swiss army knife of text editors" > > The documentation of 'call-process' doe not make reference to the variable > 'exec-path'. It should. The ELisp manual says that, see the node "Subprocess Creation". This isn't specific to call-process, that variable is used by all the functions that create subprocesses. > Using '(setenv "PATH" "...")' does not have the expected effect for > 'call-process'. The environment variable "PATH" is correctly updated, the > variable 'process-environment' is also updated, but what 'call-process' > actually uses to locate the executable is the variable 'exec-path'. The changes to the environment variables only affect the environment passed to subprocesses, they don't affect the environment of the Emacs process itself. From unknown Tue Jun 17 22:09:04 2025 X-Loop: help-debbugs@gnu.org Subject: bug#42704: Documentation of call-process Resent-From: Gregory Heytings Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 04 Aug 2020 17:49:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 42704 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: 42704@debbugs.gnu.org Received: via spool by 42704-submit@debbugs.gnu.org id=B42704.159656328428590 (code B ref 42704); Tue, 04 Aug 2020 17:49:02 +0000 Received: (at 42704) by debbugs.gnu.org; 4 Aug 2020 17:48:04 +0000 Received: from localhost ([127.0.0.1]:49082 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1k312i-0007R4-39 for submit@debbugs.gnu.org; Tue, 04 Aug 2020 13:48:04 -0400 Received: from mx.sdf.org ([205.166.94.24]:59440) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1k312d-0007Qd-Tu for 42704@debbugs.gnu.org; Tue, 04 Aug 2020 13:48:02 -0400 Received: from sdf.org (IDENT:ghe@faeroes.freeshell.org [205.166.94.9]) by mx.sdf.org (8.15.2/8.14.5) with ESMTPS id 074HlwZs017364 (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256 bits) verified NO); Tue, 4 Aug 2020 17:47:59 GMT Received: (from ghe@localhost) by sdf.org (8.15.2/8.12.8/Submit) id 074HlwHj019803; Tue, 4 Aug 2020 17:47:58 GMT Date: Tue, 4 Aug 2020 19:47:55 +0200 (CEST) From: Gregory Heytings In-Reply-To: <83pn86a3d2.fsf@gnu.org> Message-ID: References: <83pn86a3d2.fsf@gnu.org> User-Agent: Alpine 2.21 (NEB 202 2017-01-01) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed 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: -1.0 (-) > >> The documentation of 'call-process' doe not make reference to the >> variable 'exec-path'. It should. > > The ELisp manual says that, see the node "Subprocess Creation". This > isn't specific to call-process, that variable is used by all the > functions that create subprocesses. > Indeed. I still believe that adding the sentence "If PROGRAM is not an absolute file name, the variable exec-path contains a list of directories to search." in the docstring of call-process (and a similar sentence in the docstrings of make-process and call-process-region) would be useful. > >> Using '(setenv "PATH" "...")' does not have the expected effect for >> 'call-process'. The environment variable "PATH" is correctly updated, >> the variable 'process-environment' is also updated, but what >> 'call-process' actually uses to locate the executable is the variable >> 'exec-path'. > > The changes to the environment variables only affect the environment > passed to subprocesses, they don't affect the environment of the Emacs > process itself. > Indeed. Creating a subprocess is in between the two (Emacs and the subprocess), and I at least would have expected that setting "PATH" would have changed the path in which the program executable is searched. Gregory From unknown Tue Jun 17 22:09:04 2025 X-Loop: help-debbugs@gnu.org Subject: bug#42704: Documentation of call-process Resent-From: Lars Ingebrigtsen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 21 Aug 2020 14:17:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 42704 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Gregory Heytings Cc: 42704@debbugs.gnu.org Received: via spool by 42704-submit@debbugs.gnu.org id=B42704.159801937216730 (code B ref 42704); Fri, 21 Aug 2020 14:17:02 +0000 Received: (at 42704) by debbugs.gnu.org; 21 Aug 2020 14:16:12 +0000 Received: from localhost ([127.0.0.1]:47941 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1k97pz-0004LX-Nh for submit@debbugs.gnu.org; Fri, 21 Aug 2020 10:16:11 -0400 Received: from quimby.gnus.org ([95.216.78.240]:44268) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1k97pw-0004D3-7C for 42704@debbugs.gnu.org; Fri, 21 Aug 2020 10:16:10 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date: References:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=0Hi8vC+pI+6NqTLYPNzRPjjq5m9GgxOElIJHlUP+R88=; b=CWmU54Ow/Ukxf4/H9RwoSBpNv3 RNwoFJORCZs8sXFCgxcY6u1GB1g6j0H/enW6+/6gEBkKb+hiUJidipM9Wnm3bWvAGTFeXFk+yC/Kq daVo2bXolSsFECuuOkjR+dQY2Q7yFa8iQBzVfgTlV+nGuwZiMiZbNW0rLIW71l9+IBhQ=; Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=xo) by quimby with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1k97pn-0005Or-7c; Fri, 21 Aug 2020 16:16:01 +0200 From: Lars Ingebrigtsen References: <83pn86a3d2.fsf@gnu.org> X-Now-Playing: Boris's _Love_: "Away From You" Date: Fri, 21 Aug 2020 16:15:57 +0200 In-Reply-To: (Gregory Heytings's message of "Tue, 4 Aug 2020 19:47:55 +0200 (CEST)") Message-ID: <87tuww2ig2.fsf@gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: Gregory Heytings writes: > Indeed. I still believe that adding the sentence "If PROGRAM is not > an absolute file name, the variable exec-path contains a list of > directories to search." in the docstring of call-process (and [...] Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] 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: -1.0 (-) Gregory Heytings writes: > Indeed. I still believe that adding the sentence "If PROGRAM is not > an absolute file name, the variable exec-path contains a list of > directories to search." in the docstring of call-process (and a > similar sentence in the docstrings of make-process and > call-process-region) would be useful. Makes sense to me, so I've now added a sentence about exec-path to those three doc strings. -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From debbugs-submit-bounces@debbugs.gnu.org Fri Aug 21 10:16:21 2020 Received: (at control) by debbugs.gnu.org; 21 Aug 2020 14:16:21 +0000 Received: from localhost ([127.0.0.1]:47944 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1k97q9-0004Ue-0b for submit@debbugs.gnu.org; Fri, 21 Aug 2020 10:16:21 -0400 Received: from quimby.gnus.org ([95.216.78.240]:44286) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1k97q3-0004KZ-VG for control@debbugs.gnu.org; Fri, 21 Aug 2020 10:16:16 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Subject:From:To:Message-Id:Date:Sender:Reply-To:Cc: MIME-Version:Content-Type:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=K0+6tIonOdjWz6ugOYDBuWmXRLuALl884Vc9Gf5hM28=; b=bfqZEPei1x4U/Ir+J5D6TxQiR2 8zCrZVEQRaRs4IQ69TwIjy079wcoFfFEN+V2RBBIMVF1LljcwVcN3lNRocM/EhULV0Q49koAWAFpm eei5srinlM7G6K57ft2OKTfEtIl4B339+XUs5wFB2NWOyrRHWgUIsFgPQxVM1ZKY7MHk=; Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=xo) by quimby with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1k97pv-0005PP-R1 for control@debbugs.gnu.org; Fri, 21 Aug 2020 16:16:10 +0200 Date: Fri, 21 Aug 2020 16:16:06 +0200 Message-Id: <87sgcg2ift.fsf@gnus.org> To: control@debbugs.gnu.org From: Lars Ingebrigtsen Subject: control message for bug #42704 X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: tags 42704 fixed close 42704 28.1 quit Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: control 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: -1.0 (-) tags 42704 fixed close 42704 28.1 quit