From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: Ivan Kozlov Newsgroups: gmane.emacs.bugs Subject: bug#36733: 27.0.50; Eshell taking long time to enter directory after TAB completion Date: Sat, 29 Feb 2020 12:02:30 +0300 Message-ID: <1698511582966950@iva4-64850291ca1c.qloud-c.yandex.net> References: <1362811582948272@iva5-2a2172cb7cff.qloud-c.yandex.net> <1408181582958424@myt6-636ea6dfd460.qloud-c.yandex.net> <1503001582961076@iva6-22e79380f52c.qloud-c.yandex.net> <1540741582963000@sas1-ffdbcd5f1d77.qloud-c.yandex.net> Mime-Version: 1.0 Content-Type: text/plain Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="36193"; mail-complaints-to="usenet@ciao.gmane.io" To: 36733 <36733@debbugs.gnu.org> Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Feb 29 10:03:11 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 1j7y1f-0009Ja-1F for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 29 Feb 2020 10:03:11 +0100 Original-Received: from localhost ([::1]:58606 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1j7y1e-00054o-2r for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 29 Feb 2020 04:03:10 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:41088) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1j7y1X-00054T-GR for bug-gnu-emacs@gnu.org; Sat, 29 Feb 2020 04:03:04 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1j7y1W-0001qk-Gy for bug-gnu-emacs@gnu.org; Sat, 29 Feb 2020 04:03:03 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:56471) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1j7y1W-0001qa-04 for bug-gnu-emacs@gnu.org; Sat, 29 Feb 2020 04:03:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1j7y1V-0006KT-Rk for bug-gnu-emacs@gnu.org; Sat, 29 Feb 2020 04:03:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Ivan Kozlov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 29 Feb 2020 09:03:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 36733 X-GNU-PR-Package: emacs Original-Received: via spool by 36733-submit@debbugs.gnu.org id=B36733.158296696224300 (code B ref 36733); Sat, 29 Feb 2020 09:03:01 +0000 Original-Received: (at 36733) by debbugs.gnu.org; 29 Feb 2020 09:02:42 +0000 Original-Received: from localhost ([127.0.0.1]:34211 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1j7y1B-0006Jr-Oa for submit@debbugs.gnu.org; Sat, 29 Feb 2020 04:02:41 -0500 Original-Received: from forward500o.mail.yandex.net ([37.140.190.195]:42186) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1j7y18-0006JX-Ba for 36733@debbugs.gnu.org; Sat, 29 Feb 2020 04:02:40 -0500 Original-Received: from mxback9j.mail.yandex.net (mxback9j.mail.yandex.net [IPv6:2a02:6b8:0:1619::112]) by forward500o.mail.yandex.net (Yandex) with ESMTP id 08CE260503 for <36733@debbugs.gnu.org>; Sat, 29 Feb 2020 12:02:31 +0300 (MSK) Original-Received: from localhost (localhost [::1]) by mxback9j.mail.yandex.net (mxback/Yandex) with ESMTP id BzijBfDvto-2UpmgXP9; Sat, 29 Feb 2020 12:02:30 +0300 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.ru; s=mail; t=1582966950; bh=dJYFUu5f02fsoflx0RpLIUxQPpmOBmNIFnSaR54PBdw=; h=References:Date:Message-Id:Subject:In-Reply-To:To:From; b=miwgP2CfBljjBmO3NwaEC+o3DO3KGJpudHJ1co3fwGe7APmKapJdZBVQLv1BlFzXT 5kopMETS5m2UlGlDbYKXqUUgA0Hb30N+aVsdE0zZ5V11AiJ3pgXrZp6qRORWPEiG6H eDfQ9DMZ3KmgxY6UGBFuIcodh89uaTxQvUirCG54= Authentication-Results: mxback9j.mail.yandex.net; dkim=pass header.i=@yandex.ru Original-Received: by iva4-64850291ca1c.qloud-c.yandex.net with HTTP; Sat, 29 Feb 2020 12:02:30 +0300 In-Reply-To: <1540741582963000@sas1-ffdbcd5f1d77.qloud-c.yandex.net> X-Mailer: Yamail [ http://yandex.ru ] 5.0 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: 209.51.188.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-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:176658 Archived-At: 29.02.2020, 10:56, "Ivan Kozlov" : >Maybe it is eshell that should tell the completion mode to stop when a command has been entered. Yes, it must be the way. (defun eshell-send-input (&optional use-region queue-p no-newline) "Send the input received to Eshell for parsing and processing. After `eshell-last-output-end', sends all text from that marker to point as input. Before that marker, calls `eshell-get-old-input' to retrieve old input, copies it to the end of the buffer, and sends it. If USE-REGION is non-nil, the current region (between point and mark) will be used as input. If QUEUE-P is non-nil, input will be queued until the next prompt, rather than sent to the currently active process. If no process, the input is processed immediately. If NO-NEWLINE is non-nil, the input is sent without an implied final newline." (interactive "P") ;; Note that the input string does not include its terminal newline. (let ((proc-running-p (and (eshell-interactive-process) (not queue-p))) (inhibit-point-motion-hooks t) (inhibit-modification-hooks t)) + (completion-in-region-mode -1) (unless (and proc-running-p (not (eq (process-status (eshell-interactive-process)) 'run))) The bug is gone. With my two changes, all is good.