From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Thierry Volpiatto Newsgroups: gmane.emacs.bugs Subject: bug#9793: 24.0.90; Unwanted tramp connection on eshell completion. Date: Sat, 22 Oct 2011 12:39:52 +0200 Message-ID: <87sjmle2dj.fsf@gmail.com> References: <87r529a8g2.fsf@gmail.com> <871uu7lcv7.fsf@gmail.com> <87wrbxjrfi.fsf@gmx.de> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1319280053 29213 80.91.229.12 (22 Oct 2011 10:40:53 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sat, 22 Oct 2011 10:40:53 +0000 (UTC) Cc: 9793@debbugs.gnu.org To: Michael Albinus Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Oct 22 12:40:48 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 1RHZ0S-0004BY-I6 for geb-bug-gnu-emacs@m.gmane.org; Sat, 22 Oct 2011 12:40:48 +0200 Original-Received: from localhost ([::1]:51571 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RHZ0R-0003sR-Jx for geb-bug-gnu-emacs@m.gmane.org; Sat, 22 Oct 2011 06:40:47 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:37441) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RHZ0O-0003rv-GW for bug-gnu-emacs@gnu.org; Sat, 22 Oct 2011 06:40:45 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RHZ0N-0004Fy-Di for bug-gnu-emacs@gnu.org; Sat, 22 Oct 2011 06:40:44 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:55858) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RHZ0N-0004Fo-9M for bug-gnu-emacs@gnu.org; Sat, 22 Oct 2011 06:40:43 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1RHZ1d-00021f-TL for bug-gnu-emacs@gnu.org; Sat, 22 Oct 2011 06:42:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Thierry Volpiatto Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 22 Oct 2011 10:42:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 9793 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 9793-submit@debbugs.gnu.org id=B9793.13192800867738 (code B ref 9793); Sat, 22 Oct 2011 10:42:01 +0000 Original-Received: (at 9793) by debbugs.gnu.org; 22 Oct 2011 10:41:26 +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 1RHZ12-00020h-R0 for submit@debbugs.gnu.org; Sat, 22 Oct 2011 06:41:26 -0400 Original-Received: from mail-bw0-f44.google.com ([209.85.214.44]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RHZ10-00020U-6I for 9793@debbugs.gnu.org; Sat, 22 Oct 2011 06:41:23 -0400 Original-Received: by bkas6 with SMTP id s6so5377352bka.3 for <9793@debbugs.gnu.org>; Sat, 22 Oct 2011 03:39:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version:content-type; bh=pV4Mkl9NIrR3nfSqzxkVjtvXAQ5I9oAsWKTtmSyHWxM=; b=x6OLlBFPJSpaO03w7NTUv0EV8mw4/d1sriahM/Jtu8qJ8DUV455+KmOBKBvjfeKhC+ 9LjZabR17O+Z/b1F3bN7uoPyaIfjm7+2JGW6QiCI1wXDErfxm+fbD9s9aFd7g1INHUKL 0JAAb1+gbbn++vyXvcUd5AHbixoX081AKKxao= Original-Received: by 10.223.63.206 with SMTP id c14mr30727542fai.7.1319279996860; Sat, 22 Oct 2011 03:39:56 -0700 (PDT) Original-Received: from thierry-MM061 (87.77.197.77.rev.sfr.net. [77.197.77.87]) by mx.google.com with ESMTPS id o16sm28069393fag.21.2011.10.22.03.39.54 (version=TLSv1/SSLv3 cipher=OTHER); Sat, 22 Oct 2011 03:39:55 -0700 (PDT) In-Reply-To: <87wrbxjrfi.fsf@gmx.de> (Michael Albinus's message of "Sat, 22 Oct 2011 11:39:45 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.90 (gnu/linux) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Sat, 22 Oct 2011 06:42:01 -0400 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) 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:53019 Archived-At: Michael Albinus writes: > Stefan Monnier 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