all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: Dmitry Gutov <dgutov@yandex.ru>
Cc: 38560@debbugs.gnu.org
Subject: bug#38560: 27.0.50; Emacs ignores input events during startup
Date: Tue, 10 Dec 2019 18:05:31 +0200	[thread overview]
Message-ID: <83lfrkb1ys.fsf@gnu.org> (raw)
In-Reply-To: <9b469c7d-5ed4-c68a-31e0-a3005efd4233@yandex.ru> (message from Dmitry Gutov on Tue, 10 Dec 2019 16:14:19 +0200)

> From: Dmitry Gutov <dgutov@yandex.ru>
> 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 <juri@linkov.net>
  AuthorDate: Sat Nov 30 23:33:41 2019 +0200
  Commit:     Juri Linkov <juri@linkov.net>
  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

Or maybe this one:

  commit 4e4e5508582b1b5a2e738f4490400f2d78a5f343
  Author:     Juri Linkov <juri@linkov.net>
  AuthorDate: Sun Nov 17 23:51:55 2019 +0200
  Commit:     Juri Linkov <juri@linkov.net>
  CommitDate: Sun Nov 17 23:51:55 2019 +0200

      * lisp/subr.el (read-char-from-minibuffer, y-or-n-p): Remove discard-input.

      (do-after-load-evaluation): Replace run-with-timer with run-with-idle-timer
      to give a chance for the minibuffer to handle initial events before sit-for.
      https://lists.gnu.org/archive/html/emacs-devel/2019-11/msg00581.html

If these aren't the cause, can you bisect?





  reply	other threads:[~2019-12-10 16:05 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-12-10 14:11 bug#38560: 27.0.50; Emacs ignores input events during startup Dmitry Gutov
2019-12-10 14:14 ` Dmitry Gutov
2019-12-10 16:05   ` Eli Zaretskii [this message]
2019-12-10 19:41     ` Dmitry Gutov
2019-12-10 23:47     ` Juri Linkov
2019-12-11  3:35       ` Eli Zaretskii
2019-12-11 16:15         ` Eli Zaretskii
2019-12-11 23:07         ` Juri Linkov
2019-12-12  4:37           ` Eli Zaretskii
2019-12-12 22:43             ` Juri Linkov

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=83lfrkb1ys.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=38560@debbugs.gnu.org \
    --cc=dgutov@yandex.ru \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.