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: Function to know weither a dir is local or remote Date: Thu, 20 Oct 2022 13:27:52 +0300 Message-ID: <83ilkeyel3.fsf@gnu.org> References: <825ygfngbw.fsf@gmail.com> <821qr2oqu2.fsf@gmail.com> <83k04uyiou.fsf@gnu.org> <82wn8un8h9.fsf@gmail.com> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="23001"; 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 Thu Oct 20 12:43:52 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 1olT1k-0005j4-LI for geh-help-gnu-emacs@m.gmane-mx.org; Thu, 20 Oct 2022 12:43:52 +0200 Original-Received: from localhost ([::1]:49388 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1olT1Z-0001at-P1 for geh-help-gnu-emacs@m.gmane-mx.org; Thu, 20 Oct 2022 06:43:46 -0400 Original-Received: from [::1] (helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1olT0t-0001Vm-VE for geh-help-gnu-emacs@m.gmane-mx.org; Thu, 20 Oct 2022 06:43:00 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:35742) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1olSmO-0000BL-1G for help-gnu-emacs@gnu.org; Thu, 20 Oct 2022 06:28:02 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:46812) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1olSmN-0000E1-Fv for help-gnu-emacs@gnu.org; Thu, 20 Oct 2022 06:27:59 -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=l8Vo00+dz9o7ElANhlITAymSeXThih8WiA5rAubwuBE=; b=B1CN/BSRr5Qc srawpnY8TiqrI63EpJfAMskTfdV5vcz3LraH0IIV3Rox/nO3LOFcdcjSP4VP7P5DD5WnVXkUqlYvu hmXG5N2hsxMLWFFxmVuQJDbhhBpyoTP64lIJ8mUx1ydHpKmQO4tPi/om1VUYztrpEm7XWxdGVVqGD QvX97LjEcdqsO+ypwO1OkCc+EysIDZUuQ/sORVpU38fWkmtEHpbQs64tmYPR6IeHJWk1dFDTU7I4e ciOvsnn7248BLtH18hyWtgb8dn0gkgGRSFCzQpfPiF3g0GYjJ2rE+Nf0uyrPc1SZ/YW0nCkZl2SzP R23O6Vh5K+ulEPUP2iX30Q==; Original-Received: from [87.69.77.57] (port=4371 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 1olSmL-0001WN-EL for help-gnu-emacs@gnu.org; Thu, 20 Oct 2022 06:27:59 -0400 In-Reply-To: <82wn8un8h9.fsf@gmail.com> (message from Pascal Quesseveur on Thu, 20 Oct 2022 11:35:14 +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:140191 Archived-At: > From: Pascal Quesseveur > Date: Thu, 20 Oct 2022 11:35:14 +0200 > > >"EZ" == Eli Zaretskii writes: > > EZ> Please show a recipe starting from "emacs -Q" where > EZ> file-remote-p doesn't work as advertised. > > emacs 28.1 on Windows: > > (file-remote-p "C:/Users/Public/Applis/appli") -> nil > (file-truename "C:/Users/Public/Applis/appli") -> //server/applis/appli > (file-remote-p (file-truename "C:/Users/Public/Applis/appli")) -> nil These aren't remote file names. Why did you expect file-remote-p to return non-nil for a UNC? A UNC doesn't have to be on a remote computer. What is the specific problem for which you needed to distinguish between a file shared by another computer and a file on a local drive?