From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Gregory Heytings via "Bug reports for GNU Emacs, the Swiss army knife of text editors" Newsgroups: gmane.emacs.bugs Subject: bug#41423: 27.0.91; eshell file completion in tramp dir is slow (3 minutes) [regression on pretest] Date: Thu, 27 Aug 2020 14:38:32 +0000 Message-ID: References: <86k116inmr.fsf@sacsa.i-did-not-set--mail-host-address--so-tickle-me> Reply-To: Gregory Heytings Mime-Version: 1.0 Content-Type: text/plain; format=flowed; charset=US-ASCII Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="28824"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Alpine 2.22 (NEB 394 2020-01-19) To: 41423@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Aug 27 16:39:10 2020 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kBJ3V-0007LW-GW for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 27 Aug 2020 16:39:09 +0200 Original-Received: from localhost ([::1]:38032 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kBJ3U-0002tn-DE for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 27 Aug 2020 10:39:08 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:36270) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kBJ3O-0002ta-Q2 for bug-gnu-emacs@gnu.org; Thu, 27 Aug 2020 10:39:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:60270) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kBJ3O-0005im-GK for bug-gnu-emacs@gnu.org; Thu, 27 Aug 2020 10:39:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kBJ3O-0006eF-C3 for bug-gnu-emacs@gnu.org; Thu, 27 Aug 2020 10:39:02 -0400 X-Loop: help-debbugs@gnu.org In-Reply-To: <86k116inmr.fsf@sacsa.i-did-not-set--mail-host-address--so-tickle-me> Resent-From: Gregory Heytings Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 27 Aug 2020 14:39:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 41423 X-GNU-PR-Package: emacs Original-Received: via spool by 41423-submit@debbugs.gnu.org id=B41423.159853911925517 (code B ref 41423); Thu, 27 Aug 2020 14:39:02 +0000 Original-Received: (at 41423) by debbugs.gnu.org; 27 Aug 2020 14:38:39 +0000 Original-Received: from localhost ([127.0.0.1]:43583 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kBJ31-0006dU-Eh for submit@debbugs.gnu.org; Thu, 27 Aug 2020 10:38:39 -0400 Original-Received: from mx.sdf.org ([205.166.94.24]:62120) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kBJ2x-0006dH-Bd for 41423@debbugs.gnu.org; Thu, 27 Aug 2020 10:38:37 -0400 Original-Received: from sdf.org (IDENT:ghe@faeroes.freeshell.org [205.166.94.9]) by mx.sdf.org (8.15.2/8.14.5) with ESMTPS id 07REcYF0007132 (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256 bits) verified NO); Thu, 27 Aug 2020 14:38:34 GMT Original-Received: (from ghe@localhost) by sdf.org (8.15.2/8.12.8/Submit) id 07REcYNY005244; Thu, 27 Aug 2020 14:38:34 GMT X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list 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-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:186541 Archived-At: The root of this bug is that `eshell-complete-commands-list' loops through all executables *on the remote server* with (while comps-in-path ...). That means typically 1000-2000 commands to check, one by one, hence the 3 minutes delay. The easy fix is to hit C-g, which stops this loop.