[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#9134: don't force mystery on user trying to find out what is complet
From: |
jidanni |
Subject: |
bug#9134: don't force mystery on user trying to find out what is completing after the word "ssh" in *shell* |
Date: |
Thu, 21 Jul 2011 07:49:11 +0800 |
When we hit TAB in *shell* after the word "ssh",
* there are no messages about where in the world it is getting its
completions. Unlike dabbrev-expand.
* C-h k TAB reveals nothing good about what is going on.
(rzgrep "ssh" "*.gz" "/usr/share/emacs/24.0.50/lisp/" nil "find . <X>
-type f <F> -exec zgrep <C> -nH -e <R> {} +") reveals
./net/tramp-sh.el.gz:423: (tramp-parse-sconfig "~/.ssh/config")
but C-h e shows that wasn't loaded.
Same with
./pcmpl-unix.el.gz:42:This allows one method of completion of SSH host names,
the other
TRY IT YOURSELF:
$ emacs -Q -f shell
$ ssh C-h TAB
to try to find out where in the world it is getting its completions.
It won't tell you but I found it is in .ssh/config at least for me.
So there should be instructions RIGHT THERE at C-h k TAB
saying how to alter/turn off this.
E.G. if one wants to add a host, how is one supposed to put it into the
comments in that file, or .emacs.
>>>>> "SM" == Stefan Monnier <monnier@iro.umontreal.ca> writes:
>> Recently in M-x shell,
SM> I guess "recently" means "using Emacs Bzr trunk".
$ apt-cache policy $@
emacs-snapshot:
Installed: 1:20110705-1
>> after
>> $ ssh
>> completion becomes different.
SM> Right, it's done according to pcomplete/ssh.
Well all the user knows is he hits C-h k TAB and sees no obvious clue.
>> Either tell me a way to turn this bonus feature off.
SM> I think that (defun pcomplete/ssh () nil) should do the trick.
>> Or tell me a way to add my favorite hosts to a list that it is trying to
>> complete.
SM> Look at the source code of pcomplete/ssh to see how that list is built.
Gobbledygook to we the average user.
SM> Basically, adding hosts in your .ssh/config or .ssh/known_hosts should
SM> do the trick.
OK, by trial and error I found putting "empty entries" there in .ssh/config
Host jidanni.org #for emacs -f shell completion
worked. However the user hitting C-h k TAB won't figure that out and
will need to write in for help.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- bug#9134: don't force mystery on user trying to find out what is completing after the word "ssh" in *shell*,
jidanni <=