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 19:01:12 +0300 Message-ID: <83zghewcaf.fsf@gnu.org> References: <82y1wy8hrh.fsf@gmail.com> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="16431"; 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 18:08:50 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 1oBIRN-00048W-Le for geh-help-gnu-emacs@m.gmane-mx.org; Tue, 12 Jul 2022 18:08:49 +0200 Original-Received: from localhost ([::1]:54470 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oBIRM-0006M6-4x for geh-help-gnu-emacs@m.gmane-mx.org; Tue, 12 Jul 2022 12:08:48 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:51058) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oBIKC-0008OI-UJ for help-gnu-emacs@gnu.org; Tue, 12 Jul 2022 12:01:32 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:37520) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oBIKC-00011B-Il for help-gnu-emacs@gnu.org; Tue, 12 Jul 2022 12:01:24 -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=2UnEqwL2yPbUEXall3IcE2eNjXwhdfaTAQopAmWxhAM=; b=H9SepdWg/aKh gncAsL6HsjT7s89tZGXJB/BO6cgbCoW7j/deACvpforAJOWPQU9P8CQUfufbKfSTkeITwhcnweGVq SPuuCX2Wj6iU2NU39b3KFaVZDQ348SHlSX+I11LsN03k6ACmrBB6ans6KQLxorP2kmSUeEIKKd37x CU/0H4hUMRU/X6Ieb3qVpvCgKgsogr6j0XyV7HFoB3/ReeEnr8gzvg+yNMhSE/kKDKrQMM2kz98GS GdYx4RAlRUfPD20GZbSMWQ6oCnyf2HqmBhevxVMJVzpFdYJ4SYyIjdYwUBISgdja8hemuAOs+1k0k pdlIJu0SYxuTUWkPum1Z3Q==; Original-Received: from [87.69.77.57] (port=4832 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 1oBIKA-0008OO-Ph for help-gnu-emacs@gnu.org; Tue, 12 Jul 2022 12:01:24 -0400 In-Reply-To: <82y1wy8hrh.fsf@gmail.com> (message from Pascal Quesseveur on Tue, 12 Jul 2022 17:36:50 +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:138435 Archived-At: > From: Pascal Quesseveur > Date: Tue, 12 Jul 2022 17:36:50 +0200 > > Emacs 28.1 on Windows. > > c:\Users\Public\app is a symbolic link to either a remote directory on > a SMB server or a local disk > > I can open file c:\Users\Public\app\file1.c, and launch a command from > that file, eg an ant build > > I execute grep from c:\Users\Public\app\file1.c. When I open a file in > results buffer (eg file2.c), the file is opened with its true name, > \\smbserver\app\file2.c, and then I can not execute same command as > before on file1.c because cmd.exe is not allowed from a remote > directory. This is not entirely clear: what exactly happens when you do that? If you see error messages, please show the exact text of those messages. As a workaround: can you map the directory on the SMB server to a drive letter, and then change the symbolic link to use that drive letter instead of the literal \\smbserver\foo\ remote directory? If you do that, does it work around the problem?