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.help Subject: Re: Change in 28.1 in opening a file from grep results on Windows Date: Tue, 12 Jul 2022 20:09:23 +0300 Message-ID: <83o7xuw94s.fsf@gnu.org> References: <82y1wy8hrh.fsf@gmail.com> <83tu7mwbav.fsf@gnu.org> <82czea8e1w.fsf@gmail.com> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="13736"; mail-complaints-to="usenet@ciao.gmane.io" To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Tue Jul 12 19:10:00 2022 Return-path: Envelope-to: geh-help-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 1oBJOZ-0003QJ-PN for geh-help-gnu-emacs@m.gmane-mx.org; Tue, 12 Jul 2022 19:09:59 +0200 Original-Received: from localhost ([::1]:35678 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oBJOY-0004nk-MF for geh-help-gnu-emacs@m.gmane-mx.org; Tue, 12 Jul 2022 13:09:58 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:38634) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oBJO9-0004nL-JT for help-gnu-emacs@gnu.org; Tue, 12 Jul 2022 13:09:33 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:38568) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oBJO9-0005Iy-A6 for help-gnu-emacs@gnu.org; Tue, 12 Jul 2022 13:09:33 -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=LdBxN+LosC69tjwvIPjYmODTZ+JGbyg+Nb6T9zo/EQU=; b=NermfyfEq6Zh l77uBa60KpyN8hXDrzw+HsozfYisCShpxO0uhH0xnpu7zUdrgAozGtlwDIx+sWyyuc43SChbL8MDN wRyRgUB/ZY7DEfb4xQjtSL0aNxxjGpVUGiG4GnH/6hpnAgU2XOZbSojqCVvSq2NT2u2m029wzcSiz 5OzrF6zuv0saKXQtyXntP9QeRlA6bBPAH2HKWOeguO1744U47XXpWWp9tgJftW9jIzMGzv+iXPMol DXWjtk0AVNNehmhZUZoL37d5dNcCBuWr3f8evmPJWf35uO8MD2SpDkCgus2XaCBZw/WnA0YxVNeQ7 fM7wajbSBmu4vMsUP69KKw==; Original-Received: from [87.69.77.57] (port=1057 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 1oBJO8-00058O-Oj for help-gnu-emacs@gnu.org; Tue, 12 Jul 2022 13:09:33 -0400 In-Reply-To: <82czea8e1w.fsf@gmail.com> (message from Pascal Quesseveur on Tue, 12 Jul 2022 18:56:59 +0200) X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.io gmane.emacs.help:138444 Archived-At: > From: Pascal Quesseveur > Date: Tue, 12 Jul 2022 18:56:59 +0200 > > EZ> It is IME unusual to use literal UNCs in serious development on > EZ> MS-Windows, precisely because cmd.exe doesn't support that well, and > EZ> various commands will fail depending on how you invoke them and what > EZ> is the working directory when you do. Wherever I saw networked drive > EZ> used it was always via mapping them to a drive letter, and for a good > EZ> reason. > > EZ> So I still think this is the right solution, not even a workaround, > EZ> because the same problems will happen outside Emacs if you use cmd.exe > EZ> as your shell. > > When I use cmd, I follow the symbolic link and I don't get problems. I > use some IDEs which work fine also, the only problem is that regularly > they save the absolute path in the config files, but I can manage > that. > > It's still not very consistent in Emacs. If I open a dired buffer on > the linked directory, and open a file from the dired buffer, its path > is that of the linked directory. If I open a file from the compilation > buffer its path is that of the target directory. Which is why I asked what commands you tried that gave you trouble. Emacs assumes that the shell can access any valid file name. Since in this case the assumption is incorrect, things do break, and that is not a surprise. We could perhaps make fewer commands fail if we understand the issue better, but there's no chance we can solve it completely. Which is why I think using a drive letter is a better solution in the long run.