From debbugs-submit-bounces@debbugs.gnu.org Thu Mar 10 03:38:02 2016 Received: (at submit) by debbugs.gnu.org; 10 Mar 2016 08:38:03 +0000 Received: from localhost ([127.0.0.1]:42224 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1adw6c-0006KR-C2 for submit@debbugs.gnu.org; Thu, 10 Mar 2016 03:38:02 -0500 Received: from eggs.gnu.org ([208.118.235.92]:50561) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1adw6a-0006Jw-Mp for submit@debbugs.gnu.org; Thu, 10 Mar 2016 03:38:01 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1adw6T-0003Tn-Mt for submit@debbugs.gnu.org; Thu, 10 Mar 2016 03:37:55 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50,FREEMAIL_FROM, HTML_MESSAGE,T_DKIM_INVALID autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:49480) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1adw6T-0003Tj-Ja for submit@debbugs.gnu.org; Thu, 10 Mar 2016 03:37:53 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:41532) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1adw6R-0005FR-Qd for bug-gnu-emacs@gnu.org; Thu, 10 Mar 2016 03:37:53 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1adw6Q-0003TU-1Y for bug-gnu-emacs@gnu.org; Thu, 10 Mar 2016 03:37:51 -0500 Received: from mail-wm0-x22b.google.com ([2a00:1450:400c:c09::22b]:33120) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1adw6P-0003S4-NU for bug-gnu-emacs@gnu.org; Thu, 10 Mar 2016 03:37:49 -0500 Received: by mail-wm0-x22b.google.com with SMTP id l68so18419935wml.0 for ; Thu, 10 Mar 2016 00:37:48 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to; bh=ACK589wVdZRnJxk7Az7hpHoiGOiyZZ73mgqempgJneI=; b=eq3OBGxi0VO6C/l8sMm8+EiC3vC+e7JsyKoxDclOtdZtOkB06DytIvRYW69QC+sIHR wxpivQjm4blJ9FEW+wZagr8lN85U9OrrGerxk+u/mwMsg48axqcDjRVaUpvJhAxUj4Gh 0ysAlMYtPZ5AFutoUI7c8xnZtlhzIOMUvOuSgV9kDEC5yAQRLZNii0acd2B81uYM+HQO EO1YcprJE09qgjOOyjZx8+obDKjGA+3oGvA0gb47iybsBTfd5DgwVG6l3RKjXcSFhyIM p1dnMQ0a0DwJAgyaM6l0Eu2mP9K/RN/vUNGZdgtPbgxb85uXzygcJF8DZxI0okE5WGz4 IxPA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:date:message-id:subject:from:to; bh=ACK589wVdZRnJxk7Az7hpHoiGOiyZZ73mgqempgJneI=; b=Cm9Owhh2wRvB+vo9aha0paGIFVvh1dDFl6C50mPXvJjyn/oecjHDpHamtxoiuUheED R1hweUU4snPsFYNeOws0k49BBZyzqjRk5El9ik/3OUYUaN1RQC2bJrtWb+UNXDLQB9OJ C9Z2qPlHAyON9YqgAKy/DOrdg9j0COqk7baDBeGEgbmlxro5FdLtJb2vWCRKI8VsleF3 ytamMgeJ0+2xQ1SO4TaCwvfgFtoX07fEA3imrfnH0XobkrB9Njlnm2uDuwr6HDH5n0Cd fpGCL/zzZ0AIBzjupbposjuRnmgaGk0Na4oYWJn5ptjPoh2g/w5WMT4KzN/p0n86MmVY 4pRQ== X-Gm-Message-State: AD7BkJI4OXo5frlkzueLP2xULSvqEo2iWxfIcYbbvazoJaLmFM41b3kq72FrJuK+EL0sDs/ra/TIRXSvReaHeA== MIME-Version: 1.0 X-Received: by 10.194.103.5 with SMTP id fs5mr2323230wjb.42.1457599067556; Thu, 10 Mar 2016 00:37:47 -0800 (PST) Received: by 10.28.94.66 with HTTP; Thu, 10 Mar 2016 00:37:47 -0800 (PST) Date: Thu, 10 Mar 2016 10:37:47 +0200 Message-ID: Subject: 24.5; setting unread-command-events to non cons puts emacs in 100% CPU use From: Eyal Lotem To: bug-gnu-emacs@gnu.org Content-Type: multipart/alternative; boundary=047d7bf10ad6a5987a052dadbac1 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -4.0 (----) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -4.0 (----) --047d7bf10ad6a5987a052dadbac1 Content-Type: text/plain; charset=UTF-8 As can be reproduced easily: (setq unread-command-events 1) -- emacs now at 100% CPU (setq unread-command-events nil) -- emacs OK again In GNU Emacs 24.5.1 (x86_64-unknown-linux-gnu, GTK+ Version 3.10.8) of 2015-12-11 on eyal-XPS13-9333 Windowing system distributor `The X.Org Foundation', version 11.0.11501000 System Description: Linux Mint 17.3 Rosa Configured using: `configure --prefix=/usr/local' Important settings: value of $LC_MONETARY: en_US.UTF-8 value of $LC_NUMERIC: en_US.UTF-8 value of $LC_TIME: en_US.UTF-8 value of $LANG: en_US.UTF-8 locale-coding-system: utf-8-unix Major mode: Emacs-Lisp Minor modes in effect: column-enforce-mode: t global-auto-revert-mode: t delete-selection-mode: t global-undo-tree-mode: t undo-tree-mode: t better-registers: t show-paren-mode: t ido-everywhere: t global-git-gutter+-mode: t git-gutter+-mode: t diff-auto-refine-mode: t global-git-commit-mode: t shell-dirtrack-mode: t helm-autoresize-mode: t global-eclim-mode: t recentf-mode: t tooltip-mode: t electric-indent-mode: t mouse-wheel-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t line-number-mode: t transient-mark-mode: t Recent messages: Grep finished (matches found) [2 times] scroll-up-command: End of buffer [9 times] Mark set Mark saved where search started [8 times] Quit [2 times] user-error: No further undo information Mark set scroll-down-one: Beginning of buffer [16 times] Mark set [2 times] scroll-up-command: End of buffer Load-path shadows: /usr/local/share/emacs/24.5/lisp/emacs-lisp/cl-lib hides ~/.emacs.d/lisp/cl-lib Features: (shadow sort mail-extr emacsbug sendmail helm-command helm-elisp helm-eval edebug eldoc helm-mode hideshow cc-langs misearch multi-isearch winner image-file key-bindings git-timemachine init haskell-simple-indent haskell haskell-completions haskell-load haskell-commands highlight-uses-mode haskell-modules haskell-sandbox haskell-repl haskell-debug haskell-interactive-mode haskell-presentation-mode haskell-collapse haskell-navigate-imports haskell-compile haskell-process haskell-session haskell-cabal haskell-utils haskell-mode-autoloads smooth-scrolling column-enforce-mode autorevert filenotify delsel etags-table auto-install anything woman man grep-a-lot haskell-font-lock haskell-mode haskell-string haskell-sort-imports haskell-lexeme haskell-align-imports haskell-compat haskell-complete-module noutline outline flymake dabbrev haskell-customize haskell-indentation hl-line keymaps tags-ext undo-tree diff better-registers c-functions os mode-hooks settings paren grep-all dired-ext indent-region my-custom ido whitespace cus-start cus-load git-gutter+ magit-blame magit-stash magit-bisect magit-remote magit-commit magit-sequence magit magit-apply magit-wip magit-log magit-diff smerge-mode diff-mode magit-core magit-process magit-popup magit-mode magit-git crm magit-section magit-utils git-commit log-edit message rfc822 mml mml-sec mm-decode mm-bodies mm-encode mail-parse rfc2231 rfc2047 rfc2045 ietf-drums mailabbrev mail-utils gmm-utils mailheader pcvs-util add-log with-editor tramp-sh server ctx-switch-face cc-mode cc-fonts cc-guess cc-menus cc-cmds cc-styles cc-align cc-engine cc-vars cc-defs flycheck-via-make flycheck help-mode subr-x dash hindent helm-proc proced helm-git-grep helm-ls-git helm-files image-dired tramp tramp-compat tramp-loaddefs trampver shell pcomplete format-spec dired-x dired-aux ffap helm-buffers helm-elscreen helm-tags helm-bookmark helm-adaptive helm-info bookmark pp helm-locate helm-grep helm-regexp helm-plugin helm-external helm-net browse-url xml url url-proxy url-privacy url-expand url-methods url-history url-cookie url-domsuf url-util url-parse auth-source gnus-util mm-util mail-prsvr password-cache url-vars mailcap helm-utils helm-help helm-types helm helm-source eieio byte-opt bytecomp byte-compile cl-extra cconv eieio-core helm-multi-match helm-lib dired vc-git derived grep vc-dir ewoc vc vc-dispatcher helm-config helm-autoloads helm-easymenu async-bytecomp find-func async eclimd eclim eclim-problems eclim-maven compile comint ansi-color eclim-ant eclim-completion eclim-c advice help-fns json eclim-project easy-mmode edmacro kmacro s ucs-normalize etags ring multiple-cursors-autoloads package epg-config recentf tree-widget wid-edit cl-macs cl gv cl-loaddefs cl-lib goto-last-change momentary-display gitattributes-mode thingatpt easymenu gitignore-mode gitconfig-mode conf-mode rx time-date tooltip electric uniquify ediff-hook vc-hooks lisp-float-type mwheel x-win x-dnd tool-bar dnd fontset image regexp-opt fringe tabulated-list newcomment lisp-mode prog-mode register page menu-bar rfn-eshadow timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core frame cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese case-table epa-hook jka-cmpr-hook help simple abbrev minibuffer nadvice loaddefs button faces cus-face macroexp files text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote make-network-process dbusbind gfilenotify dynamic-setting system-font-setting font-render-setting move-toolbar gtk x-toolkit x multi-tty emacs) Memory information: ((conses 16 610905 39178) (symbols 48 43800 3) (miscs 40 456 1223) (strings 32 106130 7082) (string-bytes 1 2986246) (vectors 16 58622) (vector-slots 8 953242 40103) (floats 8 216 552) (intervals 56 8293 188) (buffers 960 25) (heap 1024 55943 3098)) -- Eyal --047d7bf10ad6a5987a052dadbac1 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
As can be reproduced easily:

