From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: "Stefan Monnier" Newsgroups: gmane.emacs.devel Subject: Re: Bold by moving pixels problem Date: Wed, 04 Jun 2003 10:35:49 -0400 Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: <200306041435.h54EZncl025672@rum.cs.yale.edu> References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1054738941 15243 80.91.224.249 (4 Jun 2003 15:02:21 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Wed, 4 Jun 2003 15:02:21 +0000 (UTC) Cc: Miles Bader Original-X-From: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Wed Jun 04 17:02:18 2003 Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 19NZmM-0003xV-00 for ; Wed, 04 Jun 2003 17:02:18 +0200 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.12 #1 (Debian)) id 19Na3y-0004GD-00 for ; Wed, 04 Jun 2003 17:20:31 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.20) id 19NZg1-0000CY-6f for emacs-devel@quimby.gnus.org; Wed, 04 Jun 2003 10:55:45 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.20) id 19NZZl-0006c2-07 for emacs-devel@gnu.org; Wed, 04 Jun 2003 10:49:17 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.20) id 19NZXN-0005hK-Lq for emacs-devel@gnu.org; Wed, 04 Jun 2003 10:46:51 -0400 Original-Received: from rum.cs.yale.edu ([128.36.229.169]) by monty-python.gnu.org with esmtp (Exim 4.20) id 19NZMs-0002lT-2a; Wed, 04 Jun 2003 10:35:58 -0400 Original-Received: from rum.cs.yale.edu (localhost [127.0.0.1]) by rum.cs.yale.edu (8.12.8/8.12.8) with ESMTP id h54EZn0i025674; Wed, 4 Jun 2003 10:35:49 -0400 Original-Received: (from monnier@localhost) by rum.cs.yale.edu (8.12.8/8.12.8/Submit) id h54EZncl025672; Wed, 4 Jun 2003 10:35:49 -0400 X-Mailer: exmh version 2.4 06/23/2000 with nmh-1.0.4 Original-To: Richard Stallman Original-cc: bob@rattlesnake.com Original-cc: emacs-devel@gnu.org X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1b5 Precedence: list List-Id: Emacs development discussions. List-Help: List-Post: List-Subscribe: , List-Archive: List-Unsubscribe: , Errors-To: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Xref: main.gmane.org gmane.emacs.devel:14688 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:14688 > It also looks like eval can in principle be called from a signal > handler. We could solve that problem if we move all X event > processing outside of the signal handler, as someone suggested. That > would mean that mouse highlighting doesn't update if you move the > mouse while a command is running, and the Emacs frame would not > rewrite itself if you move another window across it while a command is > running. I think that would be a very noticeable step backwards. That's not quite accurate. The updating is about as immediate with my synchronous signal handler as it is with the current async signal handler, because it can take place any time QUIT is used, which means "also in the middle of elisp code". Of course, this means that it's still unsafe to `eval' code from a synchronous signal handler, so it wouldn't help in the case of Miles's code. I've been running with synchronous signal handlers since I mentioned it on this list and I'm pretty happy with it. Stefan