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.devel Subject: Re: Emacs syntax for filenames to mean "absolute location on the current remote host"? Date: Tue, 29 Aug 2023 14:57:08 +0300 Message-ID: <83wmxegiy3.fsf@gnu.org> References: <749b83b2-a8f8-76c5-83e8-2f4044476f74@gmail.com> <877cpeuwyi.fsf@gmx.de> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="2356"; mail-complaints-to="usenet@ciao.gmane.io" Cc: jporterbugs@gmail.com, emacs-devel@gnu.org To: Michael Albinus Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Tue Aug 29 13:58:05 2023 Return-path: Envelope-to: ged-emacs-devel@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 1qaxMD-0000OE-Oq for ged-emacs-devel@m.gmane-mx.org; Tue, 29 Aug 2023 13:58:05 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qaxLs-0006NU-Ia; Tue, 29 Aug 2023 07:57:45 -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 1qaxLq-0006Mm-TX for emacs-devel@gnu.org; Tue, 29 Aug 2023 07:57:42 -0400 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 1qaxLq-0008Oq-JD; Tue, 29 Aug 2023 07:57:42 -0400 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=W70BcbkDUF1BR1ATTliu7SX1mOz0I/BegCK05K9QEFU=; b=bInx5NAbH5VW 8NDdStJxrVxJAWU6+mf0ET3nnbyat3enWbfizmIsobyjxl8n5O8FkIwLcHnmcJR8zgPP6TmSja0hI aavfmC0hGCD9EmcXKkGji4b2nVGViJUI/cgstLnjeP4zDUF+vp9jryzj5HpjaFFEB/oQ3tnvCucMs wbZDxmmHM/mezoDWtnAvHsFNPt/3KF8jrderRPBItG/ZvpwWRfjCkj8fs9Px3s3HS3qOA+pFGC//G ohQ+tikyqF3+3vP85OeY4mDaVYJe/vAHLRYIghwZzxQvmHU/ay9zgov8iiH2v6isK+JMNzQ9nxviY VpAoq2ZQjRdtzaNS7HTtyQ==; In-Reply-To: <877cpeuwyi.fsf@gmx.de> (message from Michael Albinus on Tue, 29 Aug 2023 09:30:45 +0200) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.devel:309498 Archived-At: > From: Michael Albinus > Cc: emacs-devel@gnu.org > Date: Tue, 29 Aug 2023 09:30:45 +0200 > > What if you declare, that in Eshell an absolute file name "/foo/bar" is > always on "host"? Then it doesn't matter, whether a user writes "cd /foo/bar" > or "*cd /foo/bar". This would cover most use cases in Eshell, and it is > simpler to type than "cd /.:/foo/bar". > > In the few cases a user means the local absolute file name "/foo/bar", > she still can type "cd /:/foo/bar". I like this suggestion, FWIW. It's simple to remember, easy to use, and doesn't require us to come up with a whole new slew of handlers.