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:05:25 -0500 Message-ID: References: <87k024918k.fsf@jroy.ca> <8dea9f3e0e411c315b04@heytings.org> <87tu15m6g7.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="10699"; 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:06:26 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 1pNbAQ-0002XC-3y for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 02 Feb 2023 16:06:26 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pNbA5-0000JR-09; Thu, 02 Feb 2023 10:06:05 -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 1pNbA2-0000GZ-C1 for bug-gnu-emacs@gnu.org; Thu, 02 Feb 2023 10:06:03 -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 1pNbA1-0004Ly-QW for bug-gnu-emacs@gnu.org; Thu, 02 Feb 2023 10:06:01 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pNbA1-0005V9-LZ for bug-gnu-emacs@gnu.org; Thu, 02 Feb 2023 10:06:01 -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:06:01 +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.167535034021119 (code B ref 60505); Thu, 02 Feb 2023 15:06:01 +0000 Original-Received: (at 60505) by debbugs.gnu.org; 2 Feb 2023 15:05:40 +0000 Original-Received: from localhost ([127.0.0.1]:35511 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pNb9f-0005UZ-OH for submit@debbugs.gnu.org; Thu, 02 Feb 2023 10:05:39 -0500 Original-Received: from mailscanner.iro.umontreal.ca ([132.204.25.50]:3003) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pNb9e-0005UK-9O for 60505@debbugs.gnu.org; Thu, 02 Feb 2023 10:05:38 -0500 Original-Received: from pmg1.iro.umontreal.ca (localhost.localdomain [127.0.0.1]) by pmg1.iro.umontreal.ca (Proxmox) with ESMTP id 75CC81000D6; Thu, 2 Feb 2023 10:05:32 -0500 (EST) Original-Received: from mail01.iro.umontreal.ca (unknown [172.31.2.1]) by pmg1.iro.umontreal.ca (Proxmox) with ESMTP id A6C1C1000CC; Thu, 2 Feb 2023 10:05:26 -0500 (EST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca; s=mail; t=1675350326; bh=bhKPRk4M59qFJ5MWzzyuKukiKLaz9h6QHAnL5yaMPNQ=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From; b=I2Y0p66mTGcjfsdaTbXsYYI0rd7/DMJgSI2meSucuNZAS8is7EsldI4sm6I3bQ+1D 65vMiz3O18MvrtaiWc12TLFGKiHBVEbddUynf3NpgzMoWSVHogiKceqV2fITuFoNHQ CV1cw7xsz3H8KG5v8OPFB7ZD48PA5LYR1IV33V2S4IQJQPOPoxmGZb+AukywJMNpxa 6sDI5L0b4GVKIZjkWcigMSwPsiLDa8s+eQBA7yGK5GS0MHRl4IfqhS2APFc+H1wFgv 5mTS9GSS+J7wVzzv5MTCOlEDV/LOAoreWGCJxnNaIYJBhv0upP4K4NU84+pxx7ROAV /BWOqnV9CU2Kg== Original-Received: from pastel (76-10-137-88.dsl.teksavvy.com [76.10.137.88]) by mail01.iro.umontreal.ca (Postfix) with ESMTPSA id 288F7121306; Thu, 2 Feb 2023 10:05:26 -0500 (EST) In-Reply-To: <87tu15m6g7.fsf@gmx.de> (Michael Albinus's message of "Thu, 05 Jan 2023 14:55:36 +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:254662 Archived-At: > I don't deny that there is a problem, and it isn't a surprise that > people report about. But I don't think that Tramp misbehaves, it does > exactly what it is specified to do. > > I guess that flex and friends use completion out of the > specification. It's neither's fault, really. It's a shortcoming of the intermediary, i.e. the completion-table API. The completion-table API only offers "prefix" completion, so the only thing "flex" and "substring" can do when asked to complete `/ssh:` is to ask for all the completions in `/` (because the definition of "substring" completion means that it should also match `/foossh:bar` and similarly for "flex"). I have some draft of a new completion-table API where it's possible for the completion style to propagate more information about which completions it's looking for, so for example the completion-table might be asked to return the completions that match `/*ssh:*` or even `/*s*s*h*:*`. It's then up to the completion-table to do something useful with it (of course, the API is designed such that the completion-tables don't *have* to handle those more complex cases: there's a general fallback mechanism which reduces those queries to simpler ones). Stefan