From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Francis Litterio Newsgroups: gmane.emacs.devel Subject: frame-pixel-width returns incorrect value (CVS Emacs on Windows XP) Date: Sun, 07 Sep 2008 00:00:05 -0400 Message-ID: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1220760959 9626 80.91.229.12 (7 Sep 2008 04:15:59 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 7 Sep 2008 04:15:59 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Sep 07 06:16:54 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 1KcBhk-0002sl-TD for ged-emacs-devel@m.gmane.org; Sun, 07 Sep 2008 06:16:53 +0200 Original-Received: from localhost ([127.0.0.1]:42873 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KcBgl-00012h-DB for ged-emacs-devel@m.gmane.org; Sun, 07 Sep 2008 00:15:51 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KcBgh-00012X-5m for emacs-devel@gnu.org; Sun, 07 Sep 2008 00:15:47 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KcBgf-000123-MG for emacs-devel@gnu.org; Sun, 07 Sep 2008 00:15:46 -0400 Original-Received: from [199.232.76.173] (port=43534 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KcBgf-00011y-HQ for emacs-devel@gnu.org; Sun, 07 Sep 2008 00:15:45 -0400 Original-Received: from pcls1.std.com ([192.74.137.141]:36150 helo=TheWorld.com) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1KcBgf-0003eR-35 for emacs-devel@gnu.org; Sun, 07 Sep 2008 00:15:45 -0400 Original-Received: from usenlittefl1c.theworld.com (IDENT:105@shell01.theworld.com [192.74.137.71]) by TheWorld.com (8.13.6/8.13.6) with ESMTP id m874Cjom007622 for ; Sun, 7 Sep 2008 00:12:48 -0400 X-Random-Quote: Good judgement comes from experience. Experience comes from bad judgement. -- Unknown X-detected-kernel: by monty-python.gnu.org: Linux 2.6 (newer, 2) 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:103625 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. -- Fran