From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.bugs Subject: bug#1348: set-frame-width and set-frame-position seem buggy on at least MSWindows Date: Fri, 05 Dec 2008 10:58:37 -0500 Message-ID: References: <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> <49355A23.8030001@gmx.at> <4935CE37.4010206@gmx.de> <49365CB8.5050800@gmx.at> <4936C0E6.9050200@gmx.de> <49381A5C.2030903@gmx.at> <493866B8.6050408@gmx.de> Reply-To: Stefan Monnier , 1348@emacsbugs.donarmstrong.com NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1228493584 17512 80.91.229.12 (5 Dec 2008 16:13:04 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 5 Dec 2008 16:13:04 +0000 (UTC) Cc: 1348@emacsbugs.donarmstrong.com, bug-gnu-emacs@gnu.org, grischka , jasonr@f2s.com To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Dec 05 17:14:07 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 1L8dJQ-00053W-D3 for geb-bug-gnu-emacs@m.gmane.org; Fri, 05 Dec 2008 17:13:52 +0100 Original-Received: from localhost ([127.0.0.1]:43968 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1L8dIF-00050y-M3 for geb-bug-gnu-emacs@m.gmane.org; Fri, 05 Dec 2008 11:12:39 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1L8dFz-00048G-L2 for bug-gnu-emacs@gnu.org; Fri, 05 Dec 2008 11:10:19 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1L8dFy-00047c-IY for bug-gnu-emacs@gnu.org; Fri, 05 Dec 2008 11:10:18 -0500 Original-Received: from [199.232.76.173] (port=48952 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1L8dFy-00047P-DO for bug-gnu-emacs@gnu.org; Fri, 05 Dec 2008 11:10:18 -0500 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:52485) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1L8dFx-0000rS-TM for bug-gnu-emacs@gnu.org; Fri, 05 Dec 2008 11:10: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 mB5GADUH008489; Fri, 5 Dec 2008 08:10:15 -0800 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.13.8/8.13.8/Submit) id mB5G58GD006608; Fri, 5 Dec 2008 08:05:08 -0800 X-Loop: don@donarmstrong.com Resent-From: Stefan Monnier Resent-To: bug-submit-list@donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Fri, 05 Dec 2008 16:05:08 +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.12284927264405 (code B ref 1348); Fri, 05 Dec 2008 16:05:08 +0000 Original-Received: (at 1348) by emacsbugs.donarmstrong.com; 5 Dec 2008 15:58:46 +0000 Original-Received: from ironport2-out.teksavvy.com (ironport2-out.teksavvy.com [206.248.154.182]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id mB5FwhMq004392 for <1348@emacsbugs.donarmstrong.com>; Fri, 5 Dec 2008 07:58:44 -0800 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AvoEABveOEnO+Jkl/2dsb2JhbACBbc1xgwWBJg X-IronPort-AV: E=Sophos;i="4.33,721,1220241600"; d="scan'208";a="30696770" Original-Received: from 206-248-153-37.dsl.teksavvy.com (HELO pastel.home) ([206.248.153.37]) by ironport2-out.teksavvy.com with ESMTP; 05 Dec 2008 10:58:37 -0500 Original-Received: by pastel.home (Postfix, from userid 20848) id AC8D984A9; Fri, 5 Dec 2008 10:58:37 -0500 (EST) In-Reply-To: (Eli Zaretskii's message of "Fri, 05 Dec 2008 08:20:04 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) X-CrossAssassin-Score: 2 X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) Resent-Date: Fri, 05 Dec 2008 11:10:18 -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:22983 Archived-At: >> if (XINT (lines) != FRAME_LINES (f)) >> x_set_window_size (f, 1, FRAME_COLS (f), XINT (lines)); >> >> Basically if the window has 20 lines on enter-freeze, then our >> thing wouldn't even start, because between "sleep-for" and >> "set-frame-height" there is nothing to read the WM_SIZE messages >> from the mouse-dragging. >> >> Works for me if I disable this line: >> // if (XINT (lines) ... >> >> It is a natural problem which happens only too often with >> such "micro-optimizations". > This is not a "micro-optimization". Emacs deliberately avoids > unnecessary calls to display routines, because frequent redisplay that > doesn't really change anything causes flickering that is quite > annoying. Therefore, your "solution" is wrong. Maybe it's not the right fix, but since it appears to fix the original problem, we should look into why it fixes the problem. Stefan