[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#9793: 24.0.90; Unwanted tramp connection on eshell completion.
From: |
Thierry Volpiatto |
Subject: |
bug#9793: 24.0.90; Unwanted tramp connection on eshell completion. |
Date: |
Sat, 22 Oct 2011 12:39:52 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.0.90 (gnu/linux) |
Michael Albinus <michael.albinus@gmx.de> writes:
> Stefan Monnier <monnier@iro.umontreal.ca> writes:
>
>>> Because you didn't load tramp.
>>> Connect first to your "trex" or anything else, then close this, and run
>>> eshell and retry the above.
>>> For me too, if i start emacs -Q and i go strait to eshell, all work fine.
>>
>> Ah, I see, I can reproduce it now:
>>
>> % emacs -Q
>> M-x load-library RET tramp RET
>> M-x eshell RET
>> cd /t TAB
>>
>> At that point, Tramp tried to connect to `tic' and to `tequila' (the
>> hosts mentioned in ~/.ssh/known_hosts that start with `t').
>
> `pcomplete-dirs' uses `file-directory-p' as predicate, which is applied
> to all completion candidates. The following patch ought to fix it:
>
> *** /home/albinus/src/emacs/lisp/pcomplete.el.~106161~ 2011-10-22
> 11:31:11.996458454 +0200
> --- /home/albinus/src/emacs/lisp/pcomplete.el 2011-10-22 11:30:20.796204566
> +0200
> ***************
> *** 948,954 ****
>
> (defsubst pcomplete-dirs (&optional regexp)
> "Complete amongst a list of directories."
> ! (pcomplete-entries regexp 'file-directory-p))
>
> ;; generation of completion lists
>
> --- 948,957 ----
>
> (defsubst pcomplete-dirs (&optional regexp)
> "Complete amongst a list of directories."
> ! (pcomplete-entries regexp
> ! (lambda (dir)
> ! (or (file-remote-p (expand-file-name dir))
> ! (file-directory-p dir)))))
>
> ;; generation of completion lists
>
>
> Comments?
Work fine here, thank you very much.
--
Thierry
Get my Gnupg key:
gpg --keyserver pgp.mit.edu --recv-keys 59F29997
- bug#9793: 24.0.90; Unwanted tramp connection on eshell completion., Thierry Volpiatto, 2011/10/19
- bug#9793: 24.0.90; Unwanted tramp connection on eshell completion., Stefan Monnier, 2011/10/19
- bug#9793: 24.0.90; Unwanted tramp connection on eshell completion., Thierry Volpiatto, 2011/10/20
- bug#9793: 24.0.90; Unwanted tramp connection on eshell completion., Stefan Monnier, 2011/10/20
- bug#9793: 24.0.90; Unwanted tramp connection on eshell completion., Thierry Volpiatto, 2011/10/20
- bug#9793: 24.0.90; Unwanted tramp connection on eshell completion., Michael Albinus, 2011/10/22
- bug#9793: 24.0.90; Unwanted tramp connection on eshell completion.,
Thierry Volpiatto <=
- bug#9793: 24.0.90; Unwanted tramp connection on eshell completion., Stefan Monnier, 2011/10/23
- bug#9793: 24.0.90; Unwanted tramp connection on eshell completion., Michael Albinus, 2011/10/24
- bug#9793: 24.0.90; Unwanted tramp connection on eshell completion., Stefan Monnier, 2011/10/24
- bug#9793: 24.0.90; Unwanted tramp connection on eshell completion., Michael Albinus, 2011/10/25
- bug#9793: 24.0.90; Unwanted tramp connection on eshell completion., Stefan Monnier, 2011/10/25
- bug#9793: 24.0.90; Unwanted tramp connection on eshell completion., Michael Albinus, 2011/10/25