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: Thu, 10 Mar 2016 12:25:02 +0200 Message-ID: <838u1qmxz5.fsf@gnu.org> References: Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1457605544 13827 80.91.229.3 (10 Mar 2016 10:25:44 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 10 Mar 2016 10:25:44 +0000 (UTC) Cc: 22976@debbugs.gnu.org, eyal.lotem@gmail.com To: Andreas Schwab Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Mar 10 11:25:33 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 1adxmX-00073f-Vb for geb-bug-gnu-emacs@m.gmane.org; Thu, 10 Mar 2016 11:25:26 +0100 Original-Received: from localhost ([::1]:47456 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1adxmX-0004Kt-3t for geb-bug-gnu-emacs@m.gmane.org; Thu, 10 Mar 2016 05:25:25 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:38991) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1adxmB-0003qD-5P for bug-gnu-emacs@gnu.org; Thu, 10 Mar 2016 05:25:03 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1adxmA-0007Wx-B4 for bug-gnu-emacs@gnu.org; Thu, 10 Mar 2016 05:25:03 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:45165) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1adxmA-0007Wq-7H for bug-gnu-emacs@gnu.org; Thu, 10 Mar 2016 05:25:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84) (envelope-from ) id 1adxmA-0000ZS-3P for bug-gnu-emacs@gnu.org; Thu, 10 Mar 2016 05:25:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 10 Mar 2016 10:25:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 22976 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 22976-submit@debbugs.gnu.org id=B22976.14576054992183 (code B ref 22976); Thu, 10 Mar 2016 10:25:02 +0000 Original-Received: (at 22976) by debbugs.gnu.org; 10 Mar 2016 10:24:59 +0000 Original-Received: from localhost ([127.0.0.1]:42292 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1adxm7-0000Z9-De for submit@debbugs.gnu.org; Thu, 10 Mar 2016 05:24:59 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:47956) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1adxm6-0000Yu-5U for 22976@debbugs.gnu.org; Thu, 10 Mar 2016 05:24:58 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1adxly-0007Uq-0h for 22976@debbugs.gnu.org; Thu, 10 Mar 2016 05:24:53 -0500 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:39229) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1adxlx-0007Um-Ty; Thu, 10 Mar 2016 05:24:49 -0500 Original-Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:1220 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.82) (envelope-from ) id 1adxlx-0005a8-5e; Thu, 10 Mar 2016 05:24:49 -0500 In-reply-to: (message from Andreas Schwab on Thu, 10 Mar 2016 10:42:53 +0100) 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:114698 Archived-At: > From: Andreas Schwab > Date: Thu, 10 Mar 2016 10:42:53 +0100 > Cc: 22976@debbugs.gnu.org > > Eyal Lotem writes: > > > As can be reproduced easily: > > > > (setq unread-command-events 1) -- emacs now at 100% CPU > > (setq unread-command-events nil) -- emacs OK again > > Don't do that then. Can unread-command-events be anything but nil or a cons cell? If not, we could change the few tests of the value to explicitly ignore non-nil, non-cons values. Do you see any immediate problems with such a change? Thanks.