From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: grischka Newsgroups: gmane.emacs.bugs Subject: bug#1348: set-frame-width and set-frame-position seem buggy on at least MSWindows Date: Tue, 02 Dec 2008 15:11:23 +0100 Message-ID: <4935420B.5060706@gmx.de> References: 4922BD1F.2080604@gmx.at <492DBE0C.1030707@gmx.de> <492EA390.1020206@gmx.at> <492EDCC9.7070806@gmx.de> <492EF976.1070108@gmx.at> <49319B2E.20006@gmx.de> <49325AAA.5090606@gmx.at> <1228089264.493327b06fd4e@webmail.freedom2surf.net> <49339200.7080603@gmx.at> <1228119737.49339eb964cc6@webmail.freedom2surf.net> <4933AFA5.5020109@gmx.at> <4934D1AF.50905@gmx.de> <1228203763.4934e6f38c1b2@webmail.freedom2surf.net> Reply-To: grischka , 1348@emacsbugs.donarmstrong.com NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1228228302 24798 80.91.229.12 (2 Dec 2008 14:31:42 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 2 Dec 2008 14:31:42 +0000 (UTC) Cc: 1348@emacsbugs.donarmstrong.com To: jasonr@f2s.com Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Dec 02 15:32:45 2008 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1L7WIs-0005Mq-Sh for geb-bug-gnu-emacs@m.gmane.org; Tue, 02 Dec 2008 15:32:43 +0100 Original-Received: from localhost ([127.0.0.1]:55787 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1L7WHi-0001cz-Ev for geb-bug-gnu-emacs@m.gmane.org; Tue, 02 Dec 2008 09:31:30 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1L7WGa-00011s-1M for bug-gnu-emacs@gnu.org; Tue, 02 Dec 2008 09:30:20 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1L7WGZ-00011B-2k for bug-gnu-emacs@gnu.org; Tue, 02 Dec 2008 09:30:19 -0500 Original-Received: from [199.232.76.173] (port=41505 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1L7WGY-00010x-Nl for bug-gnu-emacs@gnu.org; Tue, 02 Dec 2008 09:30:18 -0500 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:60251) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1L7WGY-0006W4-Av for bug-gnu-emacs@gnu.org; Tue, 02 Dec 2008 09:30:18 -0500 Original-Received: from rzlab.ucr.edu (rzlab.ucr.edu [127.0.0.1]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id mB2EUCOp028254; Tue, 2 Dec 2008 06:30:13 -0800 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.13.8/8.13.8/Submit) id mB2EK4gg025302; Tue, 2 Dec 2008 06:20:04 -0800 X-Loop: don@donarmstrong.com Resent-From: grischka Resent-To: bug-submit-list@donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Tue, 02 Dec 2008 14:20:04 +0000 Resent-Message-ID: Resent-Sender: don@donarmstrong.com X-Emacs-PR-Message: report 1348 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Original-Received: via spool by 1348-submit@emacsbugs.donarmstrong.com id=B1348.122822711223898 (code B ref 1348); Tue, 02 Dec 2008 14:20:04 +0000 Original-Received: (at 1348) by emacsbugs.donarmstrong.com; 2 Dec 2008 14:11:52 +0000 Original-Received: from mail.gmx.net (mail.gmx.net [213.165.64.20]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with SMTP id mB2EBmpv023891 for <1348@emacsbugs.donarmstrong.com>; Tue, 2 Dec 2008 06:11:49 -0800 Original-Received: (qmail invoked by alias); 02 Dec 2008 14:11:40 -0000 Original-Received: from 1Cust123.tnt5.ber2.deu.da.uu.net (EHLO [149.225.86.123]) [149.225.86.123] by mail.gmx.net (mp031) with SMTP; 02 Dec 2008 15:11:40 +0100 X-Authenticated: #18588216 X-Provags-ID: V01U2FsdGVkX1/kxZg3q3XkzSQVlTqzNgN1exkkCx+Q9QkVXHPSqL Wyn4NCYWQZthUF User-Agent: Thunderbird 1.5.0.10 (Windows/20070221) In-Reply-To: <1228203763.4934e6f38c1b2@webmail.freedom2surf.net> X-Y-GMX-Trusted: 0 X-FuHaFi: 0.64 X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) Resent-Date: Tue, 02 Dec 2008 09:30:19 -0500 X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:22839 Archived-At: jasonr wrote: > Quoting grischka: > >> Below is a patch that fixes the problem on windows. > > I believe this patch is incorrect, as it will result in the message handling > code running in the context of the Lisp thread, which will result in a whole > host of unreproducable crashing bugs if left like that. Probably the reason it > seems to work is that it introduces a delay that is generally long enough for > the real resizing or moving to take place before the Lisp thread continues. Believes are not an approach to code, coincidentally none of the above do apply. > Inter-thread synchronization is what is needed here to fix this safely and > deterministically. Nicely put. This is the theory. (As to practical things that need fixing: HRGN orig_clip; GetClipRgn(s->hdc, orig_clip); Or: for (i = 0; i < len; i++) ExtTextOutW (s->hdc, x + i, y, options, NULL, s->char2b + from + i, 1, NULL); )