From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#55743: 28.1.50; No directory error in comp-run-async-workers Date: Thu, 02 Jun 2022 11:44:53 +0300 Message-ID: <83bkvbfo8q.fsf@gnu.org> References: <86y1yhsxin.fsf@mail.linkov.net> <83wne1h66x.fsf@gnu.org> <86wne1trce.fsf@mail.linkov.net> <83leuhgljn.fsf@gnu.org> <861qw97x41.fsf@mail.linkov.net> <83h754hbwf.fsf@gnu.org> <86a6aw2o4e.fsf@mail.linkov.net> <83o7zcf9kw.fsf@gnu.org> <861qw7zf6r.fsf@mail.linkov.net> <83ee07fq6y.fsf@gnu.org> <87czfr32ex.fsf@gnus.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="15111"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 55743@debbugs.gnu.org, juri@linkov.net To: Lars Ingebrigtsen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Jun 02 10:45:59 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 1nwgSs-0003fq-BV for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 02 Jun 2022 10:45:58 +0200 Original-Received: from localhost ([::1]:56224 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nwgSp-0005yh-8J for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 02 Jun 2022 04:45:55 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:37130) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nwgS3-0005xV-6Q for bug-gnu-emacs@gnu.org; Thu, 02 Jun 2022 04:45:16 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:58850) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nwgRy-0007np-HF for bug-gnu-emacs@gnu.org; Thu, 02 Jun 2022 04:45:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nwgRy-0007Az-Dp for bug-gnu-emacs@gnu.org; Thu, 02 Jun 2022 04:45:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 02 Jun 2022 08:45: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.165415949227551 (code B ref 55743); Thu, 02 Jun 2022 08:45:02 +0000 Original-Received: (at 55743) by debbugs.gnu.org; 2 Jun 2022 08:44:52 +0000 Original-Received: from localhost ([127.0.0.1]:52747 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nwgRo-0007AJ-Au for submit@debbugs.gnu.org; Thu, 02 Jun 2022 04:44:52 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:43732) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nwgRm-0007A4-I6 for 55743@debbugs.gnu.org; Thu, 02 Jun 2022 04:44:51 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:53640) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nwgRh-0007km-5P; Thu, 02 Jun 2022 04:44:45 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=zXZiJ5w6Pq3S/X+jAx+1kgaIJ0taEgE7YkGDfGbBuf0=; b=e0WXhXXibX9J T5RyniTjGeSr80ksSyUiou61+gtBTGnUvkX9yHWSrnD+lAqTv2So63qURMhqtR9II2DB3Dhbvh8Xw DBIMFbAYV/VPVCpjedQesOjWQrkVxUvgzCZcTmoC7JlnTuV7Cxp+tr2VHO8/DDB82RHgatr77yBmM yrov6jfkzGjetPR2LHaYzfXuxRu3SyJJSixPun3prxEaLEqKAWZrsvsbbNKHbfrOEA8h4YgfzsUBd b8KRqybXjQoqMfoikm0Xz9Y0vPBPozPCXlKYtQIS3gYJPew253OFQqUUsr3m62R0FetfaqhMovS0A hLkaxOBKNORhftN1gtruCQ==; Original-Received: from [87.69.77.57] (port=2962 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nwgRg-0001Tc-K7; Thu, 02 Jun 2022 04:44:44 -0400 In-Reply-To: <87czfr32ex.fsf@gnus.org> (message from Lars Ingebrigtsen on Thu, 02 Jun 2022 10:17:10 +0200) 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:233530 Archived-At: > From: Lars Ingebrigtsen > Cc: Juri Linkov , 55743@debbugs.gnu.org > Date: Thu, 02 Jun 2022 10:17:10 +0200 > > Eli Zaretskii writes: > > > We require that default-directory be valid whenever Emacs needs to run > > a subprocess. This is a basic requirement for all Lisp programs using > > this facility. Native compilation is not different from any other > > Lisp program that invokes a subprocess. > > Any asynchronous background process has to ensure that it starts from a > sensible directory -- not whatever default-directory that happens to be > in place in the current buffer. But what is the "sensible" directory in this case? I don't think we can know it, because what it is depends on many factors we cannot possibly take into consideration. IMO, it's the other way around: any Lisp program that could potentially trigger a subprocess, including compilation, should make sure the default-directory is always valid.