From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Julien Roy Newsgroups: gmane.emacs.bugs Subject: bug#60505: 29.0.60; Fido Mode and Tramp Completion Date: Thu, 05 Jan 2023 15:58:10 -0500 Message-ID: <87cz7sg0m5.fsf@jroy.ca> References: <87k024918k.fsf@jroy.ca> <8dea9f3e0e411c315b04@heytings.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="35890"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: 60505@debbugs.gnu.org To: Gregory Heytings Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Jan 05 21:59:11 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 1pDXKR-00094f-8C for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 05 Jan 2023 21:59:11 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pDXKK-0005KZ-EN; Thu, 05 Jan 2023 15:59:04 -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 1pDXKJ-0005KD-C9 for bug-gnu-emacs@gnu.org; Thu, 05 Jan 2023 15:59: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 1pDXKJ-0002ol-3n for bug-gnu-emacs@gnu.org; Thu, 05 Jan 2023 15:59:03 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pDXKI-0004oW-Tw for bug-gnu-emacs@gnu.org; Thu, 05 Jan 2023 15:59:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Julien Roy Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 05 Jan 2023 20:59: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.167295229518423 (code B ref 60505); Thu, 05 Jan 2023 20:59:02 +0000 Original-Received: (at 60505) by debbugs.gnu.org; 5 Jan 2023 20:58:15 +0000 Original-Received: from localhost ([127.0.0.1]:53058 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pDXJW-0004n5-Jp for submit@debbugs.gnu.org; Thu, 05 Jan 2023 15:58:14 -0500 Original-Received: from jroy.ca ([23.29.118.128]:35118) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pDXJV-0004mx-9s for 60505@debbugs.gnu.org; Thu, 05 Jan 2023 15:58:13 -0500 Original-Received: from defiant (vpn.jroy.ca [184.160.113.32]) by jroy.ca (Postfix) with ESMTPSA id 1A929859F9F; Thu, 5 Jan 2023 15:58:12 -0500 (EST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=jroy.ca; s=default; t=1672952292; bh=R5D53VX4OBAbw8nkiuqBTdtfSUWPMukcsDYJEyzp1/M=; h=From:To:Cc:Subject:In-Reply-To:References:Date; b=APRGvXaOjq9XCvUXtMLcb3QdKDBSMon+BdcxZU2Sv3dlqzYdfb64Jrct1rzjUehnJ 0i9QEYXKQuUu1A6Jrr1b/Q3wQEE0GTv7emeAWDa9cmvhu3W5hsshbibYYWN9uCIvXy 3wzCFR/kiU89bv+55g/qWMoMIH8JbqZ3zmFZ4su8= In-Reply-To: <8dea9f3e0e411c315b04@heytings.org> (Gregory Heytings's message of "Thu, 05 Jan 2023 13:07:51 +0000") 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:252640 Archived-At: Hi Gregory, Gregory Heytings writes: > > There are two problems here: > > 1. fido-mode sets completion-styles to 'flex', and as indicated in the > docstring of completion-styles "Tramp host name completion (e.g., > "/ssh:ho") currently doesn't work if this list doesn't contain at > least one of `basic', `emacs22' or `emacs21'." The workaround is to > add this to your init file: > > (advice-add #'icomplete--fido-mode-setup > :after (lambda () (setq completion-styles '(flex basic)))) > > You could also ask for that change to be made in core. > > 2. Doing that is not enough, because of an incompatibility between > Tramp and the 'flex' and 'substring' mechanisms. The Tramp manual has > a footnote which mentions that incompatibility: "Some completion > styles, like `substring' or `flex', require to type at least one > character after the trailing `:'." A one-line patch to fix it was > proposed, but rejected, a year and a half ago. It is attached to this > email, and you can use it locally. As I said in the bug thread in > which that patch was proposed: "I expect other bug reports from > confused users". > > <#secure method=pgpmime mode=sign> I did that, added the snipped to my init file, and patched my tramp.el. Now, Tramp completion works as expected in fido-mode: C-x C-f /ssh : auto-completes tramp methods (/ssh: /sshx: /sshfs:) C-x C-f /ssh: : auto-completes with known hosts Thank you very much! -- Julien