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: Profiling font-lock in xemacs Date: Sun, 23 Jun 2002 14:40:36 -0400 Sender: emacs-devel-admin@gnu.org Message-ID: References: <200205300129.17083.bws@deepcopy.org> <87d6vet7f2.fsf@tleepslib.sk.tsukuba.ac.jp> <5l3cw9lob0.fsf@rum.cs.yale.edu> <200205301939.02926.bws@deepcopy.org> <005d01c21835$344dc340$0201a8c0@neeeeeee> <200206201517.g5KFHaw07020@rum.cs.yale.edu> <009301c218f1$8e5a9040$0201a8c0@neeeeeee> <200206211911.g5LJBvN12715@rum.cs.yale.edu> <026d01c21991$ede47580$0201a8c0@neeeeeee> <200206221732.g5MHWJe16327@rum.cs.yale.edu> <200206231812.g5NICe024443@aztec.santafe.edu> NNTP-Posting-Host: localhost.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1024857737 31098 127.0.0.1 (23 Jun 2002 18:42:17 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Sun, 23 Jun 2002 18:42:17 +0000 (UTC) Cc: monnier+gnu/emacs@rum.cs.yale.edu, ben_wing@hotmail.com, ben@666.com, bws@deepcopy.org, xemacs-design@xemacs.org, emacs-devel@gnu.org Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by main.gmane.org with esmtp (Exim 3.33 #1 (Debian)) id 17MCJV-00085T-00 for ; Sun, 23 Jun 2002 20:42:17 +0200 Original-Received: from fencepost.gnu.org ([199.232.76.164]) by quimby.gnus.org with esmtp (Exim 3.12 #1 (Debian)) id 17MCKH-0002yu-00 for ; Sun, 23 Jun 2002 20:43:05 +0200 Original-Received: from localhost ([127.0.0.1] helo=fencepost.gnu.org) by fencepost.gnu.org with esmtp (Exim 3.34 #1 (Debian)) id 17MCJW-0008Qv-00; Sun, 23 Jun 2002 14:42:18 -0400 Original-Received: from rum.cs.yale.edu ([128.36.229.169]) by fencepost.gnu.org with esmtp (Exim 3.34 #1 (Debian)) id 17MCHt-0008AG-00; Sun, 23 Jun 2002 14:40:37 -0400 Original-Received: (from monnier@localhost) by rum.cs.yale.edu (8.11.6/8.11.6) id g5NIeaa30522; Sun, 23 Jun 2002 14:40:36 -0400 X-Mailer: exmh version 2.4 06/23/2000 with nmh-1.0.4 Original-To: Richard Stallman Errors-To: emacs-devel-admin@gnu.org X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.0.9 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Emacs development discussions. List-Unsubscribe: , List-Archive: Xref: main.gmane.org gmane.emacs.devel:5126 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:5126 > Emacs does not do very much in signal handlers now. For sigchld it > just records the status, something that is best done right away. > XTread_socket is complex; if some of that can be done later on, that > might be good. But it can't wait too long. For instance, quit has to > be detected reasonably soon. Perhaps the QUIT macro could run the > code to process the input. > > On the other hand, this code works; we have had little problem with > it for a long time. The problem is indeed XTread_socket. It is complex and it has introduced really nasty bugs which were very difficult to trace. Also, it is dangerous to try to extend its functionality because it is run asynchronously (the recent "selected-window follows mouse" patch is a case in point). I think it would be worth it to try and move the bulk of it out of the signal handler as the XEmacs folks did. I haven't checked when the do the "check for input". Doing it from QUIT is indeed one obvious possibility. Stefan