From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: jidanni@jidanni.org Newsgroups: gmane.emacs.bugs 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 Message-ID: <87fwm0zf60.fsf@jidanni.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1311207975 31088 80.91.229.12 (21 Jul 2011 00:26:15 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 21 Jul 2011 00:26:15 +0000 (UTC) To: 9134@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Jul 21 02:26:11 2011 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Qjh5d-0002yO-Se for geb-bug-gnu-emacs@m.gmane.org; Thu, 21 Jul 2011 02:26:10 +0200 Original-Received: from localhost ([::1]:40654 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Qjh5c-0001rC-KR for geb-bug-gnu-emacs@m.gmane.org; Wed, 20 Jul 2011 20:26:08 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:37980) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Qjh5Z-0001qp-9F for bug-gnu-emacs@gnu.org; Wed, 20 Jul 2011 20:26:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Qjh5X-0001Ji-Bm for bug-gnu-emacs@gnu.org; Wed, 20 Jul 2011 20:26:05 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:53893) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Qjh5X-0001Jd-1x for bug-gnu-emacs@gnu.org; Wed, 20 Jul 2011 20:26:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1Qjh5V-0004gn-T5; Wed, 20 Jul 2011 20:26:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: jidanni@jidanni.org Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 21 Jul 2011 00:26:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 9134 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.131120795918015 (code B ref -1); Thu, 21 Jul 2011 00:26:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 21 Jul 2011 00:25:59 +0000 Original-Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Qjh5R-0004gV-Kx for submit@debbugs.gnu.org; Wed, 20 Jul 2011 20:25:58 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Qjh5P-0004gJ-JE for submit@debbugs.gnu.org; Wed, 20 Jul 2011 20:25:57 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Qjh5I-0001IQ-VC for submit@debbugs.gnu.org; Wed, 20 Jul 2011 20:25:50 -0400 Original-Received: from lists.gnu.org ([140.186.70.17]:49656) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Qjh5I-0001IF-7S for submit@debbugs.gnu.org; Wed, 20 Jul 2011 20:25:48 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:37925) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Qjh5F-0001oq-0o for bug-gnu-emacs@gnu.org; Wed, 20 Jul 2011 20:25:47 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Qjh5C-0001H4-4K for bug-gnu-emacs@gnu.org; Wed, 20 Jul 2011 20:25:44 -0400 Original-Received: from caiajhbdcbhh.dreamhost.com ([208.97.132.177]:33841 helo=homiemail-a7.g.dreamhost.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Qjh5B-0001Gs-7t for bug-gnu-emacs@gnu.org; Wed, 20 Jul 2011 20:25:41 -0400 Original-Received: from homiemail-a7.g.dreamhost.com (localhost [127.0.0.1]) by homiemail-a7.g.dreamhost.com (Postfix) with ESMTP id BEB7C25C062; Wed, 20 Jul 2011 17:25:39 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; c=nofws; d=jidanni.org; h=from:to:cc:subject :date:message-id:mime-version:content-type; q=dns; s=jidanni.org ; b=Zbg1V8t+L6ZOOjWvFgzUbT9XMlQq7x0rIwiPO7NTnwm6Br293HNeRTXfuxaL AkK3cRwZxf4N2SsDDgp8CKaJGbUp1s40mtNdw0nfbCloEGP6oE76rQyO841gjxRf YOtFp+6hREs/Zr0HntSpUMxMiiYKNOaKwC8GY/L9VTILPUc= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=jidanni.org; h=from:to:cc :subject:date:message-id:mime-version:content-type; s= jidanni.org; bh=+/amBWyCzbsSDQwKeU8JyH7DBH4=; b=VnSvzRaq4Kt6D5CS d2H0ZoYjralE/MwUMqOWn8kglAciM4iO5EiYh0lyFi6Ge8weU6qT+7+jSeqN75L5 WLdydYWztRm1zDeuhBfd5rQOpE3NJ4IfvdTZ8GNFZBGqZiYn1ScBRA+PpNXoqnIS 0h06tEXP4ng7cFNmZgjrHNTy3vg= Original-Received: from jidanni.org (218-163-3-95.dynamic.hinet.net [218.163.3.95]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) (Authenticated sender: jidanni@jidanni.org) by homiemail-a7.g.dreamhost.com (Postfix) with ESMTPSA id 2C79D25C064; Wed, 20 Jul 2011 17:25:39 -0700 (PDT) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Wed, 20 Jul 2011 20:26:01 -0400 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 140.186.70.43 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.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:49487 Archived-At: 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 . -type f -exec zgrep -nH -e {} +") 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 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.