From mboxrd@z Thu Jan 1 00:00:00 1970 From: Kalle Olavi Niemitalo To: guile-emacs@sourceware.cygnus.com Subject: Re: interrupting the Scheme process Date: Thu, 04 May 2000 10:21:00 -0000 Message-id: <874s8ee4g2.fsf@PC486.Niemitalo.LAN> References: <20000503205439E.satoru-t@is.aist-nara.ac.jp> X-SW-Source: 2000-q2/msg00025.html We might be able to use something like the "emergency escape" (double `C-g') feature. Add a C flag `scheme_evaluator_active' and make `scheme-eval' and `lisp-eval' set and reset it. Then in the `C-g' handler which usually tests `quit-flag', interrupt Guile instead if `scheme_evaluator_active' is set. Emacs would also have to convert Lisp quits to Scheme interrupts and vice versa when returning from the *-eval functions. Could this work?