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: Sun, 30 Nov 2008 18:40:15 +0100 Message-ID: <4932CFFF.6000204@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> 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 1228067495 7546 80.91.229.12 (30 Nov 2008 17:51:35 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 30 Nov 2008 17:51:35 +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 Sun Nov 30 18:52:38 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 1L6qTF-0006I7-8i for geb-bug-gnu-emacs@m.gmane.org; Sun, 30 Nov 2008 18:52:37 +0100 Original-Received: from localhost ([127.0.0.1]:60095 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1L6qS4-00047F-6r for geb-bug-gnu-emacs@m.gmane.org; Sun, 30 Nov 2008 12:51:24 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1L6qR8-0003ha-Td for bug-gnu-emacs@gnu.org; Sun, 30 Nov 2008 12:50:26 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1L6qR2-0003cg-FU for bug-gnu-emacs@gnu.org; Sun, 30 Nov 2008 12:50:24 -0500 Original-Received: from [199.232.76.173] (port=37631 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1L6qR2-0003cb-30 for bug-gnu-emacs@gnu.org; Sun, 30 Nov 2008 12:50:20 -0500 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:55568) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1L6qR0-0000tA-68 for bug-gnu-emacs@gnu.org; Sun, 30 Nov 2008 12:50:19 -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 mAUHoCbv025573; Sun, 30 Nov 2008 09:50:12 -0800 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.13.8/8.13.8/Submit) id mAUHo3W3024832; Sun, 30 Nov 2008 09:50:03 -0800 X-Loop: don@donarmstrong.com Resent-From: grischka Resent-To: bug-submit-list@donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Sun, 30 Nov 2008 17:50: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.122806684423430 (code B ref 1348); Sun, 30 Nov 2008 17:50:03 +0000 Original-Received: (at 1348) by emacsbugs.donarmstrong.com; 30 Nov 2008 17:40:44 +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 mAUHeeIY023424 for <1348@emacsbugs.donarmstrong.com>; Sun, 30 Nov 2008 09:40:42 -0800 Original-Received: (qmail invoked by alias); 30 Nov 2008 17:40:33 -0000 Original-Received: from 1Cust98.tnt3.ber2.deu.da.uu.net (EHLO [149.225.56.98]) [149.225.56.98] by mail.gmx.net (mp021) with SMTP; 30 Nov 2008 18:40:33 +0100 X-Authenticated: #18588216 X-Provags-ID: V01U2FsdGVkX18Kfd5C5L8K0dKbX0uoADL7DADXbTErZIPipj2NSp LrHGoHFCtQv7W5 User-Agent: Thunderbird 1.5.0.10 (Windows/20070221) In-Reply-To: <49325AAA.5090606@gmx.at> X-Y-GMX-Trusted: 0 X-FuHaFi: 0.75 X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) Resent-Date: Sun, 30 Nov 2008 12:50:24 -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:22794 Archived-At: martin rudalics wrote: > >> I have never looked into that code. IIUC one problem is flickering > when > >> a frame gets redrawn too often. Moreover, it's not always safe to > >> redraw frames. > > > > Redraw? Isn't this about resize rather than redraw? > > You can, in one command, issue a number of resize requests. I doubt we > want each of them cause a redisplay/redraw before the command completes. But who said anything about redisplay/redraw? What it needs to wait for is the notification from the window system or toolkit that the resize request was carried out. Otherwise emacs runs into situations where the state of it's internal variables w.r.t. frame size/position is not consistent with the state of the GUI, and in consequence the inconsistent GUI state works back on these variables. (by means of the logic meant for mouse sizing/dragging) I guess that is the basic problem. There may be additional aspects like toolkit differences or race conditions.