From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Newsgroups: gmane.emacs.help Subject: Re: Function to know weither a dir is local or remote Date: Tue, 25 Oct 2022 19:37:09 +0200 Message-ID: References: <821qr2oqu2.fsf@gmail.com> <83k04uyiou.fsf@gnu.org> <82wn8un8h9.fsf@gmail.com> <83ilkeyel3.fsf@gnu.org> <82sfjimz8v.fsf@gmail.com> <834jvyxygn.fsf@gnu.org> <82o7u5r53s.fsf@gmail.com> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="JlTMv0QSpFx/rd70" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="28924"; 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 Oct 25 19:38:01 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 1onNsG-0007Bo-Uu for geh-help-gnu-emacs@m.gmane-mx.org; Tue, 25 Oct 2022 19:38:00 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1onNrZ-0002MR-Uk; Tue, 25 Oct 2022 13:37:17 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1onNrY-0002IF-EH for help-gnu-emacs@gnu.org; Tue, 25 Oct 2022 13:37:16 -0400 Original-Received: from mail.tuxteam.de ([5.199.139.25]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1onNrW-0002Gt-7r for help-gnu-emacs@gnu.org; Tue, 25 Oct 2022 13:37:16 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=tuxteam.de; s=mail; h=From:In-Reply-To:Content-Type:MIME-Version:References:Message-ID: Subject:To:Date:Sender:Reply-To:Cc:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=lckDMrJSavcDZ9jc/VQ+wHsZWzq4JvZ6udm3N5QS7pY=; b=AXmwEBpCsl8upj4eaTrIaUe971 Rb5iHySrfG1SQriYZigxj7WUPcECN0ICv0ZX44UGZZoWN7zBq2QzVdAfCLLg6RW4+Jix6wND7yJAm G6tDJNy7OghnfcBfS6kIQChdh/2OfWh4g+QkZwcdIzzT6dur2S19Jw0e18MDACf2uBPOT0T00Q+FG iDHFTDuBvpD+MMNEaaoKfK8AFiROdvvTfFZ7+opdBW/8FXi4y6zi3Z2FyzYVVyErD6f/ecDkODQkz UWbeHPd+9CZUMknhxcNzy1pLCMhqLeOVf+YKri9by/KQz8uviKvMqiZ9U9dzZXj7KBHo2i6xltU/E g/ez3D1g==; Original-Received: from tomas by mail.tuxteam.de with local (Exim 4.94.2) (envelope-from ) id 1onNrR-0002pP-8f for help-gnu-emacs@gnu.org; Tue, 25 Oct 2022 19:37:09 +0200 Content-Disposition: inline In-Reply-To: Received-SPF: pass client-ip=5.199.139.25; envelope-from=tomas@tuxteam.de; helo=mail.tuxteam.de X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action 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: , Original-Sender: "help-gnu-emacs" Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.help:140377 Archived-At: --JlTMv0QSpFx/rd70 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Oct 25, 2022 at 01:01:14PM -0400, Stefan Monnier via Users list for= the GNU Emacs text editor wrote: > tomas@tuxteam.de [2022-10-21 19:00:56] wrote: > >> file-remote-p works only when you use a special file name syntax. This > >> is not clear from the docstring. > > I think it's not about the syntax per se, but about whether Emacs handl= es > > the remoteness itself or it is the operating system's job. >=20 > There's also the question of it means to be "remote". > Is a file accessed via /su:... remote? > What about a file accessed via NFS to a virtual machine running on the > same physical machine? Definitely. The closer you look at it the more elusive the thing becomes :) For the OP, I think the takeaway is that file-remote-p can only be about remoteness Emacs "knows about", i.e. where Emacs handles the protocol "bringing over" the file. So no NFS, no CIFS etc. Cheers --=20 t --JlTMv0QSpFx/rd70 Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iF0EABECAB0WIQRp53liolZD6iXhAoIFyCz1etHaRgUCY1gexQAKCRAFyCz1etHa RsSoAJ9xvn9VzsqILXn9PWh+HCuomqkvlwCfVilvma0h+cek0/68ztP+1Fa6q/A= =hU+5 -----END PGP SIGNATURE----- --JlTMv0QSpFx/rd70--