From mboxrd@z Thu Jan 1 00:00:00 1970 Path: quimby.gnus.org!not-for-mail From: Richard Stallman Newsgroups: gmane.emacs.devel Subject: Re: x-autoselect-window Date: Mon, 18 Feb 2002 23:36:50 -0700 (MST) Message-ID: <200202190636.g1J6ao115605@santafe.santafe.edu> References: <2427-Sat16Feb2002175432+0200-eliz@is.elta.co.il> <867kpdxra7.fsf@gerd.dnsq.org> <3791-Sat16Feb2002195751+0200-eliz@is.elta.co.il> <868z9tgu7t.fsf@gerd.dnsq.org> <7704-Sat16Feb2002211048+0200-eliz@is.elta.co.il> <86wuxdp61b.fsf@gerd.dnsq.org> Reply-To: rms@gnu.org NNTP-Posting-Host: quimby2.netfonds.no X-Trace: quimby2.netfonds.no 1014101597 1534 195.204.10.66 (19 Feb 2002 06:53:17 GMT) X-Complaints-To: usenet@quimby2.netfonds.no NNTP-Posting-Date: 19 Feb 2002 06:53:17 GMT Cc: eliz@is.elta.co.il, emacs-devel@gnu.org Original-Received: from fencepost.gnu.org ([199.232.76.164]) by quimby2.netfonds.no with esmtp (Exim 3.12 #1 (Debian)) id 16d49M-0000OY-00 for ; Tue, 19 Feb 2002 07:53:17 +0100 Original-Received: from localhost ([127.0.0.1] helo=fencepost.gnu.org) by fencepost.gnu.org with esmtp (Exim 3.33 #1 (Debian)) id 16d3vu-0000MJ-00; Tue, 19 Feb 2002 01:39:22 -0500 Original-Received: from pele.santafe.edu ([192.12.12.119]) by fencepost.gnu.org with esmtp (Exim 3.33 #1 (Debian)) id 16d3tT-0008U7-00; Tue, 19 Feb 2002 01:36:51 -0500 Original-Received: from santafe.santafe.edu (santafe [192.12.12.2]) by pele.santafe.edu (8.11.6+Sun/8.9.3) with ESMTP id g1J6aru27676; Mon, 18 Feb 2002 23:36:53 -0700 (MST) Original-Received: (from rms@localhost) by santafe.santafe.edu (8.10.2+Sun/8.9.3) id g1J6ao115605; Mon, 18 Feb 2002 23:36:50 -0700 (MST) X-Authentication-Warning: santafe.santafe.edu: rms set sender to rms@santafe using -f Original-To: gerd@gnu.org In-reply-to: <86wuxdp61b.fsf@gerd.dnsq.org> (gerd.moellmann@t-online.de) Errors-To: emacs-devel-admin@gnu.org X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.0.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Emacs development discussions. List-Unsubscribe: , List-Archive: Xref: quimby.gnus.org gmane.emacs.devel:1302 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:1302 I guess my other mail explains that. The select-window happens in code that interrupts the ``main thread'' at an arbitrary point. I wished Emacs would crash when something like that is tried ):-). We could set that up easily enough. Fselect_window and some other places can check interrupt_input_blocked and abort if that is nonzero. We could make a macro to do that. Gerd, I see you created a variable handling_signal and made Feval abort if that is nonzero. Was there a reason you used handling_signal rather than interrupt_input_blocked? interrupt_input_blocked can be nonzero outside of signal handling in code where reading events should be deferred, but I think it is just as wrong to call eval or switch windows in those places. _______________________________________________ Emacs-devel mailing list Emacs-devel@gnu.org http://mail.gnu.org/mailman/listinfo/emacs-devel