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:08:20 +0000 Message-ID: <87eddo45qj.fsf@localhost> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="3554"; mail-complaints-to="usenet@ciao.gmane.io" Cc: michael.albinus@gmx.de To: 68976@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Feb 07 17:06:25 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 1rXkRM-0000iW-Gj for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 07 Feb 2024 17:06:24 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rXkQq-00023P-BU; Wed, 07 Feb 2024 11:05:52 -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 1rXkQn-000228-PE for bug-gnu-emacs@gnu.org; Wed, 07 Feb 2024 11:05:49 -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 1rXkQn-0008VE-6f for bug-gnu-emacs@gnu.org; Wed, 07 Feb 2024 11:05:49 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1rXkR0-0001sI-M4; Wed, 07 Feb 2024 11:06:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Ihor Radchenko Original-Sender: "Debbugs-submit" Resent-CC: michael.albinus@gmx.de, bug-gnu-emacs@gnu.org Resent-Date: Wed, 07 Feb 2024 16:06:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 68976 X-GNU-PR-Package: emacs X-Debbugs-Original-To: bug-gnu-emacs@gnu.org X-Debbugs-Original-Xcc: michael.albinus@gmx.de Original-Received: via spool by submit@debbugs.gnu.org id=B.17073219297163 (code B ref -1); Wed, 07 Feb 2024 16:06:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 7 Feb 2024 16:05:29 +0000 Original-Received: from localhost ([127.0.0.1]:57722 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rXkQS-0001rT-0r for submit@debbugs.gnu.org; Wed, 07 Feb 2024 11:05:28 -0500 Original-Received: from lists.gnu.org ([2001:470:142::17]:59660) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rXkQJ-0001r6-D1 for submit@debbugs.gnu.org; Wed, 07 Feb 2024 11:05:27 -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 1rXkPx-0001pA-Kp for bug-gnu-emacs@gnu.org; Wed, 07 Feb 2024 11:04:58 -0500 Original-Received: from mout01.posteo.de ([185.67.36.65]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rXkPu-0007xx-Fa for bug-gnu-emacs@gnu.org; Wed, 07 Feb 2024 11:04:57 -0500 Original-Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id 97118240028 for ; Wed, 7 Feb 2024 17:04:51 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1707321891; bh=CigHX1YWnSB0eJNa6VSAefmUZTyN3mPAC82Bg2z7uuI=; h=From:To:Subject:Date:Message-ID:MIME-Version:Content-Type:From; b=SoXKWpaXVbqTpTSnz4Flw99Pv8YZ39yhzFrJYq8tZp53QdtwjYkscBcZAFoFiNydS Ta1tGNXaLRTAeYwbcNeMUHIsJGlb587BzVEi/+JRhQ8zT5vt8+QOTNKqKkEkNkX+8e Jsvo0rqCV1IgHBUBmFcRqo7U1e06IFvbXH51h0GhwbqiSJ4PJWJJZUOuYXOAQ8a9pr O74vP8ghQiO+4++KVfHP1OqFqqwgmxz2ViAwNaPD4udvvhte8FKHwNs8dpaIop77Od Ius3041yRehrEb9XP3FdQm2daNyr3KIK+mIK0VaOorTV9QRcY64Z4XUlgZOD2QN5nm rYVYpXRICzuyg== Original-Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4TVQ1G5TkTz6txn for ; Wed, 7 Feb 2024 17:04:50 +0100 (CET) Received-SPF: pass client-ip=185.67.36.65; envelope-from=yantar92@posteo.net; helo=mout01.posteo.de X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 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, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H4=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action 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:279556 Archived-At: Hello, Today, I tried to execute an innocent test checking if a file is remote or not: (file-remote-p "/dav:localhost#8000:/foo") Unexpectedly, I encountered user error tramp-error: Package `tramp-gvfs' not supported I did not expect that `file-remote-p' should ever throw an error other than when passed non-string argument. Looking at the code, (setq tramp-gvfs-enabled t) would make the error disappear. (The default value is nil) 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. In GNU Emacs 30.0.50 (build 6, x86_64-pc-linux-gnu, GTK+ Version 3.24.41, cairo version 1.18.0) of 2024-02-04 built on localhost Repository revision: ac3b44daf09cf723687664f21ff557d9d5ebc19b Repository branch: master Windowing system distributor 'The X.Org Foundation', version 11.0.12101011 System Description: Gentoo Linux -- Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at