From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#22976: 24.5; setting unread-command-events to non cons puts emacs in 100% CPU use Date: Sat, 26 Mar 2016 11:54:32 +0300 Message-ID: <83wpopzkjb.fsf@gnu.org> References: <838u1qmxz5.fsf@gnu.org> <834mcemxbv.fsf@gnu.org> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1458982582 15965 80.91.229.3 (26 Mar 2016 08:56:22 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 26 Mar 2016 08:56:22 +0000 (UTC) Cc: schwab@suse.de, 22976-done@debbugs.gnu.org To: Eyal Lotem Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Mar 26 09:56:10 2016 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1ajk0w-00088q-2D for geb-bug-gnu-emacs@m.gmane.org; Sat, 26 Mar 2016 09:56:10 +0100 Original-Received: from localhost ([::1]:59378 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ajk0v-0004tM-6G for geb-bug-gnu-emacs@m.gmane.org; Sat, 26 Mar 2016 04:56:09 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:58517) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ajk0r-0004tD-FN for bug-gnu-emacs@gnu.org; Sat, 26 Mar 2016 04:56:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ajk0o-000351-9r for bug-gnu-emacs@gnu.org; Sat, 26 Mar 2016 04:56:05 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:41137) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ajk0o-00034s-6d for bug-gnu-emacs@gnu.org; Sat, 26 Mar 2016 04:56:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ajk0o-0005cT-1s for bug-gnu-emacs@gnu.org; Sat, 26 Mar 2016 04:56:02 -0400 Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-To: bug-gnu-emacs@gnu.org Resent-Date: Sat, 26 Mar 2016 08:56:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: cc-closed 22976 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Mail-Followup-To: 22976@debbugs.gnu.org, eliz@gnu.org, eyal.lotem@gmail.com Original-Received: via spool by 22976-done@debbugs.gnu.org id=D22976.145898250821529 (code D ref 22976); Sat, 26 Mar 2016 08:56:01 +0000 Original-Received: (at 22976-done) by debbugs.gnu.org; 26 Mar 2016 08:55:08 +0000 Original-Received: from localhost ([127.0.0.1]:38263 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ajjzw-0005bA-90 for submit@debbugs.gnu.org; Sat, 26 Mar 2016 04:55:08 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:39233) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ajjzu-0005au-U4 for 22976-done@debbugs.gnu.org; Sat, 26 Mar 2016 04:55:07 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ajjzm-0002wN-Mt for 22976-done@debbugs.gnu.org; Sat, 26 Mar 2016 04:55:01 -0400 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:49777) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ajjzm-0002wJ-KA; Sat, 26 Mar 2016 04:54:58 -0400 Original-Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:1765 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.82) (envelope-from ) id 1ajjzl-000707-Sz; Sat, 26 Mar 2016 04:54:58 -0400 In-reply-to: (message from Eyal Lotem on Thu, 10 Mar 2016 14:40:24 +0200) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] 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: 208.118.235.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-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:115506 Archived-At: > Date: Thu, 10 Mar 2016 14:40:24 +0200 > From: Eyal Lotem > Cc: Andreas Schwab , 22976@debbugs.gnu.org > > > 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) No further comments, so I installed a fix along the above-mentioned lines on the emacs-25 branch, and I'm marking this bug done.