From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Michael Albinus via "Bug reports for GNU Emacs, the Swiss army knife of text editors" Newsgroups: gmane.emacs.bugs Subject: bug#70792: 30.0.50; [PATCH] Add Eshell support for expanding absolute file names within the current remote connection Date: Thu, 09 May 2024 21:10:44 +0200 Message-ID: <8734qq4x8r.fsf@gmx.de> References: <5b881f54-4c29-f8d8-d1f7-57b44e7cfc80@gmail.com> <86y18nb3ap.fsf@gnu.org> <86cypybx3f.fsf@gnu.org> <320dbb86-07b5-03ce-3ef0-a25d7978c214@gmail.com> <865xvpbzvq.fsf@gnu.org> <920fab98-d9e8-b4cd-c9bd-8bec428813eb@gmail.com> <86a5l0a195.fsf@gnu.org> <86wmo4888l.fsf@gnu.org> <87cypu4zv4.fsf@gmx.de> <86h6f66cm9.fsf@gnu.org> Reply-To: Michael Albinus 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="21468"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: jporterbugs@gmail.com, 70792@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu May 09 21:11:29 2024 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 1s59Av-0005MN-3Z for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 09 May 2024 21:11:29 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1s59Ae-0007Se-PO; Thu, 09 May 2024 15:11:13 -0400 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 1s59AW-0007Qh-TA for bug-gnu-emacs@gnu.org; Thu, 09 May 2024 15:11:05 -0400 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1s59AW-00031U-Lc for bug-gnu-emacs@gnu.org; Thu, 09 May 2024 15:11:04 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1s59AU-0000Sl-Iz for bug-gnu-emacs@gnu.org; Thu, 09 May 2024 15:11:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Michael Albinus Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 09 May 2024 19:11:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 70792 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 70792-submit@debbugs.gnu.org id=B70792.17152818571773 (code B ref 70792); Thu, 09 May 2024 19:11:02 +0000 Original-Received: (at 70792) by debbugs.gnu.org; 9 May 2024 19:10:57 +0000 Original-Received: from localhost ([127.0.0.1]:40779 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1s59AO-0000SX-O5 for submit@debbugs.gnu.org; Thu, 09 May 2024 15:10:57 -0400 Original-Received: from mout.gmx.net ([212.227.17.20]:52755) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1s59AI-0000SR-QQ for 70792@debbugs.gnu.org; Thu, 09 May 2024 15:10:54 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmx.de; s=s31663417; t=1715281845; x=1715886645; i=michael.albinus@gmx.de; bh=IUIebgTrupgiN4/mPKNp3WtWh/xu7rR3oKe6une/XJw=; h=X-UI-Sender-Class:From:To:Cc:Subject:In-Reply-To:References:Date: Message-ID:MIME-Version:Content-Type:Content-Transfer-Encoding:cc: content-transfer-encoding:content-type:date:from:message-id: mime-version:reply-to:subject:to; b=g6GcCU1ecqKEPrHa95tFavYQV2QhyTp4kHQ88v5dc5SPoMUKTorZ/AQmUOUwiAfn iioeKv2vcKlMrpwqQAXL4H48F69Pqb20yIP6vvdkmaoX/BBQ7S4gs0Nnyd8CVNqXL xQ1PZj/YeFffgE7jezsu55W7eTX4XPDKSPUzLZHfw7NLn/K1FE3UAC2/oIR4oe/yB 0wjqHeGN0FQJom99YELvtT5pzrrP1t+GF75lQIGdFCuhEHeKBo62hJMsorNy/WiZJ 3PKEvWGoyIml2i8dCgsTG70wxYhDXV5Msppxbg6RuLZnSzMxY0furLKs41UHHtrCL goZEBkQJUJrnu/E+qQ== X-UI-Sender-Class: 724b4f7f-cbec-4199-ad4e-598c01a50d3a Original-Received: from gandalf.gmx.de ([185.89.39.4]) by mail.gmx.net (mrgmx105 [212.227.17.168]) with ESMTPSA (Nemesis) id 1M8hVB-1s0SCC3CfB-004gNz; Thu, 09 May 2024 21:10:45 +0200 In-Reply-To: <86h6f66cm9.fsf@gnu.org> (Eli Zaretskii's message of "Thu, 09 May 2024 21:53:18 +0300") X-Provags-ID: V03:K1:23WbNAUTyY0Umh8iQ6s7HmoYhW5AJTF/JAncbRmCIlcHe/imPC6 LsVdmyMRXj/mQf45LrCZTGv5OXCO22J9zHkD6VCauZ+3q2iZ1zejdjPkn4HU9wIaoMSFzP+ 2tAknA2bvJGiOlLMI+PqYV9qu4+gKHd33pawgwmTar5LJbkvoVJAQB75QR7ryQee26S8cbN MBmuLe86gPT2fwu9hgy8w== UI-OutboundReport: notjunk:1;M01:P0:is5F1BP8GjU=;66RY8EmB84WEC2UoPNNW+4wHkpf S/pLL9k2Ik5c5eqSqjSrPM8TsNwZwBU1Jbnte+9T+y1sclxvGkNljeDpTeoV2q0PIX37/UCYy y3oRcYCnre19QYT69bFhqcQjI1qzCT/YvYzNjzeQwJDmLr7ANJDiZTzZ6UQIGG2w2c2rDLfjC iQ9VX/P4Zy+sD5o5sae/QW9m2Dvnq/nfyrTuIaWS+L6XlGhLk+eIUrKIrScY2pIbppKiP3WK+ ZZx5whOIKLLeyzjFHNJJaRHNm1vcGbnY1oP1TNwwHpRYPOWWYmBVJgyHXRj6nJrFtzi+8peUJ RzGBKW1OBE/y1agiQxsePEAEQqnZhfr0E8ByYOhBXrx5+uvOuYYiFU0iox87cY5mXHxjvcDps p5RDGkCm1E4g/bTHPvCRvB41LkMMWfbwGPYLFbQEkIXg3hbDZmspSNQ0ujpQVaowwXNNVGkAZ hUBDywhmm2Onjny96P+OdvvGPuixEkHsWcGhCRYsri5gog/j73CIYJaEvrLYS+zGY+BQrMFi5 bu0mFfh47LTkvDG3rqVvOt5BB84bDKa7YaA+60RBPjMkBS+OAMO1YsngRM0FAiGIiw3NLiswv NMEIYmpnAMCu1PfwghfUung9MCsYBONyf2jiUvhfRujkZt50vTtKDKv76tN1oyTcg6VmQQd7O HaO+aV38Z7Kl2MrMJF7hgiq9hnylD9GBoZ3ohJ0qSALm1ZSzTosqU/NDq6dc23VsgTQHpUuW0 6x8X8+OaQWLU5nUNeQJhBhbS2tTyP2tAMC1ikNeqAGTI38GKGcjfOVeEZG39I/s2ttg+Ng/W 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:284771 Archived-At: Eli Zaretskii writes: >> From: Michael Albinus >> Cc: Jim Porter , 70792@debbugs.gnu.org >> Date: Thu, 09 May 2024 20:14:07 +0200 >> >> Eli Zaretskii writes: >> >> There is no public Tramp syntax for "/local:" or "/localhost:" or alike >> in Tramp. Tramp uses internally, in `tramp-null-hop', the "local" metho= d >> in order to cache properties of the local machine. But this isn't >> intended to be a public API. >> >> > I'd like Michael's opinion on this, since we will be "invading" the >> > Tramp methods space. >> >> I'm kind of undecided. We might use this method internally for Eshell, >> as "/local::/path/to/file", but it should be clear that it won't be an >> official Tramp method. There might be problems, because all methods the >> basic Tramp functions work for must be registered in `tramp-methods'. >> >> And there might be other problems if a user changes the Tramp >> syntax. The so-called simplified syntax doesn't use explicit method >> strings, see (info "(tramp) Change file name syntax") . > > What would you suggest as an alternative? > > Since there's no official Tramp method for the local host, we could > invent one now. We could start with "/local::". I'm simply not so optimistic like Jim, that it will be easy. Likely, se need a full Tramp backend for this, say tramp-local.el. The respective file name handler should remove the "/local::" prefix from the arguments, call the original file operation, and add the "/local::" prefix on the results where appropriate. And somehow, I'd like to check that this is called from Eshell only. Am I paranoid? Will people use it on their own? Best regards, Michael.