GNU bug report logs -
#55743
28.1.50; No directory error in comp-run-async-workers
Previous Next
Full log
Message #44 received at 55743 <at> debbugs.gnu.org (full text, mbox):
> From: Lars Ingebrigtsen <larsi <at> gnus.org>
> Cc: Juri Linkov <juri <at> linkov.net>, 55743 <at> debbugs.gnu.org
> Date: Thu, 02 Jun 2022 10:17:10 +0200
>
> Eli Zaretskii <eliz <at> gnu.org> 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.
This bug report was last modified 3 years and 16 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.