From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Gregory Heytings Newsgroups: gmane.emacs.bugs Subject: bug#50387: Possible bug in Tramp or in completions Date: Tue, 07 Sep 2021 17:51:17 +0000 Message-ID: <11c4e3821a7883ef488a@heytings.org> References: <79cd87e590549c0d916d@heytings.org> <79cd87e590b404a83d08@heytings.org> <8735qi3yn0.fsf@gmx.de> <75d560562c0ab9fd3910@heytings.org> <87r1e1ej2y.fsf@gmx.de> <75d560562c20d8f71e17@heytings.org> <87h7exeh56.fsf@gmx.de> <75d560562c1f93d6a0f7@heytings.org> <877dftebod.fsf@gmx.de> <75d560562c385dda28c0@heytings.org> <87y289cuos.fsf@gmx.de> <75d560562c15a7c4aab4@heytings.org> <87eea0czkx.fsf@gmx.de> <11c4e3821a86a11e0b8f@heytings.org> <11c4e3821ab7d19109fb@heytings.org> <87a6kocvn7.fsf@gmx.de> <11c4e3821a544b043840@heytings.org> <871r60cmwo.fsf@gmx.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="31774"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Stefan Monnier , 50387-done@debbugs.gnu.org To: Michael Albinus Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Sep 07 19:52:17 2021 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 1mNfGZ-00080Y-Bm for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 07 Sep 2021 19:52:15 +0200 Original-Received: from localhost ([::1]:56628 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mNfGY-000781-8v for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 07 Sep 2021 13:52:14 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:49440) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mNfGN-00073O-6j for bug-gnu-emacs@gnu.org; Tue, 07 Sep 2021 13:52:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:46079) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mNfGM-00007q-VJ for bug-gnu-emacs@gnu.org; Tue, 07 Sep 2021 13:52:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mNfGM-00053v-TO for bug-gnu-emacs@gnu.org; Tue, 07 Sep 2021 13:52:02 -0400 Resent-From: Gregory Heytings Original-Sender: "Debbugs-submit" Resent-To: bug-gnu-emacs@gnu.org Resent-Date: Tue, 07 Sep 2021 17:52:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: cc-closed 50387 X-GNU-PR-Package: emacs Mail-Followup-To: 50387@debbugs.gnu.org, gregory@heytings.org, gregory@heytings.org Original-Received: via spool by 50387-done@debbugs.gnu.org id=D50387.163103708019384 (code D ref 50387); Tue, 07 Sep 2021 17:52:02 +0000 Original-Received: (at 50387-done) by debbugs.gnu.org; 7 Sep 2021 17:51:20 +0000 Original-Received: from localhost ([127.0.0.1]:57622 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mNfFg-00052Y-Dv for submit@debbugs.gnu.org; Tue, 07 Sep 2021 13:51:20 -0400 Original-Received: from heytings.org ([95.142.160.155]:51026) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mNfFf-00052Q-1j for 50387-done@debbugs.gnu.org; Tue, 07 Sep 2021 13:51:19 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=heytings.org; s=20210101; t=1631037078; bh=68li0bS8/xyhkXaRWHyvT0hfvRVBRT0kEYkQ8z6QGEw=; h=Date:From:To:cc:Subject:In-Reply-To:Message-ID:References:From; b=mnmC2+lMLudthRishHYBIaF4og9huxGLw+jcZrvc59g5RrcmQ14i/+DXr3Boomx40 YzLJlSMaraBslHYxGWqMpxa0ISuBkji4vNp2R/shAEa0KaHuRB49MItkucXpNvm83B fJg5MJE+YrXf0ny13921uIqscCAg/6DprlUoCFENg0+RN49ofxIon+b7I4DghLO8TP z0O8oab6LgGtY6ckOAwJTjneCAGK/tf1vg0Xo72dSddDgH/Ivqf2vi3D9zjl5YPKJp VqO64KF5M5XtLQVDfWjODvE0njNBDCFkYFDET0gqwNULbtCCFtnGN4X0LdKR6/7KAL rvxqpV5q6kt4A== In-Reply-To: <871r60cmwo.fsf@gmx.de> 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" Xref: news.gmane.io gmane.emacs.bugs:213724 Archived-At: >>> That means, "scp:" hasn't been passed to >>> tramp-completion-handle-file-name-all-completions, and the result of >>> that function looks proper to me. >> >> Yet it isn't. > > Why not? In this example, `completion-styles' contains `substring'. And > then you ask for completion of "/scp:". Looking at the candidates > returned by `tramp-completion-handle-file-name-all-completions', only > "pscp:" and "scp:" have the substring "scp:". > Because after typing "/s" or "/sc" or "/scp" it makes sense to see that "/scp:" is among the completion candidates, but after typing "/scp:" it doesn't make sense anymore, the method has already been entered by the user, what they now want to see is a list of hosts, and there is no way to see it. >> - before your attempt to fix the problem, C-x C-f / TAB only displayed >> "scp:" and "scpx:" among the completion candidates (or e.g. "ssh:", >> "sshfs:" and "sshx:" with tramp-default-method set to "ssh"); > > Yes, this is changed. > >> - now C-x C-f / TAB displays all Tramp methods; > > When Tramp is loaded. I regard this to be correct. > >> - with my patch, which actually fixes the bug, C-x C-f / TAB does not >> display any Tramp method, as it should. > > Again, C-x C-f / TAB displays a Tramp method only when Tramp is loaded. > I filed a bug report, explained in every detail what the bug is, provided a patch, and the end result is a situation that is worse than earlier. I expect other bug reports from confused users, and hope that you'll change your mind. Closing.