From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#60505: 29.0.60; Fido Mode and Tramp Completion Date: Thu, 02 Feb 2023 11:15:27 +0200 Message-ID: <83pmasxwb4.fsf@gnu.org> References: <87k024918k.fsf@jroy.ca> <8dea9f3e0e411c315b04@heytings.org> <87tu15m6g7.fsf@gmx.de> <8dea9f3e0eb47ac9e4ab@heytings.org> <371ba1d0be1f14c7c798@heytings.org> <8aadf0ddd54d67a3213d@heytings.org> <87a62jmwj6.fsf@gmx.de> <87o7qwm3dd.fsf@gmx.de> <43562d4dd9c31382eb40@heytings.org> <87k011dtw2.fsf@gmx.de> <43562d4dd93037f7d01f@heytings.org> <834js4zi69.fsf@gnu.org> <87cz6seanu.fsf@gmx.de> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="35656"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 60505@debbugs.gnu.org, gregory@heytings.org, julien@jroy.ca To: Michael Albinus , Stefan Monnier Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Feb 02 10:16:16 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 1pNVhX-00097j-SE for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 02 Feb 2023 10:16:15 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pNVhM-0004L7-0n; Thu, 02 Feb 2023 04:16: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 1pNVhL-0004Kv-7z for bug-gnu-emacs@gnu.org; Thu, 02 Feb 2023 04:16: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 1pNVhK-0003yQ-VL for bug-gnu-emacs@gnu.org; Thu, 02 Feb 2023 04:16:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pNVhK-0007K3-BJ for bug-gnu-emacs@gnu.org; Thu, 02 Feb 2023 04:16:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 02 Feb 2023 09:16: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.167532934025733 (code B ref 60505); Thu, 02 Feb 2023 09:16:02 +0000 Original-Received: (at 60505) by debbugs.gnu.org; 2 Feb 2023 09:15:40 +0000 Original-Received: from localhost ([127.0.0.1]:60820 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pNVgy-0006g2-3L for submit@debbugs.gnu.org; Thu, 02 Feb 2023 04:15:40 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:44828) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pNVgu-0006Ob-Qi for 60505@debbugs.gnu.org; Thu, 02 Feb 2023 04:15:38 -0500 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pNVgo-0003qY-NM; Thu, 02 Feb 2023 04:15:30 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=JEy4kG34Cpe3Xn44NQU1KoU2tgfsZSQriMIKmNIHX1o=; b=drjNO+qpnwnU 6Tlz/NzCoznAGXPhv6PCWkJXO1KK6YQ5Zzn8CyXnzncICZgLnINq2kD8t+81fuZw508JaGaoXDO1g aqYfG6z2S0cshPsHA6Ne2pkGcpU7O+th3G2hpXaU8+afXRgLHBBHicDFWdF75NE/TM6euB+jJgFaQ FbDqK5f3SINQoMRzDXTpQsQbecPkrWMYKwXoFkE1NBOussvk2rxTLyFdwUEAfC73c7/V9vukeo29k VpH6j42PyZywb51vjEwQQK42ZpS9a24PMRx5ETuPfe7P0JdrxbdOsd1/IWWOipPGYwn/KcM7VSGnR NWwYpQ5yf538b8/+3cvCRQ==; Original-Received: from [87.69.77.57] (helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pNVgn-0002GE-Vb; Thu, 02 Feb 2023 04:15:30 -0500 In-Reply-To: <87cz6seanu.fsf@gmx.de> (message from Michael Albinus on Thu, 02 Feb 2023 09:25:41 +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:254640 Archived-At: > From: Michael Albinus > Cc: Gregory Heytings , 60505@debbugs.gnu.org, > julien@jroy.ca > Date: Thu, 02 Feb 2023 09:25:41 +0100 > > > From my POV, it is very reasonable to expect that completion > > mechanisms know about Tramp syntax and support it. Tramp became long > > ago an integral part of the Emacs core, so its syntax is as important > > to support as any other syntactical aspects of file names in Emacs, > > such as the "/:" "quoting". > > I could imagine that the completion machinery offers an API that a > package could register its own idea of a file name syntax. Plus a hook, > for parts of that file name the package is responsible itself. This > would avoid the need to check in the completion machinery, which Tramp > syntax is recent. I won't object to developing such a mechanism. Stefan, would that make sense and/or be reasonably practical to implement? > Other packages but Tramp would profit as well. For example, running > "emacs -Q", typing "/: TAB", removes the colon and offers completions > for "/". I don't know whether this is really right; there is a reason > that a user has started with "/:". That's true, but completing after typing just "/:" doesn't make a lot of sense to me; maybe I'm missing something. OTOH, I also don't understand why remove the colon in this case. If we know which code does that, perhaps we could look into its VCS history and learn something.