From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.bugs Subject: bug#9793: 24.0.90; Unwanted tramp connection on eshell completion. Date: Sun, 23 Oct 2011 13:47:30 -0400 Message-ID: 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 1319392126 25980 80.91.229.12 (23 Oct 2011 17:48:46 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sun, 23 Oct 2011 17:48:46 +0000 (UTC) Cc: 9793@debbugs.gnu.org, Thierry Volpiatto To: Michael Albinus Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Oct 23 19:48:41 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 1RI2A4-0007WC-SV for geb-bug-gnu-emacs@m.gmane.org; Sun, 23 Oct 2011 19:48:41 +0200 Original-Received: from localhost ([::1]:53231 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RI2A4-0004Ur-46 for geb-bug-gnu-emacs@m.gmane.org; Sun, 23 Oct 2011 13:48:40 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:54862) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RI2A1-0004Um-7t for bug-gnu-emacs@gnu.org; Sun, 23 Oct 2011 13:48:38 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RI2A0-0000Ma-1q for bug-gnu-emacs@gnu.org; Sun, 23 Oct 2011 13:48:37 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:52548) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RI2A0-0000MW-0L for bug-gnu-emacs@gnu.org; Sun, 23 Oct 2011 13:48:36 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1RI2BN-0003vg-VV for bug-gnu-emacs@gnu.org; Sun, 23 Oct 2011 13:50:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Stefan Monnier Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 23 Oct 2011 17:50: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.131939214615039 (code B ref 9793); Sun, 23 Oct 2011 17:50:01 +0000 Original-Received: (at 9793) by debbugs.gnu.org; 23 Oct 2011 17:49:06 +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 1RI2AU-0003uW-2D for submit@debbugs.gnu.org; Sun, 23 Oct 2011 13:49:06 -0400 Original-Received: from ironport2-out.teksavvy.com ([206.248.154.181] helo=ironport2-out.pppoe.ca) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RI2AR-0003u1-PZ for 9793@debbugs.gnu.org; Sun, 23 Oct 2011 13:49:04 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Aq8FAE1SpE5MCqLO/2dsb2JhbABDpwqCB4EGgW4BAQQBJy8jBQsLNBIUGA0kiBO1DYM2hQoEoTuERQ X-IronPort-AV: E=Sophos;i="4.69,394,1315195200"; d="scan'208";a="144006198" Original-Received: from 76-10-162-206.dsl.teksavvy.com (HELO pastel.home) ([76.10.162.206]) by ironport2-out.pppoe.ca with ESMTP/TLS/ADH-AES256-SHA; 23 Oct 2011 13:47:31 -0400 Original-Received: by pastel.home (Postfix, from userid 20848) id D8ECA58B4A; Sun, 23 Oct 2011 13:47:30 -0400 (EDT) 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: Sun, 23 Oct 2011 13:50: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:53038 Archived-At: > `pcomplete-dirs' uses `file-directory-p' as predicate, which is applied > to all completion candidates. The following patch ought to fix it: > --8<---------------cut here---------------start------------->8--- > *** /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 > --8<---------------cut here---------------end--------------->8--- > Comments? This looks like a workaround rather than a fix. Also, I notice that in `shell' (rather than `eshell') the problem does not occur. So I'd like to better understand what's going on. Stefan