From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Jim Porter Newsgroups: gmane.emacs.bugs Subject: bug#65356: 30.0.50; [wishlist] Support Tramp method, user name and host name completion in eshell Date: Fri, 18 Aug 2023 20:26:54 -0700 Message-ID: References: <87r0o1r1io.fsf@gmx.de> <4b4a64de-846a-ed2a-f409-80ea75e9cb57@gmail.com> <87il9crgqh.fsf@gmx.de> <87bkf4r2xd.fsf@gmx.de> <875y5cqt9a.fsf@gmx.de> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="28371"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 65356@debbugs.gnu.org To: Stefan Monnier , Michael Albinus Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Aug 19 05:28:31 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 1qXCdb-0007Ed-8i for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 19 Aug 2023 05:28:31 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qXCdA-0008TD-OG; Fri, 18 Aug 2023 23:28:04 -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 1qXCd8-0008SO-K5 for bug-gnu-emacs@gnu.org; Fri, 18 Aug 2023 23:28:02 -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 1qXCd8-0003HM-Cd for bug-gnu-emacs@gnu.org; Fri, 18 Aug 2023 23:28:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qXCd8-0004oR-Oj for bug-gnu-emacs@gnu.org; Fri, 18 Aug 2023 23:28:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Jim Porter Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 19 Aug 2023 03:28:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 65356 X-GNU-PR-Package: emacs Original-Received: via spool by 65356-submit@debbugs.gnu.org id=B65356.169241562518383 (code B ref 65356); Sat, 19 Aug 2023 03:28:02 +0000 Original-Received: (at 65356) by debbugs.gnu.org; 19 Aug 2023 03:27:05 +0000 Original-Received: from localhost ([127.0.0.1]:49150 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qXCcC-0004mQ-Rm for submit@debbugs.gnu.org; Fri, 18 Aug 2023 23:27:05 -0400 Original-Received: from mail-oa1-x34.google.com ([2001:4860:4864:20::34]:53629) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qXCcB-0004lt-FL for 65356@debbugs.gnu.org; Fri, 18 Aug 2023 23:27:03 -0400 Original-Received: by mail-oa1-x34.google.com with SMTP id 586e51a60fabf-1c4cf775a14so885942fac.3 for <65356@debbugs.gnu.org>; Fri, 18 Aug 2023 20:27:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1692415616; x=1693020416; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:mime-version:date:message-id:from:to:cc :subject:date:message-id:reply-to; bh=GaSyCXyM869vCwURH6Zm3cQpSp1ZZk3x2Jhdejrrqvo=; b=RzRZP4QjEOvecKmHzZhA6v8NGtVQgSs4cyjwjo6pUG5EzDC/Gy6vYZ3s3sNBNBTXXN 9ZfrpQ/8FOQ6/7W3xU7wFMaM60Z9sUnLM0bb4zC/yeYqlBp6S6ONKQWPjNwOex+LMRgL WBoEz+Q6HBdsXph67LWFWwTfT+4les2XVY+QfJynklvj37oDMLBsJ/SzVs2wpKS2T2iu 7kmGypzxlSIWVGMMgO0uHbPFjaKO0UqVtWJmC+hKIuxVpi2QWLScaJ56M2iEg0EVb4pf +blwLm+ETkyAxdDHSd01+Ocbs4q8EF4Xc9QQ8pwOqAU6RHHpso9/Dp+vITD7npUDUq7X WMAA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1692415616; x=1693020416; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=GaSyCXyM869vCwURH6Zm3cQpSp1ZZk3x2Jhdejrrqvo=; b=kdeRgk2LIyPF5nXYzypunMYR4cf7pwMx26Oe1iSGiaMQNS3e77PCXEYuFHisF/N+fA ir80UvD5iJy1nAvT6zf+BWH7fuPRorOJnLRQRuF1fvoQkGRbAV5foSgkIHiCIFomO3ps cbFIlb4yAp69hNN4EWhJ+JJeMdfyo1LEyH6OR9W9IldLFbt3kKidp64dAa80vOZ1SWZU ZXqAD1Alw6yHFHtpL1aZ2hM6bLGNJrudPlTe0Q5Eb34Uw0IM2pqlWRlpBBSH8MuOUsYA wEnDCFpa8rXqa4hbPcLconBSKS+19LhhDx8TtFGeQqDMf8nPhjnwHCv6HWJNjqElatTM ptdA== X-Gm-Message-State: AOJu0YwbT68k3v/0Sb8zr8pOE+r7Rm2CRv3lrtZEDvakD84IEbC9o//i k4yR0rF82BL9KUkueRI2mew= X-Google-Smtp-Source: AGHT+IGDkQpinKfyfDoYwI0/ZyjRUXzOsE64qqYfI6eosCZJ122nnRah5o88LgB7E7q/c2fCKlLBhA== X-Received: by 2002:a05:6870:4721:b0:1c8:d72a:d6b8 with SMTP id b33-20020a056870472100b001c8d72ad6b8mr1431290oaq.36.1692415616378; Fri, 18 Aug 2023 20:26:56 -0700 (PDT) Original-Received: from [192.168.1.2] (cpe-76-168-148-233.socal.res.rr.com. [76.168.148.233]) by smtp.googlemail.com with ESMTPSA id mv6-20020a17090b198600b00264044cca0fsm1247999pjb.1.2023.08.18.20.26.55 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 18 Aug 2023 20:26:55 -0700 (PDT) Content-Language: en-US In-Reply-To: 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:267807 Archived-At: On 8/18/2023 3:33 PM, Stefan Monnier via Bug reports for GNU Emacs, the Swiss army knife of text editors wrote: >> Yes. However, there is already another problem in shell-mode. My patch >> completes only incomplete Tramp file names, like "/ss". Complete Tramp >> file names are handled by pcomplete-dirs already. So we see in a *shell* >> buffer, w/o my patch: > > Good point. > > Still, we have the problem that `pcomplete/` should be used only > for external commands (because they are independent from the language > used to write the command, a.k.a the shell), but for things like `cd` we > should be more precise to distinguish the completion rules for Eshell's > `cd` from those of bash's `cd`. That should be possible by defining 'pcomplete/eshell-mode/CMD', but that runs into two issues: 1) it's annoying to manually write all of these, and 2) there may be other contexts in Eshell we want to tab-complete remote directories that aren't covered by the command-specific Pcomplete functions like that. (#1 should be fixable with a new version of 'eshell-eval-using-options', but I haven't looked at that in much detail yet.)