(setq unread-command-events 1) -- emacs now at 100% CPU
(setq un= read-command-events nil) -- emacs OK again


In GNU Emacs 24.5.1 (x86_64-unknown-linux-gnu, GTK+ Version 3.10.8)=
=C2=A0of 2015-12-11 on eyal-XPS13-9333
Windowing syste= m distributor `The X.Org Foundation', version 11.0.11501000
S= ystem Description: Linux = Mint 17.3 Rosa

Configured using:
=C2=A0`= configure --prefix=3D/usr/local'

Important set= tings:
=C2=A0 value of $LC_MONETARY: en_US.UTF-8
=C2=A0= value of $LC_NUMERIC: en_US.UTF-8
=C2=A0 value of $LC_TIME: en_U= S.UTF-8
=C2=A0 value of $LANG: en_US.UTF-8
=C2=A0 local= e-coding-system: utf-8-unix

Major mode: Emacs-Lisp=

Minor modes in effect:
=C2=A0 column-en= force-mode: t
=C2=A0 global-auto-revert-mode: t
=C2=A0 = delete-selection-mode: t
=C2=A0 global-undo-tree-mode: t
=C2=A0 undo-tree-mode: t
=C2=A0 better-registers: t
= =C2=A0 show-paren-mode: t
=C2=A0 ido-everywhere: t
=C2= =A0 global-git-gutter+-mode: t
=C2=A0 git-gutter+-mode: t
=C2=A0 diff-auto-refine-mode: t
=C2=A0 global-git-commit-mode:= t
=C2=A0 shell-dirtrack-mode: t
=C2=A0 helm-autoresize= -mode: t
=C2=A0 global-eclim-mode: t
=C2=A0 recentf-mod= e: t
=C2=A0 tooltip-mode: t
=C2=A0 electric-indent-mode= : t
=C2=A0 mouse-wheel-mode: t
=C2=A0 file-name-shadow-= mode: t
=C2=A0 global-font-lock-mode: t
=C2=A0 font-loc= k-mode: t
=C2=A0 blink-cursor-mode: t
=C2=A0 auto-compo= sition-mode: t
=C2=A0 auto-encryption-mode: t
=C2=A0 au= to-compression-mode: t
=C2=A0 line-number-mode: t
=C2= =A0 transient-mark-mode: t

