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: Wed, 01 Jun 2022 22:49:19 +0300 Message-ID: <83o7zcf9kw.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> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="6668"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 55743@debbugs.gnu.org To: Juri Linkov Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Jun 01 21:50:12 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 1nwUM7-0001Y8-Lp for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 01 Jun 2022 21:50:11 +0200 Original-Received: from localhost ([::1]:33936 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nwUM6-0005Zi-CP for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 01 Jun 2022 15:50:10 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:45586) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nwULy-0005ZE-Oj for bug-gnu-emacs@gnu.org; Wed, 01 Jun 2022 15:50:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:58037) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nwULy-0000v1-5g for bug-gnu-emacs@gnu.org; Wed, 01 Jun 2022 15:50:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nwULy-0006Vg-4H for bug-gnu-emacs@gnu.org; Wed, 01 Jun 2022 15:50: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: Wed, 01 Jun 2022 19:50: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.165411295924962 (code B ref 55743); Wed, 01 Jun 2022 19:50:02 +0000 Original-Received: (at 55743) by debbugs.gnu.org; 1 Jun 2022 19:49:19 +0000 Original-Received: from localhost ([127.0.0.1]:51934 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nwULH-0006UY-Dn for submit@debbugs.gnu.org; Wed, 01 Jun 2022 15:49:19 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:52098) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nwULF-0006UJ-Dw for 55743@debbugs.gnu.org; Wed, 01 Jun 2022 15:49:17 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:42946) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nwUL9-0000oE-U4; Wed, 01 Jun 2022 15:49:11 -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=AZyQaFdUIe3d93N5ytzCiP3RHjDFKspPYXO2BfwJp+s=; b=l6dAtq5f/JkJ ta06GrdwiCLEbBUMrCP61OPGUbAi7giaW8FDGmgMKJZjX2L2xtNeBtTcG1vXaCyrodGGJqjQY49er cnNQYcIWncNvLT0Nvnb7wDMhczMcoC7pJINIPhEwa0VQU0Xh6cyvZZx5g5Ud5wficDdi7ocA6wlSE 46K4pGLTjugvj+kpQW2Vab0qhw71K3WGCvwSQQz4lpsxbdKPt9l4LRlS7YYHsY5OiyfEXzNm2r1s4 m/D5B36h7nyywHyDvExFLwnnsAnJ/DpWVnYbsXSbOP6L9ySNmD76PMLlbJ136kxOs7ByPD62PMG0o DIDsKqYyoiP13TATBZxaSg==; Original-Received: from [87.69.77.57] (port=2952 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 1nwUL9-0003Nk-DL; Wed, 01 Jun 2022 15:49:11 -0400 In-Reply-To: <86a6aw2o4e.fsf@mail.linkov.net> (message from Juri Linkov on Wed, 01 Jun 2022 22:13:37 +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:233509 Archived-At: > From: Juri Linkov > Cc: 55743@debbugs.gnu.org > Date: Wed, 01 Jun 2022 22:13:37 +0300 > > >> 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? > > > > No, it isn't better, because the directory should be set by the > > caller. The compilation primitive cannot second-guess what the caller > > meant. For example, the file to be compiled could load other files, > > and load-path could mention the current directory in some relative > > form; or the directory of the file could not be chdir'ed into, but > > files in it could be accessed; or some VCS could be involved (so you > > need to be in the VCS repository), or something else. make-process > > uses the default-directory of the current buffer because making sure > > that directory is the correct one is left to the caller, and it makes > > it easy for the caller to ensure the compilation runs in the correct > > directory. > > I don't understand who is the caller? The user? The user visits > an non-existent directory, by e.g. `C-x C-f /bla/bla/bla', then > emacs compilation kicks in using that directory, and signals the error. Please tell how this case is different from the one below: emacs -Q M-: (setq default-directory "/non-existent/foo/bar") RET M-! ls RET You get the same error about "setting current directory". Do yopu think it's a bug in M-! ? > If this is the intended behavior, then I guess this bug report can be closed, > since I fixed the non-existent directory case in *Completions*. Thanks, I think this can indeed be closed.