From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Chris Gray Newsgroups: gmane.emacs.devel Subject: Re: antialiasing for emacs Date: Mon, 28 Jul 2003 13:22:29 -0700 Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: <87fzkq9zay.fsf@chicolini.ods.org> References: <87u19bbr02.fsf@chicolini.ods.org> <871xwes9vq.fsf@chicolini.ods.org> <87ispnwqez.fsf@tc-1-100.kawasaki.gol.ne.jp> <200307282004.h6SK49wP016439@rum.cs.yale.edu> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1059424330 27669 80.91.224.249 (28 Jul 2003 20:32:10 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Mon, 28 Jul 2003 20:32:10 +0000 (UTC) Original-X-From: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Mon Jul 28 22:32:09 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 19hEbA-0006mW-00 for ; Mon, 28 Jul 2003 22:28:00 +0200 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.12 #1 (Debian)) id 19hEcJ-0007BQ-00 for ; Mon, 28 Jul 2003 22:29:11 +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 19hEb2-00074J-Li for emacs-devel@quimby.gnus.org; Mon, 28 Jul 2003 16:27:52 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.20) id 19hEYX-00063K-2H for emacs-devel@gnu.org; Mon, 28 Jul 2003 16:25:17 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.20) id 19hEXI-0005fl-BG for emacs-devel@gnu.org; Mon, 28 Jul 2003 16:24:01 -0400 Original-Received: from mail.interchange.ubc.ca ([137.82.27.15]) by monty-python.gnu.org with esmtp (Exim 4.20) id 19hEVq-0004p3-Ox for emacs-devel@gnu.org; Mon, 28 Jul 2003 16:22:30 -0400 Original-Received: from n241-227.wireless.ubc.ca ([142.103.241.227] helo=chicolini) by mail.interchange.ubc.ca with esmtp (Exim 4.20) id 19hEVq-0002RU-2O for emacs-devel@gnu.org; Mon, 28 Jul 2003 13:22:30 -0700 Original-To: emacs-devel@gnu.org Mail-Copies-To: nobody In-Reply-To: <200307282004.h6SK49wP016439@rum.cs.yale.edu> (Stefan Monnier's message of "Mon, 28 Jul 2003 16:04:09 -0400") User-Agent: Gnus/5.1002 (Gnus v5.10.2) Emacs/21.3 (gnu/linux) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.2 Precedence: list List-Id: Emacs development discussions. List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Xref: main.gmane.org gmane.emacs.devel:15723 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:15723 On Mon, 28 Jul 2003, Stefan Monnier wrote: >> Chris Gray writes: >> > Yep. It happens when I start gnus too. I really don't know why, >> > and these "async errors" seem very hard to debug. >> >> Hmmm, actually, come to think of it, there's a function to make >> emacs use X `synchronously', which might make debugging easier... >> >> x-synchronize is a built-in function. >> (x-synchronize ON &optional DISPLAY) >> >> If ON is non-nil, report errors as soon as the erring request is >> made. If ON is nil, allow buffering of requests. This is a >> noop on Mac OS systems. The optional second argument DISPLAY >> specifies which display to act on. DISPLAY should be either a >> frame or a display name (a string). If DISPLAY is omitted or >> nil, that stands for the selected frame's display. >> >> -Miles > > I don't think it's going to help. The `async error' is generally > due to missing BLOCK_INPUT statements that lead to Xlib functions > being called from the signal handler while we're already inside > an Xlib function. This is exactly what the problem was. In my patch you will notice that I had BLOCK_INPUT and UNBLOCK_INPUT commented for some strange reason. Uncommenting it made the async errors go away. I want to fix some other things before sending another patch, but those who are already testing my first patch should know what to do. Cheers, Chris