Recent messages:
<= div>Grep finished (matches found) [2 times]
scroll-up-command: En= d of buffer [9 times]
Mark set
Mark saved where search = started [8 times]
Quit [2 times]
user-error: No further= undo information
Mark set
scroll-down-one: Beginning o= f buffer [16 times]
Mark set [2 times]
scroll-up-comman= d: End of buffer

Load-path shadows:
/usr= /local/share/emacs/24.5/lisp/emacs-lisp/cl-lib hides ~/.emacs.d/lisp/cl-lib=

Features:
(shadow sort mail-extr emacsb= ug sendmail helm-command helm-elisp
helm-eval edebug eldoc helm-m= ode hideshow cc-langs misearch
multi-isearch winner image-file ke= y-bindings git-timemachine init
haskell-simple-indent haskell has= kell-completions haskell-load
haskell-commands highlight-uses-mod= e haskell-modules haskell-sandbox
haskell-repl haskell-debug hask= ell-interactive-mode
haskell-presentation-mode haskell-collapse h= askell-navigate-imports
haskell-compile haskell-process haskell-s= ession haskell-cabal
haskell-utils haskell-mode-autoloads smooth-= scrolling
column-enforce-mode autorevert filenotify delsel etags-= table
auto-install anything woman man grep-a-lot haskell-font-loc= k
haskell-mode haskell-string haskell-sort-imports haskell-lexeme=
haskell-align-imports haskell-compat haskell-complete-module nou= tline
outline flymake dabbrev haskell-customize haskell-indentati= on hl-line
keymaps tags-ext undo-tree diff better-registers c-fun= ctions os
mode-hooks settings paren grep-all dired-ext indent-reg= ion my-custom ido
whitespace cus-start cus-load git-gutter+ magit= -blame magit-stash
magit-bisect magit-remote magit-commit magit-s= equence magit magit-apply
magit-wip magit-log magit-diff smerge-m= ode diff-mode magit-core
magit-process magit-popup magit-mode mag= it-git crm magit-section
magit-utils git-commit log-edit message = rfc822 mml mml-sec mm-decode
mm-bodies mm-encode mail-parse rfc22= 31 rfc2047 rfc2045 ietf-drums
mailabbrev mail-utils gmm-utils mai= lheader pcvs-util add-log with-editor
tramp-sh server ctx-switch-= face cc-mode cc-fonts cc-guess cc-menus
cc-cmds cc-styles cc-alig= n cc-engine cc-vars cc-defs flycheck-via-make
flycheck help-mode = subr-x dash hindent helm-proc proced helm-git-grep
helm-ls-git he= lm-files image-dired tramp tramp-compat tramp-loaddefs
trampver s= hell pcomplete format-spec dired-x dired-aux ffap helm-buffers
he= lm-elscreen helm-tags helm-bookmark helm-adaptive helm-info bookmark
<= div>pp helm-locate helm-grep helm-regexp helm-plugin helm-external helm-net=
browse-url xml url url-proxy url-privacy url-expand url-methods<= /div>
url-history url-cookie url-domsuf url-util url-parse auth-source<= /div>
gnus-util mm-util mail-prsvr password-cache url-vars mailcap helm= -utils
helm-help helm-types helm helm-source eieio byte-opt bytec= omp
byte-compile cl-extra cconv eieio-core helm-multi-match helm-= lib dired
vc-git derived grep vc-dir ewoc vc vc-dispatcher helm-c= onfig
helm-autoloads helm-easymenu async-bytecomp find-func async= eclimd eclim
eclim-problems eclim-maven compile comint ansi-colo= r eclim-ant
eclim-completion eclim-c advice help-fns json eclim-p= roject easy-mmode
edmacro kmacro s ucs-normalize etags ring multi= ple-cursors-autoloads
package epg-config recentf tree-widget wid-= edit cl-macs cl gv
cl-loaddefs cl-lib goto-last-change momentary-= display gitattributes-mode
thingatpt easymenu gitignore-mode gitc= onfig-mode conf-mode rx time-date
tooltip electric uniquify ediff= -hook vc-hooks lisp-float-type mwheel
x-win x-dnd tool-bar dnd fo= ntset image regexp-opt fringe tabulated-list
newcomment lisp-mode= prog-mode register page menu-bar rfn-eshadow timer
select scroll= -bar mouse jit-lock font-lock syntax facemenu font-core
frame cha= m georgian utf-8-lang misc-lang vietnamese tibetan thai
tai-viet = lao korean japanese hebrew greek romanian slovak czech european
e= thiopic indian cyrillic chinese case-table epa-hook jka-cmpr-hook help
simple abbrev minibuffer nadvice loaddefs button faces cus-face macro= exp
files text-properties overlay sha1 md5 base64 format env code= -pages mule
custom widget hashtable-print-readable backquote make= -network-process
dbusbind gfilenotify dynamic-setting system-font= -setting
font-render-setting move-toolbar gtk x-toolkit x multi-t= ty emacs)

Memory information:
((conses 1= 6 610905 39178)
=C2=A0(symbols 48 43800 3)
=C2=A0(miscs= 40 456 1223)
=C2=A0(strings 32 106130 7082)
=C2=A0(str= ing-bytes 1 2986246)
=C2=A0(vectors 16 58622)
=C2=A0(ve= ctor-slots 8 953242 40103)
=C2=A0(floats 8 216 552)
=C2= =A0(intervals 56 8293 188)
=C2=A0(buffers 960 25)
=C2= =A0(heap 1024 55943 3098))


--
Eyal
--047d7bf10ad6a5987a052dadbac1-- From debbugs-submit-bounces@debbugs.gnu.org Thu Mar 10 04:42:56 2016 Received: (at 22976) by debbugs.gnu.org; 10 Mar 2016 09:42:56 +0000 Received: from localhost ([127.0.0.1]:42255 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1adx7Q-0007no-8e for submit@debbugs.gnu.org; Thu, 10 Mar 2016 04:42:56 -0500 Received: from mx2.suse.de ([195.135.220.15]:59438) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1adx7O-0007nf-KK for 22976@debbugs.gnu.org; Thu, 10 Mar 2016 04:42:54 -0500 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (charybdis-ext.suse.de [195.135.220.254]) by mx2.suse.de (Postfix) with ESMTP id 0EF39AAB4; Thu, 10 Mar 2016 09:42:53 +0000 (UTC) From: Andreas Schwab To: Eyal Lotem Subject: Re: bug#22976: 24.5; setting unread-command-events to non cons puts emacs in 100% CPU use References: X-Yow: Is this the line for the latest whimsical YUGOSLAVIAN drama which also makes you want to CRY and reconsider the VIETNAM WAR? Date: Thu, 10 Mar 2016 10:42:53 +0100 In-Reply-To: (Eyal Lotem's message of "Thu, 10 Mar 2016 10:37:47 +0200") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 22976 Cc: 22976@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.0 (/) 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. Andreas. -- Andreas Schwab, SUSE Labs, schwab@suse.de GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE 1748 E4D4 88E3 0EEA B9D7 "And now for something completely different." From debbugs-submit-bounces@debbugs.gnu.org Thu Mar 10 04:48:04 2016 Received: (at 22976) by debbugs.gnu.org; 10 Mar 2016 09:48:04 +0000 Received: from localhost ([127.0.0.1]:42264 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1adxCO-0007vt-1j for submit@debbugs.gnu.org; Thu, 10 Mar 2016 04:48:04 -0500 Received: from mail-wm0-f54.google.com ([74.125.82.54]:33408) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1adxCM-0007vO-G8 for 22976@debbugs.gnu.org; Thu, 10 Mar 2016 04:48:02 -0500 Received: by mail-wm0-f54.google.com with SMTP id l68so20870798wml.0 for <22976@debbugs.gnu.org>; Thu, 10 Mar 2016 01:48:02 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=z4YLy5EdQh46stPxQM6pOCFdqpWm2l9JVt+sPuJmBzA=; b=0l0Nkp8sY9EdJqzyQaPx6EQrk7mjNEQ5lqtkjm5Xvs0QRWvE+YSw5icaOTT7WG4v1U 4wXjbVEchYCPNnbKL2kI569wy6zi6g0+QwFmfsknBPtkn+XFVrUr9I4nIzJRce17akQP bLqOb4bZQkSjsDLUDQ3GDKLbGsVXWVf2L0ZwvHmCvwKmYipP+osYcpXLXo2HDN36olHQ Ss6gQVJLGtDJT3ZNDrCqagJ/GLYF2Blv6RyHR/rFjvuRMPU8qHrTGgwU8olu1s9HbhuA NHhmVlYpYerbql7pin7o024woqqMlKiNObhLZJr0FcE+L27tV8umEa4MO0FurYYq4bla p5Pg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=z4YLy5EdQh46stPxQM6pOCFdqpWm2l9JVt+sPuJmBzA=; b=OFmJ/hjTx+K3vQI/YzyRKsuvNFKLQ1vR6PSGasEpEuaIJ84h8Rd3b23s+cTSaZR4/3 PsOretw4OEoJdTnKr8Rsa6F9mH/MoVNa3IqfyxKivVb0qolQ+cGiBL3t5J4xQjpD1fAd VTpWDyRzg+Gf/YYcmFc9hhDqUASxGig9HOWpS1IC4Fp18/atJemsZoQrdJo9D02H7XAF SM/GzjdT3jF00tvyBpOHWVZGATq2uI+3Ro6C5Q39yg0hQhdcDYSpPYZhPvjeAJk1obFb YNSr6j4B+CFLBZ3+C2h5juBAnqLrQgG/IHugY9VJ4+L+P8Tz6tBpWTJThkiB+8wAtcXx mOdQ== X-Gm-Message-State: AD7BkJI1sKoPakEgnYl/MQ9rfHazvbbkQBWJZC+xpPsRjY2VWjJwUwnqcFfBWKKm2ChP6RZW2bPpsqjQ9X9OTg== X-Received: by 10.28.217.146 with SMTP id q140mr2593329wmg.85.1457603276871; Thu, 10 Mar 2016 01:47:56 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: From: Eyal Lotem Date: Thu, 10 Mar 2016 09:47:46 +0000 Message-ID: Subject: Re: bug#22976: 24.5; setting unread-command-events to non cons puts emacs in 100% CPU use To: Andreas Schwab Content-Type: multipart/alternative; boundary=001a11468f188a9e8c052daeb535 X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 22976 Cc: 22976@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.7 (/) --001a11468f188a9e8c052daeb535 Content-Type: text/plain; charset=UTF-8 I don't, but some buggy packages I use do! Instead of wasting me hours chasing these bugs, why not output an explicit error and set the var to nil? This behavior caused the bug in the first place (subtle enough wrong behavior instead of explicit error made it go unnoticed). I'm not the first one to waste hours on this... On Thu, Mar 10, 2016, 11:42 Andreas Schwab wrote: > 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. > > Andreas. > > -- > Andreas Schwab, SUSE Labs, schwab@suse.de > GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE 1748 E4D4 88E3 0EEA B9D7 > "And now for something completely different." > --001a11468f188a9e8c052daeb535 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable

I don't, but some buggy packages I use do!

Instead of wasting me hours chasing these bugs, why not outp= ut an explicit error and set the var to nil?

This behavior caused the bug in the first place (subtle enou= gh wrong behavior instead of explicit error made it go unnoticed).

I'm not the first one to waste hours on this...


On Thu, Mar 10, 2016, 11:42= Andreas Schwab <schwab@suse.de>= ; wrote:
Eyal Lotem <eyal.lotem@gmail.com>= 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.

Andreas.

--
Andreas Schwab, SUSE Labs, schwab@suse.de
GPG Key fingerprint =3D 0196 BAD8 1CE9 1970 F4BE=C2=A0 1748 E4D4 88E3 0EEA = B9D7
"And now for something completely different."
--001a11468f188a9e8c052daeb535-- From debbugs-submit-bounces@debbugs.gnu.org Thu Mar 10 05:24:59 2016 Received: (at 22976) by debbugs.gnu.org; 10 Mar 2016 10:24:59 +0000 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 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 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 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,RP_MATCHES_RCVD autolearn=disabled version=3.3.2 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 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 Date: Thu, 10 Mar 2016 12:25:02 +0200 Message-Id: <838u1qmxz5.fsf@gnu.org> From: Eli Zaretskii To: Andreas Schwab In-reply-to: (message from Andreas Schwab on Thu, 10 Mar 2016 10:42:53 +0100) Subject: Re: bug#22976: 24.5; setting unread-command-events to non cons puts emacs in 100% CPU use References: X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: 22976 Cc: 22976@debbugs.gnu.org, eyal.lotem@gmail.com X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: Eli Zaretskii Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.0 (-----) > 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. From debbugs-submit-bounces@debbugs.gnu.org Thu Mar 10 05:34:17 2016 Received: (at 22976) by debbugs.gnu.org; 10 Mar 2016 10:34:17 +0000 Received: from localhost ([127.0.0.1]:42304 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1adxv6-0000nN-QZ for submit@debbugs.gnu.org; Thu, 10 Mar 2016 05:34:17 -0500 Received: from mail-wm0-f54.google.com ([74.125.82.54]:33674) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1adxv4-0000n7-MZ for 22976@debbugs.gnu.org; Thu, 10 Mar 2016 05:34:14 -0500 Received: by mail-wm0-f54.google.com with SMTP id l68so22530954wml.0 for <22976@debbugs.gnu.org>; Thu, 10 Mar 2016 02:34:14 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc; bh=mlnKjC1pGfOy0PCzr9UZ8E1v0EZ9n+/kI4qUxoKsWlg=; b=eiuoyNC+zZYYRf3LOl2nV2BBTX+4Be2XSf+DF9bSbe6DDrHp5U/2z3YsHoLTMbjgPA +CCqvbOEe4OKLUy4cFCzLM4EPvycRb75Ipck4hpQDsUuDL1f6rj9E4eE1UALtL4cXc2V axg6rnTYLuANgZAQ4gnnUJEPMA9BN5HQzFnZa9LL1oaTJv1NKxt3avbXFflCMVL3dm86 Xq24F5Uq5YIpc/tk4dTwxaxPnBhIYlDkgX4wrmVBAQxyQggVQDeoyBAlimINdDbH4PX+ wHgRRhNMBOzvOTHWeouZYDS3rbyjprxrLxZ9cO38eOL2C5PPVeY23qOPF1VLXpfgJstO P3tw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc; bh=mlnKjC1pGfOy0PCzr9UZ8E1v0EZ9n+/kI4qUxoKsWlg=; b=YFVWVWdLjELR0r1kR+/DK9qtPxkBGfydgbVfknLn130ubVuI1PS86l0xCkl0/d+1w+ TX4wu33q9fJ8vK0DirxHFp8U6G+7WAI3C497hw2+HUWR55BBL6Az5nsgWCHG33waGZlm 9NiouvTk+sqbRRSRj/Ec/JsQgxVY6G04xmTp8NiLW7xSrWRQG8lVjDJ/FKRawKm88+tk nFPU+ifHnh4QH1YCsyHl7z66I9AqqrcYWINozSRl5TKKumyIZfCAjoybuL9m6v8jrJJg cJlFCxj8MbEKFOq8gLhPxYpd4/+j/GDr1YkUZx2KgO303+3laL/v6bsDfwP2M9TX8THe LsDw== X-Gm-Message-State: AD7BkJJsO59WQPhOkRBXhe+++RLJY0yrYMjun9PrS3g+MDqcLTtX9A9Dnv4B0qVf5TE4pFI9ZIktLFWOFL8UrA== MIME-Version: 1.0 X-Received: by 10.194.103.5 with SMTP id fs5mr2931253wjb.42.1457606049021; Thu, 10 Mar 2016 02:34:09 -0800 (PST) Received: by 10.28.94.66 with HTTP; Thu, 10 Mar 2016 02:34:08 -0800 (PST) In-Reply-To: <838u1qmxz5.fsf@gnu.org> References: <838u1qmxz5.fsf@gnu.org> Date: Thu, 10 Mar 2016 12:34:08 +0200 Message-ID: Subject: Re: bug#22976: 24.5; setting unread-command-events to non cons puts emacs in 100% CPU use From: Eyal Lotem To: Eli Zaretskii Content-Type: multipart/alternative; boundary=047d7bf10ad6c644a1052daf5a74 X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 22976 Cc: Andreas Schwab , 22976@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.7 (/) --047d7bf10ad6c644a1052daf5a74 Content-Type: text/plain; charset=UTF-8 It can be set to any value at all, unfortunately. 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". On Thu, Mar 10, 2016 at 12:25 PM, Eli Zaretskii wrote: > > 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. > -- Eyal --047d7bf10ad6c644a1052daf5a74 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
It can be set to any value at all, unfortunately.

=
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 &q= uot;nothing to do".

On Thu, Mar 10, 2016 at 12:25 PM, Eli Zaretskii <eliz@gn= u.org> wrote:
> From: An= dreas Schwab <schwab@suse.de> > Date: Thu, 10 Mar 2016 10:42:53 +0100
> Cc: 22976@debbugs.gnu.org=
>
> Eyal Lotem <eyal.lotem@gmai= l.com> 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?=C2=A0 = If not,
we could change the few tests of the value to explicitly ignore
non-nil, non-cons values.=C2=A0 Do you see any immediate problems with such=
a change?

Thanks.



--
Eyal
--047d7bf10ad6c644a1052daf5a74-- From debbugs-submit-bounces@debbugs.gnu.org Thu Mar 10 05:38:58 2016 Received: (at 22976) by debbugs.gnu.org; 10 Mar 2016 10:38:58 +0000 Received: from localhost ([127.0.0.1]:42310 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1adxze-0000th-F0 for submit@debbugs.gnu.org; Thu, 10 Mar 2016 05:38:58 -0500 Received: from eggs.gnu.org ([208.118.235.92]:52513) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1adxzc-0000tU-K6 for 22976@debbugs.gnu.org; Thu, 10 Mar 2016 05:38:56 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1adxzS-00030w-N6 for 22976@debbugs.gnu.org; Thu, 10 Mar 2016 05:38:51 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,RP_MATCHES_RCVD autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:39439) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1adxzS-00030s-KH; Thu, 10 Mar 2016 05:38:46 -0500 Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:1278 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.82) (envelope-from ) id 1adxzR-0002q6-Sq; Thu, 10 Mar 2016 05:38:46 -0500 Date: Thu, 10 Mar 2016 12:39:00 +0200 Message-Id: <834mcemxbv.fsf@gnu.org> From: Eli Zaretskii To: Eyal Lotem In-reply-to: (message from Eyal Lotem on Thu, 10 Mar 2016 12:34:08 +0200) Subject: Re: bug#22976: 24.5; setting unread-command-events to non cons puts emacs in 100% CPU use References: <838u1qmxz5.fsf@gnu.org> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: 22976 Cc: schwab@suse.de, 22976@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: Eli Zaretskii Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.0 (-----) > Date: Thu, 10 Mar 2016 12:34:08 +0200 > From: Eyal Lotem > Cc: Andreas Schwab , 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. > 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). The question is: would that kind of change break something? From debbugs-submit-bounces@debbugs.gnu.org Thu Mar 10 07:40:33 2016 Received: (at 22976) by debbugs.gnu.org; 10 Mar 2016 12:40:33 +0000 Received: from localhost ([127.0.0.1]:42384 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1adztI-0005Ku-Pm for submit@debbugs.gnu.org; Thu, 10 Mar 2016 07:40:33 -0500 Received: from mail-wm0-f47.google.com ([74.125.82.47]:33190) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1adztG-0005Kh-Li for 22976@debbugs.gnu.org; Thu, 10 Mar 2016 07:40:31 -0500 Received: by mail-wm0-f47.google.com with SMTP id l68so26915764wml.0 for <22976@debbugs.gnu.org>; Thu, 10 Mar 2016 04:40:30 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc; bh=iz9zLEJVo0Kz5tgQ7JNhForimI79TUGRl5zP32NRqXc=; b=DTrj8lENkg6iBjYwGTLshheKEXgX9gfjzbWL0TL/r2gmUfBQMRu4JmXdpI3ppLXDsh bQkPXJ5aJYT1g6CTvaEzmEtqKvZ7Rvu0vcHSTat08Aa1yvGC72SyhgVOQI6b1boNhhK2 6vvvX+5wcKZT7idNrhXEKVG6bg9Sv59AHkz6UGB9MJS98ZLYPk2B1UNmmId1En9aZfEt Bhv1Ra3nFB+ecLonbYwwD2L9taOeFyiNr4wULQGdjutgW0Hx12JdmjkXTOmzt0O80C2V q4huH0k1mKfJK6DL/3cCZJUl1b7BhnvOytkpUBq0lHhEwxccrU6J2B4+WPoEX2wTGn8f icoQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc; bh=iz9zLEJVo0Kz5tgQ7JNhForimI79TUGRl5zP32NRqXc=; b=VRhyNvLNJJQaH8GSiqjegpH4weTllYwwIrn30Q2uVxzylAvzrPBLp4Si4Z7YJPxfQl XlIt4XjGmLnxMfizu6tTZDDb5ikUcTMVTd/QAxSfUA7vZ0VVA+BTSDCefeOfBwO5MJBI CMTuyn7s56iezMYpQLfJhSIWh27VKLo1wuyF/hL+UCr+Xj182F6paG6+K/M3Rv/fZPGv fiejMth9lsbfrQnojirs8IRCvc8QY3iCO1oVMVsjnWCMnxQu5n7M2S+SP1CmmPxw/WKu yXht5fNUrlhVNIzbvPKhjAu2vHDZIrVPpE4/9oC2oAif4Oaij43pHO7zUiBz80bZWQyu yWgw== X-Gm-Message-State: AD7BkJKH6vfAxMBLevCrbtwVuwiwPDKAefKQKM4MGkJ8G22I0NUfkS5BT065l1JaJeC29DjT36SpCXjTcMUYrQ== MIME-Version: 1.0 X-Received: by 10.28.217.146 with SMTP id q140mr3521497wmg.85.1457613624930; Thu, 10 Mar 2016 04:40:24 -0800 (PST) Received: by 10.28.94.66 with HTTP; Thu, 10 Mar 2016 04:40:24 -0800 (PST) In-Reply-To: <834mcemxbv.fsf@gnu.org> References: <838u1qmxz5.fsf@gnu.org> <834mcemxbv.fsf@gnu.org> Date: Thu, 10 Mar 2016 14:40:24 +0200 Message-ID: Subject: Re: bug#22976: 24.5; setting unread-command-events to non cons puts emacs in 100% CPU use From: Eyal Lotem To: Eli Zaretskii Content-Type: multipart/alternative; boundary=001a11468f18557d02052db11eef X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 22976 Cc: Andreas Schwab , 22976@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.7 (/) --001a11468f18557d02052db11eef Content-Type: text/plain; charset=UTF-8 On Thu, Mar 10, 2016 at 12:39 PM, Eli Zaretskii wrote: > > Date: Thu, 10 Mar 2016 12:34:08 +0200 > > From: Eyal Lotem > > Cc: Andreas Schwab , 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 --001a11468f18557d02052db11eef Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable

--
Eyal
--001a11468f18557d02052db11eef-- From debbugs-submit-bounces@debbugs.gnu.org Sat Mar 26 04:55:08 2016 Received: (at 22976-done) by debbugs.gnu.org; 26 Mar 2016 08:55:08 +0000 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 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 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 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-2.9 required=5.0 tests=BAYES_00,RP_MATCHES_RCVD autolearn=disabled version=3.3.2 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 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 Date: Sat, 26 Mar 2016 11:54:32 +0300 Message-Id: <83wpopzkjb.fsf@gnu.org> From: Eli Zaretskii To: Eyal Lotem In-reply-to: (message from Eyal Lotem on Thu, 10 Mar 2016 14:40:24 +0200) Subject: Re: bug#22976: 24.5; setting unread-command-events to non cons puts emacs in 100% CPU use References: <838u1qmxz5.fsf@gnu.org> <834mcemxbv.fsf@gnu.org> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-Spam-Score: -6.0 (------) X-Debbugs-Envelope-To: 22976-done Cc: schwab@suse.de, 22976-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: Eli Zaretskii Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -6.0 (------) > 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. From unknown Wed Jun 18 23:07:17 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Sat, 23 Apr 2016 11:24:05 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator