When Emacs is started from a shortcut that uses runemacs.exe there is the opportunity to set the working directory using "start in". But if it's started by the client falling back to ALTERNATE_EDITOR this can't be used. My understanding is that occasionally the working directory is exposed in emacs, such as when starting an eshell.
On Thu, 17 Aug 2023 at 15:55, Eli Zaretskii <e...@gnu.org> wrote: > > > From: Joel Reicher <joel.reic...@gmail.com> > > Date: Thu, 17 Aug 2023 11:29:30 +1000 > > > > I recently discovered this startup option and I think it's just as > > useful in the value for ALTERNATE_EDITOR as it is for X (mentioned in > > the manual), since Windows is also a desktop environment. > > Please elaborate: I don't understand why you'd need to use --chdir on > MS-Windows, let alone need it badly enough to have that in the FAQ. > And why is ALTERNATE_EDITOR relevant here? >