From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Michael Albinus Newsgroups: gmane.emacs.bugs Subject: bug#60505: 29.0.60; Fido Mode and Tramp Completion Date: Sun, 15 Jan 2023 20:23:57 +0100 Message-ID: <87a62jmwj6.fsf@gmx.de> References: <87k024918k.fsf@jroy.ca> <8dea9f3e0e411c315b04@heytings.org> <87tu15m6g7.fsf@gmx.de> <8dea9f3e0eb47ac9e4ab@heytings.org> <371ba1d0be1f14c7c798@heytings.org> <8aadf0ddd54d67a3213d@heytings.org> Mime-Version: 1.0 Content-Type: text/plain Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="30908"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: 60505@debbugs.gnu.org, Julien Roy To: Gregory Heytings Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Jan 15 20:25:34 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 1pH8dJ-0007nE-1B for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 15 Jan 2023 20:25:33 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pH8d1-0007WS-M8; Sun, 15 Jan 2023 14:25:15 -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 1pH8cp-0007Vx-Aa for bug-gnu-emacs@gnu.org; Sun, 15 Jan 2023 14:25:04 -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 1pH8cp-0005ny-1c for bug-gnu-emacs@gnu.org; Sun, 15 Jan 2023 14:25:03 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pH8co-0006kX-Hn for bug-gnu-emacs@gnu.org; Sun, 15 Jan 2023 14:25:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Michael Albinus Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 15 Jan 2023 19:25: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.167381065325869 (code B ref 60505); Sun, 15 Jan 2023 19:25:02 +0000 Original-Received: (at 60505) by debbugs.gnu.org; 15 Jan 2023 19:24:13 +0000 Original-Received: from localhost ([127.0.0.1]:59575 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pH8c0-0006jB-Ke for submit@debbugs.gnu.org; Sun, 15 Jan 2023 14:24:12 -0500 Original-Received: from mout.gmx.net ([212.227.15.15]:40143) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pH8bx-0006is-3S for 60505@debbugs.gnu.org; Sun, 15 Jan 2023 14:24:10 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.de; s=s31663417; t=1673810638; bh=LqIyDB9bsxkJZ5EDQTOtPBFbhqCLjSrCPwRBIAXol+I=; h=X-UI-Sender-Class:From:To:Cc:Subject:In-Reply-To:References:Date; b=qLsknFUAJ9Zki2ZdsXsxJLF/2APu9uMBKwy4rfAPpUKR4MrZvx5TfvZioUr2vZjhT 2cEYO6mPfr7YL8DZG1woN1XNkRA/Y9XstCUMECDZr/eTjbmtwC16zK7mOp5abcrw4h OZkZCYbjRZEcUYJFckGBvwp91I63Nh0rO6Zy62bLIxtpvWq8jmvY+jSZpAnhPJkz+e oTP+mkeFutD+qLAWDtsridZwmiZ3Pxj4qI+526m6zK+YwGtL1JmpoRKPu4HSd8Q8LH DyTm8Q8Ooij5BO6QuQMqpSMH8ohQb00kgcV3v0RsvmdmAjCToJAEnYyxRjGf5V+x0+ KAPo/0fSpll1Q== X-UI-Sender-Class: 724b4f7f-cbec-4199-ad4e-598c01a50d3a Original-Received: from gandalf.gmx.de ([185.89.37.45]) by mail.gmx.net (mrgmx004 [212.227.17.190]) with ESMTPSA (Nemesis) id 1MpUUw-1owPFy2S5c-00pria; Sun, 15 Jan 2023 20:23:58 +0100 In-Reply-To: <8aadf0ddd54d67a3213d@heytings.org> (Gregory Heytings's message of "Sat, 14 Jan 2023 21:37:31 +0000") X-Provags-ID: V03:K1:j4mQSpgwi8qsvgoCGDRpoH/slhyzUJi81MCIcMk4IIP2fZyyMuV p5gh24AFaKdaXnmfcYstF9ku14irzQhbk+3eRvmGcHyE5+bNU/cH0oh5t1UlFVjLk8gKO5H ++vqbZyk/ukAGFW/9qaykRIeNu+eXgBoMqtiutOfJUakce22C4+nBot6ydFzOSCaA2k+Hhh 8DoJmqS6LlEDBhqAS/IRw== UI-OutboundReport: notjunk:1;M01:P0:EVw6JkWdBEc=;TPBGtcbA0ngrb/6x6aXyUH5uWvA opBAS/F65mPpSvMWTOLTpo2DzYsE+vX9mnik3fBS9I/RmQeALfo2zcim1RfA8pay4Ccf5fMvE ZhJODBnFvurPy1Swxfy4YhxHbexD7Va88JlMI8OGZb1pD368Wn+tEDCnerYu1gpP4LNd/deoe 8dF+joZEXMaT0E8fkrvGWtskRIuWj6I5LZnlvLTQTimoCTgsOABDi/SpbjLfQM31NjS2qhiBH LXWMuYjF9mslGT1qJjs0dk/nuMdtYedhjxHgQ6JmX7XM7qpzSpJC91wUsrtHJFfQkdODAz+6+ hXlWoMFftaxLx0OAgNnR4wtbyKhdLTdtGu9X2R6mIsEALSJECD9oKnW8XCwxOh3TEsZ6KwFej orUpo8AyeWKyEpUQRysbSQsbM66bo+/NoJNm6M14uTdWqpZ6ZFTrbHBraUqPEciwVkYoF/4wp XfMZ2iKB5EUGd4wVpCXSi94nRrnk6WJfpIKXoofx/170/3CbE2Nu2VH3l2E+UfDrjL2hvgg/B 6mKejiQFBhtGiyPN5wAivkHApvZoDv1wl56ajldnuTgIWTSxgOykV1XCMJsSykDxDzaDwdpUo 1y1DkBDD6SXm4xq1i/MGNFFVCQMT5vqgS+VKcF38Ej2iGjsSeYoagEogz3kKyuGKj75kkEHs2 J0S9q+mdmFqyNtkB2l0ZbdUMce9m4lBrzCH4Zksh85S1MWP9/ZObuJmONKX3QOJgG6AqcEn1V OmzHstgsUAx4k40PD5S6ZtBXtvqi4VImh73tm3k9eJKEcStZU+wWfUBX6KDfNfAL3U3V3y3H 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:253449 Archived-At: Gregory Heytings writes: > Michael, Hi Gregory, > what do you think of that patch? It would be regrettable to > leave that bug unfixed in Emacs 29. Yes, it would be desirable to fix this. But it isn't the end of the world if this doesn't happen, the problem is already evident in Emacs 28, so we don't have a regression. >> By the way, to limit the scope of the potential collateral damages, >> it is also possible to use that condition only when >> completion-styles contain 'substring' or 'flex'. >> >> What do you think of the attached patch? And what do we want to do if there are more completion-styles like this? Extend Tramp then? And there are more use cases like this, which are not working properly. Think about changing the Tramp syntax to `separate', which means a remote file name like "[method/user@host]/path/to/file". If you use default completion, it works like this: - emacs -Q -l tramp --eval '(tramp-change-syntax (quote separate))' - Type "/ [ s TAB" and you see all methods - Continue with "s h / TAB" and you see nonsense :-( - Continue with "d TAB" and you see all possible host names starting with "d" - Select a host name and type "] TAB TAB" and you see the remote file name= s And now with fido: - emacs -Q -l tramp --eval '(tramp-change-syntax (quote separate))' -f fid= o-mode - Type "/ [ s TAB" and you see no completion at all - Continue with "s h / TAB" and you see the same nonsense :-( - Continue with "d TAB" and you see no completion at all - Type host name and type "] TAB TAB" and you see the remote file names Although the default completion isn't perfect (likely a Tramp bug), there is much more wrong with fido. The last days, since you have shown your patch here, I've spent several hours debugging Emacs completion in order to understand what's up. Horrible, because Emacs completion machinery is pretty complex and under-documented (I believe). And honestly, I'm not interested too much in this machinery. It is a pity, that *nobody* who knows this in detail tries to investigate the problem here, although we have already five reports about. Instead, Tramp shall apply a patch which is not related there, which adds further dependencies, which is not working for all use cases, and which is good for making more trouble in the future. My opinion. Anyway, I will try to investigate the completion machinery. No promise that I will succeed. Best regards, Michael.