From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Stefan Monnier via "Bug reports for GNU Emacs, the Swiss army knife of text editors" Newsgroups: gmane.emacs.bugs Subject: bug#60505: 29.0.60; Fido Mode and Tramp Completion Date: Thu, 02 Feb 2023 10:16:51 -0500 Message-ID: References: <87k024918k.fsf@jroy.ca> <8dea9f3e0e411c315b04@heytings.org> <87tu15m6g7.fsf@gmx.de> <8dea9f3e0eb47ac9e4ab@heytings.org> <371ba1d0be1f14c7c798@heytings.org> <8aadf0ddd54d67a3213d@heytings.org> <87a62jmwj6.fsf@gmx.de> <87o7qwm3dd.fsf@gmx.de> Reply-To: Stefan Monnier Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="32686"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: 60505@debbugs.gnu.org, Gregory Heytings , Julien Roy To: Michael Albinus Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Feb 02 16:18:27 2023 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 1pNbM2-0008Ji-Tu for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 02 Feb 2023 16:18:27 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pNbLn-0005HM-LV; Thu, 02 Feb 2023 10:18:11 -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 1pNbLe-0005Ed-Ux for bug-gnu-emacs@gnu.org; Thu, 02 Feb 2023 10:18:07 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pNbLe-0001Qv-Gf for bug-gnu-emacs@gnu.org; Thu, 02 Feb 2023 10:18:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pNbLe-0005mY-Bh for bug-gnu-emacs@gnu.org; Thu, 02 Feb 2023 10:18:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Stefan Monnier Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 02 Feb 2023 15:18:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 60505 X-GNU-PR-Package: emacs Original-Received: via spool by 60505-submit@debbugs.gnu.org id=B60505.167535102322139 (code B ref 60505); Thu, 02 Feb 2023 15:18:02 +0000 Original-Received: (at 60505) by debbugs.gnu.org; 2 Feb 2023 15:17:03 +0000 Original-Received: from localhost ([127.0.0.1]:35519 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pNbKg-0005l1-Uu for submit@debbugs.gnu.org; Thu, 02 Feb 2023 10:17:03 -0500 Original-Received: from mailscanner.iro.umontreal.ca ([132.204.25.50]:32946) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pNbKe-0005kS-RD for 60505@debbugs.gnu.org; Thu, 02 Feb 2023 10:17:01 -0500 Original-Received: from pmg3.iro.umontreal.ca (localhost [127.0.0.1]) by pmg3.iro.umontreal.ca (Proxmox) with ESMTP id D23EB441482; Thu, 2 Feb 2023 10:16:54 -0500 (EST) Original-Received: from mail01.iro.umontreal.ca (unknown [172.31.2.1]) by pmg3.iro.umontreal.ca (Proxmox) with ESMTP id 48F57440FD7; Thu, 2 Feb 2023 10:16:53 -0500 (EST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca; s=mail; t=1675351013; bh=eu/qQDHSCLZqxCw4AyOWsDDwnAa3BYPX77IQkpuDDHc=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From; b=SiYk4YlF9z09menKN1jpDG/nK0FaCmZ4Zj73veS2XhF5nJNfoiaVgTw3bQi+xIKvt pD9nEIwnXGB/kjdgxyWipYVLxnAp0XxcsO7G8/yYldzWTE0OibdYFcHJJmtt5sGVoO zFegciqlt/n2Bqj5SL8ObXuZoWWJUnSodwfcsdvohawLi+SmUHX7KAa8fegv+c1UJE z7mnkGBPfYTklxCX9gofHkzPyqnOXnpnHS7RN00gtoZ3AcEZh9TYNDAlEMrnVdK8lS owYrYOreqSCxy5IlwG4eY1r42b73EasmBVDXfJ+m8VMLccAj6z3C6AjCdn9htx070d PAGU4G5mBOOPQ== Original-Received: from pastel (76-10-137-88.dsl.teksavvy.com [76.10.137.88]) by mail01.iro.umontreal.ca (Postfix) with ESMTPSA id 14988120AEF; Thu, 2 Feb 2023 10:16:53 -0500 (EST) In-Reply-To: <87o7qwm3dd.fsf@gmx.de> (Michael Albinus's message of "Wed, 18 Jan 2023 13:30:38 +0100") 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:254663 Archived-At: > Yes. But this is not a Tramp fault. Completion styles like flex (and > substring, didn't test) do ignore Tramp file name syntax. They simply > think in terms of file name parts, separated by "/". This is not > appropriate for remote file names. Actually, completion styles don't know whether they're completing file names or not and don't really know that "/" is special in file name syntax. This is done by `completion-file-name-table` instead. This one, in turn tries not to pay attention to "/" either, and to rely on file-name functions instead (e.g. `file-name-directory`). > Tramp knows only file-name-completion and file-name-all-completions. Tramp could also influence the completion behavior via the other file-name functions. E.g. defining (file-name-directory "/ssh:foo") => "/ssh:" could fix some of the flex completion cases discussed here. [ Note: I'm not actually suggesting that this is the solution. It would likely come with its own set of problems. ] Stefan