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#50387: Possible bug in Tramp or in completions Date: Mon, 06 Sep 2021 16:41:15 -0400 Message-ID: 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> 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="25466"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cc: Gregory Heytings , 50387@debbugs.gnu.org To: Michael Albinus Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Sep 06 22:42:19 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 1mNLRa-0006UB-R5 for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 06 Sep 2021 22:42:19 +0200 Original-Received: from localhost ([::1]:45312 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mNLRZ-0002pC-AM for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 06 Sep 2021 16:42:17 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:58918) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mNLRL-0002oz-KV for bug-gnu-emacs@gnu.org; Mon, 06 Sep 2021 16:42:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:43042) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mNLRK-0007f7-5h for bug-gnu-emacs@gnu.org; Mon, 06 Sep 2021 16:42:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mNLRK-0006X9-3H for bug-gnu-emacs@gnu.org; Mon, 06 Sep 2021 16:42:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Stefan Monnier Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 06 Sep 2021 20:42:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 50387 X-GNU-PR-Package: emacs Original-Received: via spool by 50387-submit@debbugs.gnu.org id=B50387.163096088525073 (code B ref 50387); Mon, 06 Sep 2021 20:42:02 +0000 Original-Received: (at 50387) by debbugs.gnu.org; 6 Sep 2021 20:41:25 +0000 Original-Received: from localhost ([127.0.0.1]:54588 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mNLQj-0006WK-I3 for submit@debbugs.gnu.org; Mon, 06 Sep 2021 16:41:25 -0400 Original-Received: from mailscanner.iro.umontreal.ca ([132.204.25.50]:40639) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mNLQh-0006W5-So for 50387@debbugs.gnu.org; Mon, 06 Sep 2021 16:41:24 -0400 Original-Received: from pmg3.iro.umontreal.ca (localhost [127.0.0.1]) by pmg3.iro.umontreal.ca (Proxmox) with ESMTP id D0D8544082B; Mon, 6 Sep 2021 16:41:17 -0400 (EDT) Original-Received: from mail01.iro.umontreal.ca (unknown [172.31.2.1]) by pmg3.iro.umontreal.ca (Proxmox) with ESMTP id 8B238440803; Mon, 6 Sep 2021 16:41:16 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca; s=mail; t=1630960876; bh=pFlPWixXYyiZT/kXXP8ej7JkVtnUVcsIvVVGzJTv0QE=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From; b=AdutmjTCLUTTnNls9uUTWss37uRNPNCErrE84RsrryrFZkc3Q3eujwQJlvUGjrpy4 0u2Lfj8MxrQBL6nrpYq6mPLBnrRFE6aQd1F7t7Tjyf7Gd/988olrArQ/T9ezvbc+Fr 5HDQ85AtK6UaSUB2USOiKKXWu4wEXGlQx1NsZXKRpoWSOfqVEnn6e2yFg+MPWnfUh9 ANH5BohjzxSJ17eaf2qXSwPpLWrhOe1cD3nSsi+JABLbYWpF8Q65pkbkjvnYAwznW4 ffAJVo97SXDwksJJH4APWrWscjGKWb1bi1ogUFGUv2B5vaB0dVULt4XeSTr1mOvsp0 AbwOJ4nIucnBA== Original-Received: from milanesa (unknown [104.247.244.135]) by mail01.iro.umontreal.ca (Postfix) with ESMTPSA id 45315120249; Mon, 6 Sep 2021 16:41:16 -0400 (EDT) In-Reply-To: <877dftebod.fsf@gmx.de> (Michael Albinus's message of "Mon, 06 Sep 2021 21:39:14 +0200") 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:213637 Archived-At: >> Adding Stefan M in Cc. > Yes, hopefully he can tell us what happens then. The completion tables's API only directly support prefix completion. So in order to implement `substring` style, when the minibuffer.el code sees a request for completion of "/a" it will request all the possible prefix-completions for "/" and then filter them based on the presence of "a" in there. Tramp can only affect the file name completion table, so all it gets to see is a request for the set of prefix-completions of "/". Maybe Tramp could include "/adb:" and friends in there, but Michael probably has good reasons for not doing so. Stefan