From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Michael Albinus Newsgroups: gmane.emacs.bugs Subject: bug#9793: 24.0.90; Unwanted tramp connection on eshell completion. Date: Tue, 25 Oct 2011 14:56:12 +0200 Message-ID: <8739ehgrgz.fsf@gmx.de> References: <87r529a8g2.fsf@gmail.com> <871uu7lcv7.fsf@gmail.com> <87wrbxjrfi.fsf@gmx.de> <87y5wamva0.fsf@gmx.de> <87fwihgxqa.fsf@gmx.de> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1319547475 15423 80.91.229.12 (25 Oct 2011 12:57:55 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 25 Oct 2011 12:57:55 +0000 (UTC) Cc: 9793-done@debbugs.gnu.org, Thierry Volpiatto To: Stefan Monnier Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Oct 25 14:57:50 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 1RIgZh-0001dB-Ui for geb-bug-gnu-emacs@m.gmane.org; Tue, 25 Oct 2011 14:57:50 +0200 Original-Received: from localhost ([::1]:52716 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RIgZh-0003RT-EG for geb-bug-gnu-emacs@m.gmane.org; Tue, 25 Oct 2011 08:57:49 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:39099) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RIgZT-00033M-GG for bug-gnu-emacs@gnu.org; Tue, 25 Oct 2011 08:57:45 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RIgZM-0006fS-OL for bug-gnu-emacs@gnu.org; Tue, 25 Oct 2011 08:57:34 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:51890) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RIgZL-0006en-5M for bug-gnu-emacs@gnu.org; Tue, 25 Oct 2011 08:57:27 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1RIgas-0003W3-VK for bug-gnu-emacs@gnu.org; Tue, 25 Oct 2011 08:59:03 -0400 Resent-From: Michael Albinus Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: bug-gnu-emacs@gnu.org Resent-Date: Tue, 25 Oct 2011 12:59:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: cc-closed 9793 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Mail-Followup-To: 9793@debbugs.gnu.org, michael.albinus@gmx.de Original-Received: via spool by 9793-done@debbugs.gnu.org id=D9793.131954748413448 (code D ref 9793); Tue, 25 Oct 2011 12:59:01 +0000 Original-Received: (at 9793-done) by debbugs.gnu.org; 25 Oct 2011 12:58:04 +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 1RIgZv-0003Uq-SZ for submit@debbugs.gnu.org; Tue, 25 Oct 2011 08:58:04 -0400 Original-Received: from mailout-de.gmx.net ([213.165.64.23]) by debbugs.gnu.org with smtp (Exim 4.69) (envelope-from ) id 1RIgZt-0003UC-4U for 9793-done@debbugs.gnu.org; Tue, 25 Oct 2011 08:58:02 -0400 Original-Received: (qmail invoked by alias); 25 Oct 2011 12:56:16 -0000 Original-Received: from p57BB99F3.dip0.t-ipconnect.de (EHLO detlef.gmx.de) [87.187.153.243] by mail.gmx.net (mp005) with SMTP; 25 Oct 2011 14:56:16 +0200 X-Authenticated: #3708877 X-Provags-ID: V01U2FsdGVkX1+8lxxtjza8j6Ho9owCCS/ujXdHSqLe2OwTHSbiMZ iGtEvhcamHdWc6 In-Reply-To: (Stefan Monnier's message of "Tue, 25 Oct 2011 08:16:31 -0400") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.90 (gnu/linux) X-Y-GMX-Trusted: 0 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Tue, 25 Oct 2011 08:59:02 -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:53118 Archived-At: Stefan Monnier writes: >> Tramp has some code to guess whether it is in completion mode. > > Yuck! > >> Check of `non-essential' is one proof, > > Actually, no. non-essential could be used for other things than completion. Yes. But in the context of Tramp it is a good indicator. > But that's not what I suggest. I suggest to "blindly" return t for > /: only (as well as things like /ssh:: I guess), but not for > /: where we'd still connect and test whether it's indeed > a directory. > >> Inside Tramp it could be behave such a way when it detects it is in >> completion mode. That means, when `non-essential' is set to t. Shall I >> do it this way? > > I suggest to do that regardless of whether we're in completion mode > or not. I've committed such a patch. It is good anyway, because it adds an optimitation for Tramp. This shall solve this bug. However, do we have other other primitive file name operations, which are used for file name completion? We should handle them as well. > Stefan Best regards, Michael.