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#23006: 25.0.92; Loading Tramp breaks pcomplete in eshell-mode Date: Fri, 18 Mar 2016 12:13:28 -0400 Message-ID: References: <871t7d4ion.fsf@gmx.de> <87oaagi128.fsf@gmx.de> <877fh0hovs.fsf@gmx.de> <756f60a7-bdf9-a806-b9d6-dbf17f0ebaab@yandex.ru> <87y49gg9sm.fsf@gmx.de> <845ef936-dec1-eac9-db2a-f2bb25f3a830@yandex.ru> <87egb8faxv.fsf@gmx.de> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1458317665 32623 80.91.229.3 (18 Mar 2016 16:14:25 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 18 Mar 2016 16:14:25 +0000 (UTC) Cc: 23006@debbugs.gnu.org, Dmitry Gutov To: Michael Albinus Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Mar 18 17:14:13 2016 Return-path: Envelope-to: geb-bug-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 1agx2Q-0001L4-KY for geb-bug-gnu-emacs@m.gmane.org; Fri, 18 Mar 2016 17:14:10 +0100 Original-Received: from localhost ([::1]:44736 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1agx2Q-000642-0C for geb-bug-gnu-emacs@m.gmane.org; Fri, 18 Mar 2016 12:14:10 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:55521) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1agx2L-00063x-Up for bug-gnu-emacs@gnu.org; Fri, 18 Mar 2016 12:14:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1agx2I-0001vn-PA for bug-gnu-emacs@gnu.org; Fri, 18 Mar 2016 12:14:05 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:55708) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1agx2I-0001vj-ME for bug-gnu-emacs@gnu.org; Fri, 18 Mar 2016 12:14:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1agx2I-0004sC-Fq for bug-gnu-emacs@gnu.org; Fri, 18 Mar 2016 12:14:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Stefan Monnier Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 18 Mar 2016 16:14:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 23006 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 23006-submit@debbugs.gnu.org id=B23006.145831761418691 (code B ref 23006); Fri, 18 Mar 2016 16:14:02 +0000 Original-Received: (at 23006) by debbugs.gnu.org; 18 Mar 2016 16:13:34 +0000 Original-Received: from localhost ([127.0.0.1]:52834 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1agx1q-0004rP-KV for submit@debbugs.gnu.org; Fri, 18 Mar 2016 12:13:34 -0400 Original-Received: from ironport2-out.teksavvy.com ([206.248.154.181]:38246) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1agx1q-0004rE-1A for 23006@debbugs.gnu.org; Fri, 18 Mar 2016 12:13:34 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: A0A2FgA731xV/xSQs2tcgxCEAoVVu0CEfoJNBAICgTw7EgEBAQEBAQGBCkEFg10BAQMBViMFCws0EhQYDSSINwjPIwEBAQEBAQQBAQEBHos6hQUHhC0Fi0SpQCOEFCKCeAEBAQ X-IPAS-Result: A0A2FgA731xV/xSQs2tcgxCEAoVVu0CEfoJNBAICgTw7EgEBAQEBAQGBCkEFg10BAQMBViMFCws0EhQYDSSINwjPIwEBAQEBAQQBAQEBHos6hQUHhC0Fi0SpQCOEFCKCeAEBAQ X-IronPort-AV: E=Sophos;i="5.13,465,1427774400"; d="scan'208";a="196674513" Original-Received: from 107-179-144-20.cpe.teksavvy.com (HELO pastel.home) ([107.179.144.20]) by ironport2-out.teksavvy.com with ESMTP; 18 Mar 2016 12:13:28 -0400 Original-Received: by pastel.home (Postfix, from userid 20848) id 7108B5FE67; Fri, 18 Mar 2016 12:13:28 -0400 (EDT) In-Reply-To: <87egb8faxv.fsf@gmx.de> (Michael Albinus's message of "Fri, 18 Mar 2016 09:27:08 +0100") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1.50 (gnu/linux) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.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:115038 Archived-At: > tramp-send-command([#("scp" 0 3 (tramp-default t)) nil "adb" "" nil] "cd ~ && pwd") > tramp-sh-handle-expand-file-name("/adb:" "/") > apply(tramp-sh-handle-expand-file-name ("/adb:" "/")) > tramp-sh-file-name-handler(expand-file-name "/adb:" "/") > apply(tramp-sh-file-name-handler expand-file-name ("/adb:" "/")) > tramp-file-name-handler(expand-file-name "/adb:" "/") > expand-file-name("adb:" "/") > apply(expand-file-name ("adb:" "/")) > tramp-completion-run-real-handler(expand-file-name ("adb:" "/")) > tramp-completion-file-name-handler(expand-file-name "adb:" "/") > file-directory-p("adb:") And I think here we have another related problem: (file-directory-p "/adb:") should not try to connect to the "adb" host, because this name is ambiguous. A big part of the problem here is our support for the "/:" syntax. I wonder if we could demote this syntax. One option is of course to drop it altogether (I'm biased: I never use it). But maybe another is to only support it in substitute-in-file-name, where it'd get expanded to its more verbose equivalent. Stefan