From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eduardo Ochs Newsgroups: gmane.emacs.bugs Subject: bug#51143: 29.0.50; Long delay after M-x commandname Date: Mon, 11 Oct 2021 23:44:57 -0300 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="26048"; mail-complaints-to="usenet@ciao.gmane.io" To: 51143@debbugs.gnu.org, michael_heerdegen@web.de Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Oct 12 04:46:30 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 1ma7oD-0006ZR-Bw for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 12 Oct 2021 04:46:29 +0200 Original-Received: from localhost ([::1]:41062 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ma7oB-0005DP-AQ for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 11 Oct 2021 22:46:27 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:33346) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ma7nn-0005D2-Li for bug-gnu-emacs@gnu.org; Mon, 11 Oct 2021 22:46:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:49781) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ma7nm-00035I-Lp for bug-gnu-emacs@gnu.org; Mon, 11 Oct 2021 22:46:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ma7nm-0002eK-K7 for bug-gnu-emacs@gnu.org; Mon, 11 Oct 2021 22:46:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eduardo Ochs Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 12 Oct 2021 02:46:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 51143 X-GNU-PR-Package: emacs X-Debbugs-Original-To: bug-gnu-emacs@gnu.org, Michael Heerdegen Original-Received: via spool by submit@debbugs.gnu.org id=B.163400673310137 (code B ref -1); Tue, 12 Oct 2021 02:46:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 12 Oct 2021 02:45:33 +0000 Original-Received: from localhost ([127.0.0.1]:33094 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ma7nA-0002dF-26 for submit@debbugs.gnu.org; Mon, 11 Oct 2021 22:45:33 -0400 Original-Received: from lists.gnu.org ([209.51.188.17]:44448) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ma7n8-0002d5-0Y for submit@debbugs.gnu.org; Mon, 11 Oct 2021 22:45:23 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:33256) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ma7n1-00055p-VE for bug-gnu-emacs@gnu.org; Mon, 11 Oct 2021 22:45:20 -0400 Original-Received: from mail-ed1-x532.google.com ([2a00:1450:4864:20::532]:42563) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ma7mx-0008CE-Mc for bug-gnu-emacs@gnu.org; Mon, 11 Oct 2021 22:45:14 -0400 Original-Received: by mail-ed1-x532.google.com with SMTP id t16so53231217eds.9 for ; Mon, 11 Oct 2021 19:45:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:from:date:message-id:subject:to; bh=w3lEmvJSDJuuPQOTeH5ynbBnemMYfbRoLZZhTtwIXxE=; b=FjeJpdOIQgIXq6PJj8zSr6iEdu2j1eTbrUvrP+/rGRsKNWcTnqOvxQrB+SyhgrG3tQ 78++Mk6646eZ+PGOozmCdx2lBnb5iDIXO4qmX8Udw/2hXfYyqeuErQdbXR9659RPSQGs piSqNZdgbHpK11vrMfvLwrVRK2uSqn24j+/CZasd7+4ZuZI45HGZyMeP64ijX3CYUSGX 0cDQWMijEBTKy/FvMNJ3gBhFXiMiuIedioVkhBeuCHkO571djcHrwRliAQi4Zr71g51m QWMAEA65agH51WbUs0iEAcTrGb9a9Em0tpl7PXop4YqYrLRKj5bmvX7ng3EYuSAe0oua taJg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=w3lEmvJSDJuuPQOTeH5ynbBnemMYfbRoLZZhTtwIXxE=; b=LXjkfxM4F34ef0feN3toqMx3l430QPf2RoyqOSlWmTHieB8rBQqbRYy6FWKNJx1aJQ 3ThoLMUvrTYCu37p/6zqSFRuPMNj4PqkkhbadIR4lmVxLzq89JEfTbgB1iRAkeaO5AgS i7WCXtdS/bzwvP7LTfLv1axu1xUO/7mS16Up5vK2sG0b/O6mpTd3ZuXqLsDgTygEK9Ex Hgeff1opghBQXAO7G2zeqQdCJQhcSAibxZvpmQlwxuZN149qvQRNoWXwec/HEW7Ch9mo dPzceCc+yGZFMtieJPuUdZjuizmAToDm5LjAl5+fLbVLTzFNIXqV9M6Xq7HcF2NiNtAd /M0A== X-Gm-Message-State: AOAM533ejcM3lxcOpZoxOgwbqIkYinywtNoXGCeboTOUVimYfsF+Y/lo E5hBcRPfp0Zly6ver/TtaqDpDQQ/RClnjHjLKYqpfpLQFnQ= X-Google-Smtp-Source: ABdhPJw2ZL/EUDMcLhvpH5/Xx/GRmL/mxvVoD7THKSrbMUmiS7VlqFMUGz95L2OqWKTainJokx6XwpFgrBrh+9fEIwA= X-Received: by 2002:a17:906:d937:: with SMTP id rn23mr30507128ejb.101.1634006708689; Mon, 11 Oct 2021 19:45:08 -0700 (PDT) Received-SPF: pass client-ip=2a00:1450:4864:20::532; envelope-from=eduardoochs@gmail.com; helo=mail-ed1-x532.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action 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:216982 Archived-At: 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 Cheers, Eduardo Ochs http://angg.twu.net/#eev In GNU Emacs 29.0.50 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.24, cairo version 1.16.0) of 2021-10-09 built on scylla Repository revision: cc202c713be60355dbcf4e5ea87603c5e16a92db Repository branch: master Windowing system distributor 'The X.Org Foundation', version 11.0.12011000 System Description: Debian GNU/Linux 11 (bullseye) Configured using: 'configure --with-modules' (etc etc)