From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.bugs Subject: bug#41423: 27.0.91; eshell file completion in tramp dir is slow (3 minutes) [regression on pretest] Date: Tue, 01 Sep 2020 09:08:28 -0400 Message-ID: References: <87mu2d7hka.fsf@gmx.de> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="16443"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cc: Tim Vaughan , rrandresf@gmail.com, Michael Albinus , 41423@debbugs.gnu.org To: Gregory Heytings Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Sep 01 15:09: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 1kD629-00049f-Pj for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 01 Sep 2020 15:09:09 +0200 Original-Received: from localhost ([::1]:39942 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kD628-0001qx-SP for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 01 Sep 2020 09:09:08 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:39864) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kD622-0001qp-Pu for bug-gnu-emacs@gnu.org; Tue, 01 Sep 2020 09:09:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:43812) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kD622-0004J0-HA for bug-gnu-emacs@gnu.org; Tue, 01 Sep 2020 09:09:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kD622-00073a-Ad for bug-gnu-emacs@gnu.org; Tue, 01 Sep 2020 09:09: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: Tue, 01 Sep 2020 13:09: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.159896571727091 (code B ref 41423); Tue, 01 Sep 2020 13:09:02 +0000 Original-Received: (at 41423) by debbugs.gnu.org; 1 Sep 2020 13:08:37 +0000 Original-Received: from localhost ([127.0.0.1]:55358 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kD61d-00072t-5P for submit@debbugs.gnu.org; Tue, 01 Sep 2020 09:08:37 -0400 Original-Received: from mailscanner.iro.umontreal.ca ([132.204.25.50]:54110) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kD61b-00072g-VU for 41423@debbugs.gnu.org; Tue, 01 Sep 2020 09:08:36 -0400 Original-Received: from pmg2.iro.umontreal.ca (localhost.localdomain [127.0.0.1]) by pmg2.iro.umontreal.ca (Proxmox) with ESMTP id 63FBF80533; Tue, 1 Sep 2020 09:08:30 -0400 (EDT) Original-Received: from mail01.iro.umontreal.ca (unknown [172.31.2.1]) by pmg2.iro.umontreal.ca (Proxmox) with ESMTP id DAE838066B; Tue, 1 Sep 2020 09:08:28 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca; s=mail; t=1598965708; bh=vCsC+fsC6Oj6sCbFY7J68aziATNxlHsuD92XEGJ7Kk8=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From; b=MOdY9wIn6pYv5iVb/L1hP/mZQBX0AnBnDLdLc/bHrvN0Q5ZEhMlfMRBxFDowNC1oh xs95F1UiZrlgmofbfBTkssr98Ap9rp6aZBFoRnb39MVgTO5KgJpfeMOnICU1+Ot/SX i1ExpiD63InPGe4+M021Qyw81t0weXi1/K6N8ObApMKW71PFGHLXv4oa7e9FjCxLaW rydAC/pfJNCFLhUthg/77HxooeSYcIcoeoSccGiODQxskNxOX7pjJbMm6o7/G1qzNw RbFDyIh7EysixH7I7osKxGQ2FjOF1Q3R4zmszFK9aNeqTtvTQLK+UYxvtnIYusBFLZ oG1+Byf4ua/qw== Original-Received: from alfajor (unknown [45.72.232.131]) by mail01.iro.umontreal.ca (Postfix) with ESMTPSA id 8A0A81202FB; Tue, 1 Sep 2020 09:08:28 -0400 (EDT) In-Reply-To: (Gregory Heytings's message of "Tue, 1 Sep 2020 13:50:16 +0200 (CEST)") 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:186831 Archived-At: > This will print: > > calling pcomplete-completions-at-point > returning from pcomplete-completions-at-point, call took 0.00 seconds > calling pcomplete-completions-at-point > returning from pcomplete-completions-at-point, call took 0.00 seconds > calling pcomplete-completions-at-point > returning from pcomplete-completions-at-point, call took N seconds [...] > Note again that this third call to pcomplete-completions-at-point does > nothing useful. It just build a list of all possible commands, and throws > it away. Exactly. And the fix is to make this third call return in 0.00 seconds like the others by making it return not the list of commands but a mere function (which will return that list of commands only when called, but in the present case it won't be called). Stefan