From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Daniel Colascione Newsgroups: gmane.emacs.devel Subject: Re: [PATCH] system-type cygwin with window-system w32 Date: Mon, 18 Jul 2011 11:08:58 -0700 Message-ID: <4E2476BA.40201@gmail.com> 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: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="------------enigC3D466C7E09D70F7B91AEAC9" X-Trace: dough.gmane.org 1311013291 24353 80.91.229.12 (18 Jul 2011 18:21:31 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 18 Jul 2011 18:21:31 +0000 (UTC) Cc: emacs-devel@gnu.org To: grischka Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Jul 18 20:21:27 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 1QisRa-0002wQ-Jd for ged-emacs-devel@m.gmane.org; Mon, 18 Jul 2011 20:21:26 +0200 Original-Received: from localhost ([::1]:47006 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QisRY-0007dL-F3 for ged-emacs-devel@m.gmane.org; Mon, 18 Jul 2011 14:21:24 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:47747) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QisFj-0001FO-Jr for emacs-devel@gnu.org; Mon, 18 Jul 2011 14:09:12 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QisFg-0002hB-4g for emacs-devel@gnu.org; Mon, 18 Jul 2011 14:09:11 -0400 Original-Received: from mail-iw0-f169.google.com ([209.85.214.169]:63540) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QisFf-0002gh-Ai for emacs-devel@gnu.org; Mon, 18 Jul 2011 14:09:07 -0400 Original-Received: by iwn8 with SMTP id 8so3661646iwn.0 for ; Mon, 18 Jul 2011 11:09:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:x-enigmail-version:content-type; bh=RSZU0XQt6lRDMx+hKQPk4QO6KTSZyyLwhnPEo/bXnSk=; b=WQnJW/3XhZALH0qJbzi7+3Gnsdjen09mc9lV4m5fvMjQzLypFawR2Gf9Lz5Xe+x5jK 3up8kthGB+6YJYWRN6SUAAGN6PVtO7jRauzVy69F/n3IK2vIiA+pjIqJf2AKnlvSThZm 2RvDMRJS8RdJ2B8nTTDlRDL+CmFm4kgdaI540= Original-Received: by 10.42.161.70 with SMTP id s6mr7359072icx.374.1311012546191; Mon, 18 Jul 2011 11:09:06 -0700 (PDT) Original-Received: from [192.168.1.2] (c-24-18-179-193.hsd1.wa.comcast.net [24.18.179.193]) by mx.google.com with ESMTPS id o1sm5172217ict.20.2011.07.18.11.09.05 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 18 Jul 2011 11:09:05 -0700 (PDT) User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:5.0) Gecko/20110624 Thunderbird/5.0 In-Reply-To: <4E24726D.1080609@gmail.com> X-Enigmail-Version: 1.2 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 209.85.214.169 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:142128 Archived-At: This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enigC3D466C7E09D70F7B91AEAC9 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On 7/18/11 10:50 AM, Daniel Colascione wrote: > If it works, /dev/windows would allow us to get rid of not only the sel= f-pipe > and the clipboard thread, but the UI thread as well, though it'd be eas= ier to > keep the last of these for compatibility for the NT build. Actually, I spoke too soon regarding the clipboard thread: the problem is= that when we receive a WM_RENDERFORMAT message, we have to call SetClipboardDa= ta _before we return from the window procedure_. This requirement is incomp= atible with using lisp code to render clipboard content: we might have received = a window message at an inopportune time for calling back into Lisp, and we = can't delay the response to WM_RENDERFORMAT by re-queuing or somesuch. Today's= NT clipboard code doesn't have to address the issue because it never calls i= nto Lisp. We can address this problem by using a separate message loop for the clip= board; that way, the clipboard windowproc can wait as long as it wants to reply = to WM_RENDERFORMAT while the main thread does its thing and eventually gets = around to calling our queued timer. I think this approach (which my patch imple= ments) is ultimately the right one. --------------enigC3D466C7E09D70F7B91AEAC9 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (Darwin) iEYEARECAAYFAk4kdr8ACgkQ17c2LVA10VsdKgCdGfAI/42A6E/iho9lXiQNcLSe UUEAn3XKEWGOTn5gSEMWoyWpuiwksRF1 =NfKu -----END PGP SIGNATURE----- --------------enigC3D466C7E09D70F7B91AEAC9--