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: Thu, 27 Nov 2008 18:45:45 +0100 Message-ID: <492EDCC9.7070806@gmx.de> References: 4922BD1F.2080604@gmx.at <492DBE0C.1030707@gmx.de> <492EA390.1020206@gmx.at> 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 1227809430 27693 80.91.229.12 (27 Nov 2008 18:10:30 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 27 Nov 2008 18:10:30 +0000 (UTC) Cc: 1348@emacsbugs.donarmstrong.com To: martin rudalics Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Nov 27 19:11:32 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 1L5lKt-0000ph-Od for geb-bug-gnu-emacs@m.gmane.org; Thu, 27 Nov 2008 19:11:31 +0100 Original-Received: from localhost ([127.0.0.1]:53257 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1L5lJk-00053u-0n for geb-bug-gnu-emacs@m.gmane.org; Thu, 27 Nov 2008 13:10:20 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1L5lJg-00053W-24 for bug-gnu-emacs@gnu.org; Thu, 27 Nov 2008 13:10:16 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1L5lJe-000538-Jn for bug-gnu-emacs@gnu.org; Thu, 27 Nov 2008 13:10:15 -0500 Original-Received: from [199.232.76.173] (port=55351 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1L5lJe-000535-DG for bug-gnu-emacs@gnu.org; Thu, 27 Nov 2008 13:10:14 -0500 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:38368) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1L5lJd-0006Ri-Qy for bug-gnu-emacs@gnu.org; Thu, 27 Nov 2008 13:10:14 -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 mARIABZt022944; Thu, 27 Nov 2008 10:10:11 -0800 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.13.8/8.13.8/Submit) id mARI03Gd018977; Thu, 27 Nov 2008 10:00:03 -0800 X-Loop: don@donarmstrong.com Resent-From: grischka Resent-To: bug-submit-list@donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Thu, 27 Nov 2008 18:00:03 +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.122780830717544 (code B ref 1348); Thu, 27 Nov 2008 18:00:03 +0000 Original-Received: (at 1348) by emacsbugs.donarmstrong.com; 27 Nov 2008 17:51:47 +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 mARHpgvJ017534 for <1348@emacsbugs.donarmstrong.com>; Thu, 27 Nov 2008 09:51:44 -0800 Original-Received: (qmail invoked by alias); 27 Nov 2008 17:51:36 -0000 Original-Received: from 1Cust21.tnt8.ber2.deu.da.uu.net (EHLO [149.225.152.21]) [149.225.152.21] by mail.gmx.net (mp040) with SMTP; 27 Nov 2008 18:51:36 +0100 X-Authenticated: #18588216 X-Provags-ID: V01U2FsdGVkX1/UJUw5J5rUSc+/Lqg2uPuw+9dg2R0GdIn9u62kBY NuaAUS08N9ZnLW User-Agent: Thunderbird 1.5.0.10 (Windows/20070221) In-Reply-To: <492EA390.1020206@gmx.at> X-Y-GMX-Trusted: 0 X-FuHaFi: 0.67 X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) Resent-Date: Thu, 27 Nov 2008 13:10:15 -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:22722 Archived-At: martin rudalics wrote: > > Why waste time with looking for "better results" instead of a > > correct solution? > > > > Which is obviously that these set-frame-xxx functions need to wait > > for the ConfigureNotify event and to handle it before they return. > > I doubt such a solution would be generally feasible. A command might > try to set the height and width of a couple of frames. It can't wait > for a ConfigureNotify event to arrive for each of these. Why can't it wait? A couple of frames doesn't sound like thousands and also you probably would not start editing your files while your frames are still moving around. So it wouldn't make any difference on the user level, except that you'd get correct results by design. And then it can of course (and probably should) handle other events while waiting for the ConfigureNotify. In GUI apps it is normal that "wait" doesn't mean just sleep or block. Btw, on ms-windows such serialization is built-in actually. With a call like "SetWindowPos" you'd get the WM_WINDOWPOSCHANGED message with the new coordinates and sizes before the call returns.