all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Eyal Lotem <eyal.lotem@gmail.com>
To: Eli Zaretskii <eliz@gnu.org>
Cc: Andreas Schwab <schwab@suse.de>, 22976@debbugs.gnu.org
Subject: bug#22976: 24.5; setting unread-command-events to non cons puts emacs in 100% CPU use
Date: Thu, 10 Mar 2016 14:40:24 +0200	[thread overview]
Message-ID: <CALA94fNXxGUYdR-dCT03h_CeTHwZMNT6YjgSG906q_S+9G2FqA@mail.gmail.com> (raw)
In-Reply-To: <834mcemxbv.fsf@gnu.org>

[-- Attachment #1: Type: text/plain, Size: 1268 bytes --]

On Thu, Mar 10, 2016 at 12:39 PM, Eli Zaretskii <eliz@gnu.org> wrote:

> > Date: Thu, 10 Mar 2016 12:34:08 +0200
> > From: Eyal Lotem <eyal.lotem@gmail.com>
> > Cc: Andreas Schwab <schwab@suse.de>, 22976@debbugs.gnu.org
> >
> > It can be set to any value at all, unfortunately.
>
> That's not what I asked.  I asked whether non-nil, non-cons values
> have any meaning in unread-command-events.
>

Don't think they do. They are an error.

>
> > The problem now is that non-cons/non-nil values are ignored.
> >
> > The loop to repeatedly thinks there's input so it consumes 100% cpu,
> each iteration seeing that it isn't a cons
> > cell, so there's "nothing to do".
>
> Exactly.  So these values aren't ignored, they create an illusion that
> some input is available.  I was thinking about ignoring them entirely,
> i.e. treating such values as nil (and maybe even silently replacing
> them with nil).
>

Ah, sorry I misunderstood originally!

That sounds good to me (though it would be slightly better to warn about it
somewhere, IMO)



>
> The question is: would that kind of change break something?
>

I think most scenarios it would break would be ones that currently consume
100% cpu. So besides scenarios like https://xkcd.com/1172/ it is unlikely :)


-- 
Eyal

[-- Attachment #2: Type: text/html, Size: 2619 bytes --]

  reply	other threads:[~2016-03-10 12:40 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-03-10  8:37 bug#22976: 24.5; setting unread-command-events to non cons puts emacs in 100% CPU use Eyal Lotem
2016-03-10  9:42 ` Andreas Schwab
2016-03-10  9:47   ` Eyal Lotem
2016-03-10 10:25   ` Eli Zaretskii
2016-03-10 10:34     ` Eyal Lotem
2016-03-10 10:39       ` Eli Zaretskii
2016-03-10 12:40         ` Eyal Lotem [this message]
2016-03-26  8:54           ` Eli Zaretskii

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=CALA94fNXxGUYdR-dCT03h_CeTHwZMNT6YjgSG906q_S+9G2FqA@mail.gmail.com \
    --to=eyal.lotem@gmail.com \
    --cc=22976@debbugs.gnu.org \
    --cc=eliz@gnu.org \
    --cc=schwab@suse.de \
    /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.