From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Ihor Radchenko Newsgroups: gmane.emacs.bugs Subject: bug#68976: 30.0.50; Tramp: unexpected error when calling (file-remote-p "/dav:localhost#8000:/foo") Date: Wed, 07 Feb 2024 16:40:12 +0000 Message-ID: <87fry4qlcj.fsf@localhost> References: <87eddo45qj.fsf@localhost> <86zfwcxmp0.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="9921"; mail-complaints-to="usenet@ciao.gmane.io" Cc: michael.albinus@gmx.de, 68976@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Feb 07 17:38:08 2024 Return-path: Envelope-to: geb-bug-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 1rXkw3-0002Iz-Ho for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 07 Feb 2024 17:38:07 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rXkvn-0002eP-Fh; Wed, 07 Feb 2024 11:37:51 -0500 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 1rXkvk-0002bh-U8 for bug-gnu-emacs@gnu.org; Wed, 07 Feb 2024 11:37:48 -0500 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rXkvk-000658-LT for bug-gnu-emacs@gnu.org; Wed, 07 Feb 2024 11:37:48 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1rXkvy-0002hN-FW for bug-gnu-emacs@gnu.org; Wed, 07 Feb 2024 11:38:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Ihor Radchenko Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 07 Feb 2024 16:38:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 68976 X-GNU-PR-Package: emacs Original-Received: via spool by 68976-submit@debbugs.gnu.org id=B68976.170732382710310 (code B ref 68976); Wed, 07 Feb 2024 16:38:02 +0000 Original-Received: (at 68976) by debbugs.gnu.org; 7 Feb 2024 16:37:07 +0000 Original-Received: from localhost ([127.0.0.1]:57769 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rXkv4-0002gE-Te for submit@debbugs.gnu.org; Wed, 07 Feb 2024 11:37:07 -0500 Original-Received: from mout02.posteo.de ([185.67.36.66]:59633) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rXkv2-0002fk-NT for 68976@debbugs.gnu.org; Wed, 07 Feb 2024 11:37:05 -0500 Original-Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id 9D8C2240101 for <68976@debbugs.gnu.org>; Wed, 7 Feb 2024 17:36:44 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1707323804; bh=7vGvioHEdDPWjyOI8LynvKxDw/DJ4RI3MDmV+CbGefI=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:Content-Type: From; b=AlChpphzHi/YpTVuZuJ7NZjkBIDohZfIQQ27W4Kuvn8vjCblFnb/E1BvWryzPtLpw ioXjZMYQBif9zbfuBRlfAuixxYtS+VWZbWQoBdw4MdOKk6JqhEsnGetCyImEQMGkfT uu3YaOt1aGyk/VkbrtwP7SMposrZa0pMvwyEIav+HLbwqDYpS1mAjc5IO6myo7kncf AkNVkZiGuTQuscT2b024Davwec0jHIvEA3Sxi9bemOVtRZC8yzvkHov07Bzyi6vuP8 M08jnUdwbCyKoVAOxgMTVHDqu4F+oWcmR33EsUKSzNHXKJuOCPi6MvSBBEQ6CEvWrH uCNSptcurXNgQ== Original-Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4TVQk3222Rz6tsf; Wed, 7 Feb 2024 17:36:42 +0100 (CET) In-Reply-To: <86zfwcxmp0.fsf@gnu.org> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:279559 Archived-At: Eli Zaretskii writes: >> (file-remote-p "/dav:localhost#8000:/foo") > ...> >> I believe that it is inappropriate that throw an error in such >> situation. If "gvfs" is not supported, but still claimed to be remote by >> TRAMP, I expect non-nil return value when calling `file-remote-p'; not >> an error. > > What if the "dav:" part was deliberate, i.e. not an accident? That > ism the caller did want to access a gvfs remote filesystem. Returning > nil in that case would be exactly the wrong thing to do. I do not suggest returning nil. I suggest to return non-nil rather than throwing an error. It would be more appropriate to throw an error when opening the file were attempted, not merely checking if that file is remote. -- Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at