From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: grischka Newsgroups: gmane.emacs.devel Subject: Re: [PATCH] system-type cygwin with window-system w32 Date: Mon, 18 Jul 2011 20:38:31 +0200 Message-ID: <4E247DA7.4040302@gmx.de> References: 4E240C17.4020102@gmail.com <4E246E75.6040807@gmx.de> <4E24726D.1080609@gmail.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1311014857 2214 80.91.229.12 (18 Jul 2011 18:47:37 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 18 Jul 2011 18:47:37 +0000 (UTC) Cc: emacs-devel@gnu.org To: Daniel Colascione Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Jul 18 20:47:30 2011 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Qisqo-0005Hm-GP for ged-emacs-devel@m.gmane.org; Mon, 18 Jul 2011 20:47:30 +0200 Original-Received: from localhost ([::1]:43922 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Qisqn-0006oj-Hz for ged-emacs-devel@m.gmane.org; Mon, 18 Jul 2011 14:47:29 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:44653) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QisiX-0004T0-7o for emacs-devel@gnu.org; Mon, 18 Jul 2011 14:38:58 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QisiO-0008EW-4e for emacs-devel@gnu.org; Mon, 18 Jul 2011 14:38:55 -0400 Original-Received: from mailout-de.gmx.net ([213.165.64.22]:52332) by eggs.gnu.org with smtp (Exim 4.71) (envelope-from ) id 1QisiM-0008Cs-IJ for emacs-devel@gnu.org; Mon, 18 Jul 2011 14:38:47 -0400 Original-Received: (qmail invoked by alias); 18 Jul 2011 18:38:44 -0000 Original-Received: from unknown (EHLO [10.130.127.138]) [89.204.155.138] by mail.gmx.net (mp006) with SMTP; 18 Jul 2011 20:38:44 +0200 X-Authenticated: #18588216 X-Provags-ID: V01U2FsdGVkX18FZOEQIzgFFOPu12GlRnT+q2rsFE5405V/iV16W8 q1Y9fBdP4Y0gL9 User-Agent: Thunderbird 2.0.0.24 (Windows/20100228) In-Reply-To: <4E24726D.1080609@gmail.com> X-Y-GMX-Trusted: 0 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 213.165.64.22 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:142132 Archived-At: Daniel Colascione wrote: > If it works, /dev/windows would allow us to get rid of not only the self-pipe > and the clipboard thread, but the UI thread as well, though it'd be easier to > keep the last of these for compatibility for the NT build. Thanks. Actually the NT build works quite well with one single thread. Already tested here. > By the way: why do we use a separate UI thread in the NT case at all? AIUI, we > can do everything we need asynchronously via overlapped IO, so we should never > have to block and not pump messages. The 'sys_select' wrapper DOES pump messages, just for the wrong thread. So it needs the thread because it has the thread. :) Well, there are two other things needed: * peek for messages in the QUIT macro (say via ELSE_PENDING_SIGNALS) which is for C-g to interrupt lisp. * break command_loop_1() such that it can be used to handle just one event which is to handle scrollbar messages because the widgets run their own message loop deep in windows. Otherwise all the scrolling would happen only after you release the mouse button. --- grischka