GNU bug report logs -
#5680
23.1; canot quit infloop by C-g
Previous Next
Reported by: ARISAWA Akihiro <ari <at> mbf.ocn.ne.jp>
Date: Thu, 4 Mar 2010 16:44:01 UTC
Severity: normal
Done: Stefan Monnier <monnier <at> iro.umontreal.ca>
Bug is archived. No further changes may be made.
To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 5680 in the body.
You can then email your comments to 5680 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org
:
bug#5680
; Package
emacs
.
(Thu, 04 Mar 2010 16:44:02 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
ARISAWA Akihiro <ari <at> mbf.ocn.ne.jp>
:
New bug report received and forwarded. Copy sent to
bug-gnu-emacs <at> gnu.org
.
(Thu, 04 Mar 2010 16:44:02 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
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
Information forwarded
to
owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org
:
bug#5680
; Package
emacs
.
(Fri, 05 Mar 2010 23:12:02 GMT)
Full text and
rfc822 format available.
Message #8 received at 5680 <at> debbugs.gnu.org (full text, mbox):
>>>>> "ARISAWA" == ARISAWA Akihiro <ari <at> mbf.ocn.ne.jp> 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. */
Reply sent
to
Stefan Monnier <monnier <at> iro.umontreal.ca>
:
You have taken responsibility.
(Sat, 06 Mar 2010 01:27:02 GMT)
Full text and
rfc822 format available.
Notification sent
to
ARISAWA Akihiro <ari <at> mbf.ocn.ne.jp>
:
bug acknowledged by developer.
(Sat, 06 Mar 2010 01:27:02 GMT)
Full text and
rfc822 format available.
Message #13 received at 5680-done <at> debbugs.gnu.org (full text, mbox):
> Indeed, thanks. I've just installed the patch below which should fix
> this problem.
Forgot to close it, sorry,
Stefan
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Sat, 03 Apr 2010 11:24:03 GMT)
Full text and
rfc822 format available.
This bug report was last modified 15 years and 79 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.