From unknown Wed Jun 18 23:09:05 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#5680 <5680@debbugs.gnu.org> To: bug#5680 <5680@debbugs.gnu.org> Subject: Status: 23.1; canot quit infloop by C-g Reply-To: bug#5680 <5680@debbugs.gnu.org> Date: Thu, 19 Jun 2025 06:09:05 +0000 retitle 5680 23.1; canot quit infloop by C-g reassign 5680 emacs submitter 5680 ARISAWA Akihiro severity 5680 normal thanks From debbugs-submit-bounces@debbugs.gnu.org Thu Mar 04 11:43:56 2010 Received: (at submit) by debbugs.gnu.org; 4 Mar 2010 16:43:56 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NnE9S-0003BS-Tz for submit@debbugs.gnu.org; Thu, 04 Mar 2010 11:43:56 -0500 Received: from fencepost.gnu.org ([140.186.70.10]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NnD5x-0002iG-WD for submit@debbugs.gnu.org; Thu, 04 Mar 2010 10:36:16 -0500 Received: from mx10.gnu.org ([199.232.76.166]:53725) by fencepost.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NnD5t-0005sQ-BR for submit@debbugs.gnu.org; Thu, 04 Mar 2010 10:36:09 -0500 Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1NnD5r-00059e-3k for submit@debbugs.gnu.org; Thu, 04 Mar 2010 10:36:08 -0500 X-Spam-Checker-Version: SpamAssassin 3.1.0 (2005-09-13) on monty-python X-Spam-Level: X-Spam-Status: No, score=-2.5 required=5.0 tests=BAYES_00,FORGED_RCVD_HELO, UNPARSEABLE_RELAY autolearn=ham version=3.1.0 Received: from lists.gnu.org ([199.232.76.165]:46379) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1NnD5q-00059Y-Tg for submit@debbugs.gnu.org; Thu, 04 Mar 2010 10:36:06 -0500 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NnD5q-0001Yf-ES for bug-gnu-emacs@gnu.org; Thu, 04 Mar 2010 10:36:06 -0500 Received: from [140.186.70.92] (port=44079 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NnD5p-0001WL-7U for bug-gnu-emacs@gnu.org; Thu, 04 Mar 2010 10:36:05 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1NnD5n-0002Eh-Vh for bug-gnu-emacs@gnu.org; Thu, 04 Mar 2010 10:36:05 -0500 Received: from mbf.ocn.ne.jp ([122.28.14.167]:56906 helo=smtp.mbf.ocn.ne.jp) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NnD5n-0002DX-B0 for bug-gnu-emacs@gnu.org; Thu, 04 Mar 2010 10:36:03 -0500 Received: from nagi.lyrical.homelinux.net (p4154-ipbf510kokuryo.gunma.ocn.ne.jp [118.7.79.154]) by smtp.mbf.ocn.ne.jp (Postfix) with ESMTP id A9DF571DC for ; Fri, 5 Mar 2010 00:35:57 +0900 (JST) Received: from nagi.lyrical.homelinux.net (localhost [127.0.0.1]) by nagi.lyrical.homelinux.net (Postfix) with ESMTP id 6AAD094187 for ; Fri, 5 Mar 2010 00:35:57 +0900 (JST) From: ARISAWA Akihiro To: bug-gnu-emacs@gnu.org Subject: 23.1; canot quit infloop by C-g User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1 (gnu/linux) Date: Fri, 05 Mar 2010 00:35:56 +0900 Message-ID: <874okwp09v.fsf@nagi.lyrical.homelinux.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-detected-operating-system: by eggs.gnu.org: HP-UX 11.00-11.11 X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) X-Spam-Score: -6.0 (------) X-Debbugs-Envelope-To: submit X-Mailman-Approved-At: Thu, 04 Mar 2010 11:43:54 -0500 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -6.0 (------) Hi developers, When I evaluate following code and type C-g, I cannot quit a infinity loop. (funcall (byte-compile (lambda () (while t)))) In emacs-22, I can quit it. Regards, In GNU Emacs 23.1.1 (i486-pc-linux-gnu, GTK+ Version 2.12.12) of 2009-10-19 on debian-build.int-office-er.priv, modified by Debian configured using `configure '--build=i486-linux-gnu' '--host=i486-linux-gnu' '--prefix=/usr' '--sharedstatedir=/var/lib' '--libexecdir=/usr/lib' '--localstatedir=/var/lib' '--infodir=/usr/share/info' '--mandir=/usr/share/man' '--with-pop=yes' '--enable-locallisppath=/etc/emacs23:/etc/emacs:/usr/local/share/emacs/23.1/site-lisp:/usr/local/share/emacs/site-lisp:/usr/share/emacs/23.1/site-lisp:/usr/share/emacs/site-lisp:/usr/share/emacs/23.1/leim' '--with-x=yes' '--with-x-toolkit=gtk' '--with-toolkit-scroll-bars' 'build_alias=i486-linux-gnu' 'host_alias=i486-linux-gnu' 'CFLAGS=-DDEBIAN -g -O2' 'LDFLAGS=-g' 'CPPFLAGS='' Important settings: value of $LC_ALL: nil value of $LC_COLLATE: nil value of $LC_CTYPE: nil value of $LC_MESSAGES: nil value of $LC_MONETARY: nil value of $LC_NUMERIC: nil value of $LC_TIME: nil value of $LANG: ja_JP.UTF-8 value of $XMODIFIERS: nil locale-coding-system: utf-8-unix default-enable-multibyte-characters: t Major mode: Fundamental Minor modes in effect: show-paren-mode: t which-function-mode: t icomplete-mode: t shell-dirtrack-mode: t display-time-mode: t tooltip-mode: t tool-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t global-auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t line-number-mode: t transient-mark-mode: t From debbugs-submit-bounces@debbugs.gnu.org Fri Mar 05 18:11:20 2010 Received: (at 5680) by debbugs.gnu.org; 5 Mar 2010 23:11:20 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Nngfv-00086M-Oq for submit@debbugs.gnu.org; Fri, 05 Mar 2010 18:11:19 -0500 Received: from tomts10-srv.bellnexxia.net ([209.226.175.54]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Nngft-00086F-Gm for 5680@debbugs.gnu.org; Fri, 05 Mar 2010 18:11:18 -0500 Received: from toip5.srvr.bell.ca ([209.226.175.88]) by tomts10-srv.bellnexxia.net (InterMail vM.5.01.06.13 201-253-122-130-113-20050324) with ESMTP id <20100305231100.COZK1958.tomts10-srv.bellnexxia.net@toip5.srvr.bell.ca> for <5680@debbugs.gnu.org>; Fri, 5 Mar 2010 18:11:00 -0500 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AvsEAJ4dkUtGN5E3/2dsb2JhbACbSHS2WYR3BIMX Received: from bas1-montreal42-1178046775.dsl.bell.ca (HELO ceviche.home) ([70.55.145.55]) by toip5.srvr.bell.ca with ESMTP; 05 Mar 2010 18:10:17 -0500 Received: by ceviche.home (Postfix, from userid 20848) id ADCFBB4257; Fri, 5 Mar 2010 18:10:57 -0500 (EST) From: Stefan Monnier To: ARISAWA Akihiro Subject: Re: bug#5680: 23.1; canot quit infloop by C-g Message-ID: References: <874okwp09v.fsf@nagi.lyrical.homelinux.net> Date: Fri, 05 Mar 2010 18:10:57 -0500 In-Reply-To: <874okwp09v.fsf@nagi.lyrical.homelinux.net> (ARISAWA Akihiro's message of "Fri, 05 Mar 2010 00:35:56 +0900") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1.91 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 5680 Cc: 5680@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.3 (--) >>>>> "ARISAWA" == ARISAWA Akihiro writes: > Hi developers, > When I evaluate following code and type C-g, I cannot quit a infinity loop. > (funcall (byte-compile (lambda () (while t)))) > In Emacs-22, I can quit it. Indeed, thanks. I've just installed the patch below which should fix this problem. Stefan === modified file 'src/bytecode.c' --- src/bytecode.c 2010-01-13 08:35:10 +0000 +++ src/bytecode.c 2010-03-05 23:01:01 +0000 @@ -393,6 +393,7 @@ Fsignal (Qquit, Qnil); \ AFTER_POTENTIAL_GC (); \ } \ + ELSE_PENDING_SIGNALS \ } while (0) === modified file 'src/lisp.h' --- src/lisp.h 2010-01-22 09:10:04 +0000 +++ src/lisp.h 2010-03-05 23:03:16 +0000 @@ -1933,22 +1933,12 @@ #ifdef SYNC_INPUT extern void process_pending_signals P_ ((void)); extern int pending_signals; - -#define QUIT \ - do { \ - if (!NILP (Vquit_flag) && NILP (Vinhibit_quit)) \ - { \ - Lisp_Object flag = Vquit_flag; \ - Vquit_flag = Qnil; \ - if (EQ (Vthrow_on_input, flag)) \ - Fthrow (Vthrow_on_input, Qt); \ - Fsignal (Qquit, Qnil); \ - } \ +#define ELSE_PENDING_SIGNALS \ else if (pending_signals) \ - process_pending_signals (); \ - } while (0) - + process_pending_signals (); #else /* not SYNC_INPUT */ +#define ELSE_PENDING_SIGNALS +#endif /* not SYNC_INPUT */ #define QUIT \ do { \ @@ -1960,10 +1950,9 @@ Fthrow (Vthrow_on_input, Qt); \ Fsignal (Qquit, Qnil); \ } \ + ELSE_PENDING_SIGNALS \ } while (0) -#endif /* not SYNC_INPUT */ - /* Nonzero if ought to quit now. */ From debbugs-submit-bounces@debbugs.gnu.org Fri Mar 05 20:26:07 2010 Received: (at 5680-done) by debbugs.gnu.org; 6 Mar 2010 01:26:07 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NnimM-0000U2-NW for submit@debbugs.gnu.org; Fri, 05 Mar 2010 20:26:06 -0500 Received: from ironport2-out.teksavvy.com ([206.248.154.181] helo=ironport2-out.pppoe.ca) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NnifZ-0000Qu-LB for 5680-done@debbugs.gnu.org; Fri, 05 Mar 2010 20:19:06 -0500 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AvsEABc8kUtLd/ZR/2dsb2JhbACbSnS2VYR3BIMXh3Q X-IronPort-AV: E=Sophos;i="4.49,590,1262581200"; d="scan'208";a="57626942" Received: from 75-119-246-81.dsl.teksavvy.com (HELO ceviche.home) ([75.119.246.81]) by ironport2-out.pppoe.ca with ESMTP; 05 Mar 2010 20:19:01 -0500 Received: by ceviche.home (Postfix, from userid 20848) id 2C5C5B4265; Fri, 5 Mar 2010 20:19:01 -0500 (EST) From: Stefan Monnier To: ARISAWA Akihiro Subject: Re: bug#5680: 23.1; canot quit infloop by C-g Message-ID: References: <874okwp09v.fsf@nagi.lyrical.homelinux.net> Date: Fri, 05 Mar 2010 20:19:01 -0500 In-Reply-To: (Stefan Monnier's message of "Fri, 05 Mar 2010 18:10:57 -0500") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1.91 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Spam-Score: -2.0 (--) X-Debbugs-Envelope-To: 5680-done X-Mailman-Approved-At: Fri, 05 Mar 2010 20:26:06 -0500 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.0 (--) > Indeed, thanks. I've just installed the patch below which should fix > this problem. Forgot to close it, sorry, Stefan From unknown Wed Jun 18 23:09:05 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, 03 Apr 2010 11:24:03 +0000 User-Agent: Fakemail v42.6.9 # A New Hope # A long time ago, in a galaxy far, far away # something happened. # # Magically this resulted in the following # action being taken, but this fake control # message doesn't tell you why it happened # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator