From: jidanni@jidanni.org
To: 9134@debbugs.gnu.org
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 [thread overview]
Message-ID: <87fwm0zf60.fsf@jidanni.org> (raw)
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.
next reply other threads:[~2011-07-20 23:49 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-07-20 23:49 jidanni [this message]
2019-10-14 1:48 ` bug#9134: don't force mystery on user trying to find out what is completing after the word "ssh" in *shell* Lars Ingebrigtsen
2019-10-14 3:32 ` Phil Sainty
2019-10-14 4:46 ` Drew Adams
2019-10-14 10:49 ` Phil Sainty
2019-10-14 12:26 ` Stefan Monnier
2019-10-14 14:37 ` Drew Adams
2019-10-14 4:50 ` Lars Ingebrigtsen
2019-10-14 5:08 ` Lars Ingebrigtsen
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87fwm0zf60.fsf@jidanni.org \
--to=jidanni@jidanni.org \
--cc=9134@debbugs.gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.