From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#51143: 29.0.50; Long delay after M-x commandname Date: Tue, 12 Oct 2021 16:39:32 +0300 Message-ID: <83ee8qqs4r.fsf@gnu.org> References: Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="36948"; mail-complaints-to="usenet@ciao.gmane.io" Cc: michael_heerdegen@web.de, 51143@debbugs.gnu.org To: Eduardo Ochs , Stefan Monnier Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Oct 12 15:40:23 2021 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 1maI11-0009PK-JB for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 12 Oct 2021 15:40:23 +0200 Original-Received: from localhost ([::1]:54016 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1maI0z-0004lj-22 for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 12 Oct 2021 09:40:21 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:46214) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1maI0g-0004hB-Lw for bug-gnu-emacs@gnu.org; Tue, 12 Oct 2021 09:40:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:56349) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1maI0g-0008B2-A7 for bug-gnu-emacs@gnu.org; Tue, 12 Oct 2021 09:40:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1maI0g-00074A-7V for bug-gnu-emacs@gnu.org; Tue, 12 Oct 2021 09:40:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 12 Oct 2021 13:40:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 51143 X-GNU-PR-Package: emacs Original-Received: via spool by 51143-submit@debbugs.gnu.org id=B51143.163404599427104 (code B ref 51143); Tue, 12 Oct 2021 13:40:02 +0000 Original-Received: (at 51143) by debbugs.gnu.org; 12 Oct 2021 13:39:54 +0000 Original-Received: from localhost ([127.0.0.1]:39641 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1maI0X-00072v-If for submit@debbugs.gnu.org; Tue, 12 Oct 2021 09:39:53 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:44120) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1maI0Q-00071n-2M for 51143@debbugs.gnu.org; Tue, 12 Oct 2021 09:39:46 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:39568) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1maI0K-0007xx-7l; Tue, 12 Oct 2021 09:39:40 -0400 Original-Received: from [87.69.77.57] (port=2226 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1maI0J-0002qL-Rl; Tue, 12 Oct 2021 09:39:40 -0400 In-Reply-To: (message from Eduardo Ochs on Mon, 11 Oct 2021 23:44:57 -0300) 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:217028 Archived-At: > From: Eduardo Ochs > Date: Mon, 11 Oct 2021 23:44:57 -0300 > > I noticed that when I was invoking commands with M-x commandname and > using tab for completing parts of the name then sometimes there would > be a long delay - sometimes as long as 10 seconds, but my laptop is > quite old - between the RET and the execution of the command. This > delay was big on emacs28 and practically imperceptible on emacs27, and > it seemed that it was getting worse in more recent versions of > emacs28/29. > > I discussed this on help-gnu-emacs before submitting a bug report. The > main links are these ones: > > https://lists.gnu.org/archive/html/help-gnu-emacs/2021-10/msg00232.html Edrx > https://lists.gnu.org/archive/html/help-gnu-emacs/2021-10/msg00259.html MH > https://lists.gnu.org/archive/html/help-gnu-emacs/2021-10/msg00261.html Edrx 2 > https://lists.gnu.org/archive/html/help-gnu-emacs/2021-10/msg00265.html MH 2 > > Let me summarize. The part of "M-x commandname" that takes a long time > is the call to `execute-extended-command--shorter' - like this: > > (execute-extended-command--shorter "find-eev-quick-intro" "find-eev-qui") > > Michael Heerdegen was able to reproduce the problem and profile it. > See this message: > > https://lists.gnu.org/archive/html/help-gnu-emacs/2021-10/msg00265.html MH 2 Stefan, any advice?