From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Juri Linkov Newsgroups: gmane.emacs.bugs Subject: bug#55743: 28.1.50; No directory error in comp-run-async-workers Date: Wed, 01 Jun 2022 09:13:14 +0300 Organization: LINKOV.NET Message-ID: <861qw97x41.fsf@mail.linkov.net> References: <86y1yhsxin.fsf@mail.linkov.net> <83wne1h66x.fsf@gnu.org> <86wne1trce.fsf@mail.linkov.net> <83leuhgljn.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="13736"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (x86_64-pc-linux-gnu) Cc: 55743@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Jun 01 08:29:13 2022 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nwHqz-0003NC-5e for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 01 Jun 2022 08:29:13 +0200 Original-Received: from localhost ([::1]:47534 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nwHqs-0000wJ-Kg for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 01 Jun 2022 02:29:07 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:33296) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nwHpq-0000uy-Nm for bug-gnu-emacs@gnu.org; Wed, 01 Jun 2022 02:28:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:55630) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nwHpq-0006C5-Dx for bug-gnu-emacs@gnu.org; Wed, 01 Jun 2022 02:28:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nwHpq-0001Dp-Ae for bug-gnu-emacs@gnu.org; Wed, 01 Jun 2022 02:28:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Juri Linkov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 01 Jun 2022 06:28:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 55743 X-GNU-PR-Package: emacs Original-Received: via spool by 55743-submit@debbugs.gnu.org id=B55743.16540648694667 (code B ref 55743); Wed, 01 Jun 2022 06:28:02 +0000 Original-Received: (at 55743) by debbugs.gnu.org; 1 Jun 2022 06:27:49 +0000 Original-Received: from localhost ([127.0.0.1]:49526 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nwHpd-0001DD-04 for submit@debbugs.gnu.org; Wed, 01 Jun 2022 02:27:49 -0400 Original-Received: from relay6-d.mail.gandi.net ([217.70.183.198]:42711) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nwHpb-0001Cn-0x for 55743@debbugs.gnu.org; Wed, 01 Jun 2022 02:27:47 -0400 Original-Received: (Authenticated sender: juri@linkov.net) by mail.gandi.net (Postfix) with ESMTPSA id 19D5FC000D; Wed, 1 Jun 2022 06:27:39 +0000 (UTC) In-Reply-To: <83leuhgljn.fsf@gnu.org> (Eli Zaretskii's message of "Wed, 01 Jun 2022 05:33:16 +0300") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list 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: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:233479 Archived-At: >> >> and why comp-run-async-workers tries to run a process in such arbitrary invalid dirs. >> > >> > It is not comp-run-async-workers that does it, it's the low-level >> > infrastructure in subroutines of make-process: it makes sure the >> > directory in which the process will run is valid, and if it isn't >> > signals an error. >> >> Shouldn't native compilation run in the directory where the emacs >> source files are located instead of running in the default directory >> of an arbitrary buffer that might be invalid? > > No, because native compilation could be invoked to compile a file that > has nothing to do with the Emacs source tree, e.g., some file of the > user or some 3rd-party package installed in some arbitrary place. Still, shouldn't it run compilation in the same directory where that file is located? Isn't this better than running compilation in a random dir from a random buffer?