From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Dmitry Gutov Newsgroups: gmane.emacs.bugs Subject: bug#38560: 27.0.50; Emacs ignores input events during startup Date: Tue, 10 Dec 2019 21:41:02 +0200 Message-ID: <6797a2bb-43fa-0eef-e561-01c9c10127db@yandex.ru> References: <5b5ffb18-1f3f-89a1-b177-ab3cb7f8e362@webzilla.com> <9b469c7d-5ed4-c68a-31e0-a3005efd4233@yandex.ru> <83lfrkb1ys.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="75817"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.9.0 Cc: 38560@debbugs.gnu.org, Juri Linkov To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Dec 10 20:42:15 2019 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1ielOf-000JXG-13 for geb-bug-gnu-emacs@m.gmane.org; Tue, 10 Dec 2019 20:42:13 +0100 Original-Received: from localhost ([::1]:35258 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ielOd-0000iF-HA for geb-bug-gnu-emacs@m.gmane.org; Tue, 10 Dec 2019 14:42:11 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:60571) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ielOV-0000i6-Ti for bug-gnu-emacs@gnu.org; Tue, 10 Dec 2019 14:42:05 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ielOU-0002Ow-MD for bug-gnu-emacs@gnu.org; Tue, 10 Dec 2019 14:42:03 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:50666) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1ielOU-0002OO-Gh for bug-gnu-emacs@gnu.org; Tue, 10 Dec 2019 14:42:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ielOU-0005Wi-El for bug-gnu-emacs@gnu.org; Tue, 10 Dec 2019 14:42:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Dmitry Gutov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 10 Dec 2019 19:42:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 38560 X-GNU-PR-Package: emacs Original-Received: via spool by 38560-submit@debbugs.gnu.org id=B38560.157600689021204 (code B ref 38560); Tue, 10 Dec 2019 19:42:02 +0000 Original-Received: (at 38560) by debbugs.gnu.org; 10 Dec 2019 19:41:30 +0000 Original-Received: from localhost ([127.0.0.1]:56639 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ielNy-0005Vw-BO for submit@debbugs.gnu.org; Tue, 10 Dec 2019 14:41:30 -0500 Original-Received: from mail-wr1-f51.google.com ([209.85.221.51]:45901) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ielNu-0005Ve-IS for 38560@debbugs.gnu.org; Tue, 10 Dec 2019 14:41:29 -0500 Original-Received: by mail-wr1-f51.google.com with SMTP id j42so21414269wrj.12 for <38560@debbugs.gnu.org>; Tue, 10 Dec 2019 11:41:26 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=GTgM7p+TF9660jnkatd+zLhci6YD+u0paPpMlP604C4=; b=Q4kAv1ZEhA4xhzm45ODB4Q9DByLVZRaKnsCRSSJmBM9bKedd655gmwylYVY+2ccg4D gq4/JxFb2fZGuEfwwf2LMbbeyCeYF6AaK1E3fFNFKg2bPiD90t9dMqat4alChWGCDnzO AGEkBOYzq3wlIAb3KwpNVt3l0PMd0tJ83BE8/TPJWwLvSJHGcBuqeettrw8WaFP3ePtM CXiUwvZE1aY/IfAyB/6KC4mOrdeNXBLkKeBB6B+oHSQaUjUjtAVJOzh7XiKrSKYzHHcj aO/tMJ4xFkIN0WWan5hfjBIlQ5Z539S7x02jo0hUPKExWICZP5yBZEm52A3M6JkCIxf9 TIZw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:subject:to:cc:references:from:message-id :date:user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=GTgM7p+TF9660jnkatd+zLhci6YD+u0paPpMlP604C4=; b=h26pnjmt6Jbv/EXStvIq2H2lqlzMr7npkXtWb5rKSPKVFldRzoIqasF/YsUuMIk3Jr 0PFNZZFao2tL5O02ojMHgxv2VxGYYFU6klpcWLm6IXGB4AGkOM3U+grz1eMOtUYsmZ4U tTnfZYXl6QYUT2nCIPjXHy+nTw3bg8F/VTabbPXXVauauyAv6dB4ckELJv5oVg9SCVJe QKEVGOCvYIiyIIu5SbUvcffesPr79qpFCb+ZJgazWbjeBngx7w/X3si6Y9qyo2Thj3E7 pxqZo0T7XXi+X9wSg7JQJzGDs8G1QWNXRXj5yDehxK+4TgN72eqwsR6JrPfqqbjvy9Mz ekJA== X-Gm-Message-State: APjAAAUKj2ruxunMUTdahJFA3vbR7zZsS1FPlwR3PZFj5pbr1hWnL/jT j6w1GB01WvLRRba6HfLqbGm31NCZ X-Google-Smtp-Source: APXvYqxZ2ZrwF/L1kYjHXeD+/QPLjzm171BR0+LNf223qQgxFlFgba1v601tV2cY3tAO0aaKdnqINg== X-Received: by 2002:adf:9b83:: with SMTP id d3mr5175996wrc.54.1576006880300; Tue, 10 Dec 2019 11:41:20 -0800 (PST) Original-Received: from [192.168.0.5] ([212.50.117.215]) by smtp.googlemail.com with ESMTPSA id b16sm4557174wrj.23.2019.12.10.11.41.18 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 10 Dec 2019 11:41:19 -0800 (PST) In-Reply-To: <83lfrkb1ys.fsf@gnu.org> Content-Language: en-US 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.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:173153 Archived-At: On 10.12.2019 18:05, Eli Zaretskii wrote: >> From: Dmitry Gutov >> Date: Tue, 10 Dec 2019 16:14:19 +0200 >> >>> I have a configuration that takes 1-2 seconds to boot up. >>> >>> In previous versions (including the latest Emacs 26) it was rarely a >>> problem because I could always start typing while the configuration >>> finishes loading (e.g. C-x C-f first-chars-of-file-name). >>> >>> Emacs 27, however, ignores most of the keystrokes, so when I do that, by >>> habit, I simply end up in the Scratch buffer with some of the last >>> characters. E.g. "ile-name" in this example. > There was some recent change related to discard-input, no? Here: > > commit 54c792ece6c20297571aa68c613075c8a8152bcc > Author: Juri Linkov > AuthorDate: Sat Nov 30 23:33:41 2019 +0200 > Commit: Juri Linkov > CommitDate: Sat Nov 30 23:33:41 2019 +0200 > > * lisp/subr.el: Add discard-input to more functions. > > * lisp/subr.el (read-char-from-minibuffer-insert-other) > (y-or-n-p-insert-other): Use discard-input in case of user mistake. > (do-after-load-evaluation): Add discard-input before calling 'message', > so in case of the active minibuffer, calling minibuffer-message will allow > sit-for to wait the complete timeout, because discard-input will discard > all initial events that prevent sit-for from waiting during startup. > https://lists.gnu.org/archive/html/emacs-devel/2019-11/msg00581.html This one is indeed the cuplrit. And I think it's the change to do-after-load-evaluation that created this problem. /Cc Juri.