From unknown Mon Aug 18 19:26:05 2025 X-Loop: don@donarmstrong.com Subject: bug#987: x-display-pixel-width not returning correct value after resolution change Reply-To: Baoqiu Cui , 987@debbugs.gnu.org Resent-From: Baoqiu Cui Resent-To: bug-submit-list@lists.donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Tue, 16 Sep 2008 17:50:04 +0000 Resent-Message-ID: Resent-Sender: don@donarmstrong.com X-Emacs-PR-Message: report 987 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Received: via spool by submit@emacsbugs.donarmstrong.com id=B.122158706127950 (code B ref -1); Tue, 16 Sep 2008 17:50:04 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.3-bugs.debian.org_2005_01_02 (2007-08-08) on rzlab.ucr.edu X-Spam-Level: X-Spam-Status: No, score=-0.7 required=4.0 tests=AWL,BAYES_40, FORGED_YAHOO_RCVD,RCVD_IN_DNSWL_LOW autolearn=ham version=3.2.3-bugs.debian.org_2005_01_02 Received: (at submit) by emacsbugs.donarmstrong.com; 16 Sep 2008 17:44:21 +0000 Received: from lists.gnu.org (lists.gnu.org [199.232.76.165]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id m8GHiEJd027944 for ; Tue, 16 Sep 2008 10:44:16 -0700 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Kfeb0-0004PT-EY for bug-gnu-emacs@gnu.org; Tue, 16 Sep 2008 13:44:14 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Kfeay-0004Ng-Qv for bug-gnu-emacs@gnu.org; Tue, 16 Sep 2008 13:44:14 -0400 Received: from [199.232.76.173] (port=43745 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Kfeay-0004Na-G7 for bug-gnu-emacs@gnu.org; Tue, 16 Sep 2008 13:44:12 -0400 Received: from moderators.individual.net ([130.133.4.7]:40213) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Kfeay-0007BI-3T for bug-gnu-emacs@gnu.org; Tue, 16 Sep 2008 13:44:12 -0400 Received: from mail120.messagelabs.com ([216.82.250.83]) by moderators.individual.net (Exim 4.69) for gnu-emacs-bug@moderators.isc.org with esmtp (envelope-from ) id <1Kfeax-0001W4-38>; Tue, 16 Sep 2008 19:44:11 +0200 X-VirusChecked: Checked X-Env-Sender: news@nlpi068.nbdc.sbc.com X-Msg-Ref: server-14.tower-120.messagelabs.com!1221587039!31943923!1 X-StarScan-Version: 5.5.12.14.2; banners=-,-,- X-Originating-IP: [144.160.20.53] Received: (qmail 17867 invoked from network); 16 Sep 2008 17:44:00 -0000 Received: from sbcsmtp6.sbc.com (HELO mlph073.enaf.sfdc.sbc.com) (144.160.20.53) by server-14.tower-120.messagelabs.com with AES256-SHA encrypted SMTP; 16 Sep 2008 17:44:00 -0000 Received: from enaf.sfdc.sbc.com (localhost.localdomain [127.0.0.1]) by mlph073.enaf.sfdc.sbc.com (8.14.0/8.14.0) with ESMTP id m8GHhxgC015681 for ; Tue, 16 Sep 2008 13:43:59 -0400 Received: from mlph070.sfdc.sbc.com (mlph070.sfdc.sbc.com [144.155.224.139]) by mlph073.enaf.sfdc.sbc.com (8.14.0/8.14.0) with ESMTP id m8GHhqYi015598 for ; Tue, 16 Sep 2008 13:43:53 -0400 Received: from sfdc.sbc.com (localhost.localdomain [127.0.0.1]) by mlph070.sfdc.sbc.com (8.14.0/8.14.0) with ESMTP id m8GHhqnk025399 for ; Tue, 16 Sep 2008 13:43:52 -0400 Received: from nlpi068.nbdc.sbc.com (nlpi068-int.nbdc.sbc.com [207.115.46.224]) by mlph070.sfdc.sbc.com (8.14.0/8.14.0) with ESMTP id m8GHhki1024629 for ; Tue, 16 Sep 2008 13:43:46 -0400 Received: from nlpi068.nbdc.sbc.com (nlpi068.nbdc.sbc.com [127.0.0.1]) by nlpi068.nbdc.sbc.com (8.14.0/8.14.0) with ESMTP id m8GHhiJ5024718 for ; Tue, 16 Sep 2008 13:43:44 -0400 Received: from localhost (localhost [[UNIX: localhost]]) by nlpi068.nbdc.sbc.com (8.14.0/8.14.0/Submit) id m8GHhixb024717; Tue, 16 Sep 2008 13:43:44 -0400 To: gnu-emacs-bug@moderators.isc.org Path: 508a9475!not-for-mail Newsgroups: gnu.emacs.bug From: Baoqiu Cui Message-ID: User-Agent: Gnus/5.1100000000000003 (Gnus v5.11) Emacs/22.2 (cygwin) Cancel-Lock: sha1:1/suQCzTXjHvKGIQY6wBaVX4Gu8= MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Lines: 19 NNTP-Posting-Host: 209.131.62.113 X-Complaints-To: abuse@prodigy.net X-Trace: nlpi068.nbdc.sbc.com 1221587024 ST000 209.131.62.113 (Tue, 16 Sep 2008 13:43:44 EDT) NNTP-Posting-Date: Tue, 16 Sep 2008 13:43:44 EDT Organization: at&t http://my.att.net/ X-UserInfo1: Q[R_@SNEVJSABFD[LZKJOPHAWB\^PBQLGPQRZ_MHEQR@ETUCCNSKQFCY@TXDX_WHSVB]ZEJLSNY\^J[CUVSA_QLFC^RQHUPH[P[NRWCCMLSNPOD_ESALHUK@TDFUZHBLJ\XGKL^NXA\EVHSP[D_C^B_^JCX^W]CHBAX]POG@SSAZQ\LE[DCNMUPG_VSC@VJM Date: Tue, 16 Sep 2008 10:43:44 -0700 X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) It seems that function x-display-pixel-width behaves a little differently in GNU Emacs and XEmacs. In XEmacs, (x-display-pixel-width) can recognize the display resolution changes after XEmacs is started. For example, if the display resolution was originally set to 1400x1050 when XEmacs was started, (x-display-pixel-width) would return 1400; then, if the display resolution is changed to 1280x1024 while XEmacs is still running, (x-display-pixel-width) would return 1280. However, (x-display-pixel-width) on GNU Emacs is NOT able to recognize such physical display resolution change (from 1400x1050 to 1280x1024) and will still return 1400. I am not sure if this is a bug or feature on GNU Emacs, but I would like to see this function work like its counterpart in XEmacs. Regards, Baoqiu