From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: martin rudalics Newsgroups: gmane.emacs.devel Subject: Re: frame-pixel-width returns incorrect value (CVS Emacs on Windows XP) Date: Sun, 07 Sep 2008 11:37:24 +0200 Message-ID: <48C3A0D4.5060604@gmx.at> References: 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 1220780405 1475 80.91.229.12 (7 Sep 2008 09:40:05 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 7 Sep 2008 09:40:05 +0000 (UTC) Cc: emacs-devel@gnu.org To: Francis Litterio Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Sep 07 11:41:00 2008 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1KcGlP-0003NW-W3 for ged-emacs-devel@m.gmane.org; Sun, 07 Sep 2008 11:41:00 +0200 Original-Received: from localhost ([127.0.0.1]:49706 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KcGkQ-0003ga-BS for ged-emacs-devel@m.gmane.org; Sun, 07 Sep 2008 05:39:58 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KcGkJ-0003eY-0H for emacs-devel@gnu.org; Sun, 07 Sep 2008 05:39:51 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KcGkG-0003ap-OV for emacs-devel@gnu.org; Sun, 07 Sep 2008 05:39:50 -0400 Original-Received: from [199.232.76.173] (port=59970 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KcGkG-0003ad-EA for emacs-devel@gnu.org; Sun, 07 Sep 2008 05:39:48 -0400 Original-Received: from mail.gmx.net ([213.165.64.20]:48610) by monty-python.gnu.org with smtp (Exim 4.60) (envelope-from ) id 1KcGkF-0004yZ-Qx for emacs-devel@gnu.org; Sun, 07 Sep 2008 05:39:48 -0400 Original-Received: (qmail invoked by alias); 07 Sep 2008 09:39:46 -0000 Original-Received: from 62-47-37-223.adsl.highway.telekom.at (EHLO [62.47.37.223]) [62.47.37.223] by mail.gmx.net (mp004) with SMTP; 07 Sep 2008 11:39:46 +0200 X-Authenticated: #14592706 X-Provags-ID: V01U2FsdGVkX1+zyDwkKTqzkMcY6jHHkdYD6haXG3UJfeWzG+mGt+ oZiwAanTbSbJ8M User-Agent: Thunderbird 2.0.0.16 (Windows/20080708) In-Reply-To: X-Y-GMX-Trusted: 0 X-FuHaFi: 0.68 X-detected-kernel: by monty-python.gnu.org: Linux 2.6, seldom 2.4 (older, 4) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:103628 Archived-At: > Using CVS Emacs on Windows XP, evaluate the below form in a frame that > is _not_ currently 60 columns wide by 20 rows high. The values in the > resulting list are equal, but they should not be. > > (let ((origwidth (frame-pixel-width (selected-frame)))) > (modify-frame-parameters nil '((width . 60) (height . 20))) > ;;(sit-for 0) > (list origwidth (frame-pixel-width (selected-frame)))) > > If you uncomment the call to sit-for, the values in the resulting list > are different (as they should be). > > It appears that the second call to frame-pixel-width is unaware of the > change to the width of the frame made by modify-frame-parameters. > > The same problem happens with frame-pixel-height. I don't know if this > is unique to Windows, since I don't have access to a Linux box right now. We could add something like This is updated by redisplay, when it runs to completion. Simply modifying a frame parameter does not update this value. to the doc-string just as we do with `window-end'. martin