GNU bug report logs - #65356
30.0.50; [wishlist] Support Tramp method, user name and host name completion in eshell

Previous Next

Package: emacs;

Reported by: Michael Albinus <michael.albinus <at> gmx.de>

Date: Thu, 17 Aug 2023 18:03:01 UTC

Severity: wishlist

Merged with 74177

Found in versions 29.4, 30.0.50

Fixed in version 30.1

Done: Michael Albinus <michael.albinus <at> gmx.de>

Bug is archived. No further changes may be made.

Full log


Message #29 received at 65356 <at> debbugs.gnu.org (full text, mbox):

From: Jim Porter <jporterbugs <at> gmail.com>
To: Stefan Monnier <monnier <at> iro.umontreal.ca>,
 Michael Albinus <michael.albinus <at> gmx.de>
Cc: 65356 <at> debbugs.gnu.org
Subject: Re: 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
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/<CMD>` 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.)




This bug report was last modified 256 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.