From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Baoqiu Cui Newsgroups: gmane.emacs.bugs Subject: bug#987: x-display-pixel-width not returning correct value after resolution change Date: Tue, 16 Sep 2008 10:43:44 -0700 Organization: at&t http://my.att.net/ Message-ID: Reply-To: Baoqiu Cui , 987@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 1221622102 1274 80.91.229.12 (17 Sep 2008 03:28:22 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 17 Sep 2008 03:28:22 +0000 (UTC) To: gnu-emacs-bug@moderators.isc.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Sep 17 05:29:18 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 1Kfnj7-0006e9-4j for geb-bug-gnu-emacs@m.gmane.org; Wed, 17 Sep 2008 05:29:13 +0200 Original-Received: from localhost ([127.0.0.1]:39385 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Kfni5-0002k6-VL for geb-bug-gnu-emacs@m.gmane.org; Tue, 16 Sep 2008 23:28:10 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Kfexg-0003vz-NR for bug-gnu-emacs@gnu.org; Tue, 16 Sep 2008 14:07:40 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Kfexe-0003vb-Uk for bug-gnu-emacs@gnu.org; Tue, 16 Sep 2008 14:07:40 -0400 Original-Received: from [199.232.76.173] (port=58919 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Kfexe-0003vW-SC for bug-gnu-emacs@gnu.org; Tue, 16 Sep 2008 14:07:38 -0400 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:33839) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1Kfexd-00039i-3P for bug-gnu-emacs@gnu.org; Tue, 16 Sep 2008 14:07:38 -0400 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 m8GI7YeP004752; Tue, 16 Sep 2008 11:07:35 -0700 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.13.8/8.13.8/Submit) id m8GHo5BR029964; Tue, 16 Sep 2008 10:50:05 -0700 X-Loop: don@donarmstrong.com Resent-From: Baoqiu Cui Resent-To: bug-submit-list@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: Original-Received: via spool by submit@emacsbugs.donarmstrong.com id=B.122158706127950 (code B ref -1); Tue, 16 Sep 2008 17:50:04 +0000 Original-Received: (at submit) by emacsbugs.donarmstrong.com; 16 Sep 2008 17:44:21 +0000 Original-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 Original-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 Original-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 Original-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 Original-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 Original-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] Original-Received: (qmail 17867 invoked from network); 16 Sep 2008 17:44:00 -0000 Original-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 Original-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 Original-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 Original-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 Original-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 Original-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 Original-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 Original-Path: 508a9475!not-for-mail Original-Newsgroups: gnu.emacs.bug User-Agent: Gnus/5.1100000000000003 (Gnus v5.11) Emacs/22.2 (cygwin) Cancel-Lock: sha1:1/suQCzTXjHvKGIQY6wBaVX4Gu8= Original-Lines: 19 Original-NNTP-Posting-Host: 209.131.62.113 Original-X-Complaints-To: abuse@prodigy.net Original-X-Trace: nlpi068.nbdc.sbc.com 1221587024 ST000 209.131.62.113 (Tue, 16 Sep 2008 13:43:44 EDT) Original-NNTP-Posting-Date: Tue, 16 Sep 2008 13:43:44 EDT 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 X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) Resent-Date: Tue, 16 Sep 2008 14:07:40 -0400 X-Mailman-Approved-At: Tue, 16 Sep 2008 23:27:55 -0400 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:20582 Archived-At: 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