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 11:59:13 +0300 Message-ID: <83k04uyiou.fsf@gnu.org> References: <825ygfngbw.fsf@gmail.com> <821qr2oqu2.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="23644"; 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 11:02:48 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 1olRRw-00060d-6v for geh-help-gnu-emacs@m.gmane-mx.org; Thu, 20 Oct 2022 11:02:48 +0200 Original-Received: from localhost ([::1]:47658 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1olRRt-0000Ef-SQ for geh-help-gnu-emacs@m.gmane-mx.org; Thu, 20 Oct 2022 05:02:46 -0400 Original-Received: from [::1] (helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1olRRs-0005EY-KC for geh-help-gnu-emacs@m.gmane-mx.org; Thu, 20 Oct 2022 05:02:44 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:33520) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1olROY-0005Bf-09 for help-gnu-emacs@gnu.org; Thu, 20 Oct 2022 04:59:21 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:50598) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1olROX-0007Rl-Ol for help-gnu-emacs@gnu.org; Thu, 20 Oct 2022 04:59:17 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-version:References:Subject:In-Reply-To:To:From: Date; bh=K98vr8kGI4Rc7iIHLoNWi4Bz93OpLhH4P/0buSOfeIA=; b=jlGfRldMtX6I1zL/KV/N +/xNf5cgxSMvDt3yOinlY7QD99GANywxIEeYJKJ3/Pj1Xe9gZPIpbcUl4btELMsCb55zVYcQD5dy0 TdJ/7+ps9mAhg1bclJc5CihuYiJvY+HMXb2rc3+OIP3UPR8yxJ/HrrwLHNvWTeGn9N8/aL35tZc7f PvuU8RAnw95XAZM7EgRwN7Dvtp5ByXULbJt8FCJ+MgAxqR7KGiAM6u018/83zS8NaFNo40qb0x/Ay BSSa6GsN4nVd7ORI/x2RPgkp0o14xKUoPUR38x+IRfhiI4D2+cLexdhK2cGa0ValD4sYpOZ48MYg2 qbJdFK3YEZrx9A==; Original-Received: from [87.69.77.57] (port=2920 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 1olROW-0002Ci-FS for help-gnu-emacs@gnu.org; Thu, 20 Oct 2022 04:59:17 -0400 In-Reply-To: <821qr2oqu2.fsf@gmail.com> (message from Pascal Quesseveur on Thu, 20 Oct 2022 10:13:25 +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:140187 Archived-At: > From: Pascal Quesseveur > Date: Thu, 20 Oct 2022 10:13:25 +0200 > > >"JL" == Jean Louis writes: > > JL> file-remote-p is a byte-compiled Lisp function in ‘files.el’. > > I should have sayed I had looked at file-remote-p. FMU it works only > when there is a file handler defined for file-remote-p operation. Yes, but the handler should be installed automatically and by default. > I have checked different paths on my system and it always returns > nil. Maybe I am not using it correctly. Please show a recipe starting from "emacs -Q" where file-remote-p doesn't work as advertised.