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: Fri, 21 Oct 2022 13:45:48 +0300 Message-ID: <83czalwj37.fsf@gnu.org> References: <825ygfngbw.fsf@gmail.com> <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> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="6297"; mail-complaints-to="usenet@ciao.gmane.io" Cc: help-gnu-emacs@gnu.org To: pquessev@gmail.com Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Fri Oct 21 12:47:49 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 1olpZ6-0001PO-44 for geh-help-gnu-emacs@m.gmane-mx.org; Fri, 21 Oct 2022 12:47:48 +0200 Original-Received: from localhost ([::1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1olpZ3-000260-QI for geh-help-gnu-emacs@m.gmane-mx.org; Fri, 21 Oct 2022 06:47:45 -0400 Original-Received: from [::1] (helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1olpXd-0004vr-69 for geh-help-gnu-emacs@m.gmane-mx.org; Fri, 21 Oct 2022 06:46: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 1olpXD-0004PM-TL for help-gnu-emacs@gnu.org; Fri, 21 Oct 2022 06:46:02 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1olpXC-0004RC-G6; Fri, 21 Oct 2022 06:45:51 -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=przrnBSlMVYxPDujPqO3fgj5ALOKyhyuRcZqwrGpud0=; b=RRS21frKgkQF FmKRznfBsI76Y1tBe48Vod9TG6De+bAHJjquleDq02nrBPaYypkSyl7Y0OYlJn3XNxMmAMPri6hb3 K0CLycpVaS+ylAg15qEidSrtMIYXk4nF0wbly4zNfUsYwoxN1B1nS6SShBmdbL2+LK6XCFJkPwoMV fspB9+FdljhjpU7UbNbtEyRAbOherV8d95t7s+Gly2sRrPDKlELDFhHppfSZdAYaH4+H2i4sHRgPU 3+MdiPFuQf/j/ds3weZp+k6ZROtzDYdABnzYNSpFVZXVfzrA6z/7Pa2fB9MpdYyLM2OXE4szMzCW4 lD32x4t/1tTG0gOdP0rm/Q==; Original-Received: from [87.69.77.57] (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 1olpXB-0005vL-VM; Fri, 21 Oct 2022 06:45:50 -0400 In-Reply-To: <82o7u5r53s.fsf@gmail.com> (message from Pascal Quesseveur on Fri, 21 Oct 2022 09:46:47 +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:140235 Archived-At: > From: Pascal Quesseveur > Cc: help-gnu-emacs@gnu.org > Date: Fri, 21 Oct 2022 09:46:47 +0200 > > file-remote-p works only when you use a special file name syntax. This > is not clear from the docstring. Almost all file-* functions operate just on the syntax. But feel free to submit a documentation bug report about clarifying this aspect. > > EZ> You could perhaps approximate it by assuming that every UNC is a > EZ> remote file. > > But as you said every UNC is not a remote file. Yes. Thus the "approximate" part.