From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.help Subject: Re: completion in M-x shell after the word "ssh" Date: Sat, 16 Jul 2011 11:57:51 -0400 Organization: A noiseless patient Spider Message-ID: References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1332964231 13048 80.91.229.3 (28 Mar 2012 19:50:31 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 28 Mar 2012 19:50:31 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Mar 28 21:50:30 2012 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1SCyt4-0000Ln-CH for geh-help-gnu-emacs@m.gmane.org; Wed, 28 Mar 2012 21:50:30 +0200 Original-Received: from localhost ([::1]:41159 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SCylz-0003nD-KV for geh-help-gnu-emacs@m.gmane.org; Wed, 28 Mar 2012 15:43:11 -0400 Original-Path: usenet.stanford.edu!news.glorb.com!feeder.erje.net!eternal-september.org!feeder.eternal-september.org!.POSTED!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 23 Injection-Info: mx04.eternal-september.org; posting-host="rBrWS0LxsQCX3HMNycJoxg"; logging-data="8775"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18y4EgEFYcIk9ATIpvMhttD" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) Cancel-Lock: sha1:oolRFu3EP5QKwgznICAAZMsPASo= sha1:ZVS2khNeOyH8YQuUj+v2S3ITDpo= Original-Xref: usenet.stanford.edu gnu.emacs.help:187803 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:84131 Archived-At: > Recently in M-x shell, I guess "recently" means "using Emacs Bzr trunk". > after > $ ssh > completion becomes different. Right, it's done according to pcomplete/ssh. > Either tell me a way to turn this bonus feature off. 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. Look at the source code of pcomplete/ssh to see how that list is built. Basically, adding hosts in your .ssh/config or .ssh/known_hosts should do the trick. Stefan