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#3233: 23.0.93; [NS] Regression in x-display-pixel-width Date: Wed, 06 May 2009 21:34:13 -0400 Message-ID: References: <7F4B990D-CC02-4571-8637-A633215441C4@digg.com> <87AAEBEC-E8DD-4BE0-A35A-9C0AEFB2F997@digg.com> Reply-To: Stefan Monnier , 3233@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 1241661141 30849 80.91.229.12 (7 May 2009 01:52:21 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 7 May 2009 01:52:21 +0000 (UTC) Cc: 3233@emacsbugs.donarmstrong.com To: Ian Eure Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu May 07 03:52:11 2009 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 1M1smQ-0003q0-Ua for geb-bug-gnu-emacs@m.gmane.org; Thu, 07 May 2009 03:52:11 +0200 Original-Received: from localhost ([127.0.0.1]:33940 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1M1smQ-0001zC-3U for geb-bug-gnu-emacs@m.gmane.org; Wed, 06 May 2009 21:52:10 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1M1smM-0001z5-5M for bug-gnu-emacs@gnu.org; Wed, 06 May 2009 21:52:06 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1M1smH-0001yR-IQ for bug-gnu-emacs@gnu.org; Wed, 06 May 2009 21:52:05 -0400 Original-Received: from [199.232.76.173] (port=41475 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1M1smH-0001yO-Fs for bug-gnu-emacs@gnu.org; Wed, 06 May 2009 21:52:01 -0400 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:47369) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1M1smG-0004eO-SO for bug-gnu-emacs@gnu.org; Wed, 06 May 2009 21:52:01 -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 n471prWx017206; Wed, 6 May 2009 18:51:58 -0700 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.13.8/8.13.8/Submit) id n471e4eE013292; Wed, 6 May 2009 18:40:04 -0700 X-Loop: owner@emacsbugs.donarmstrong.com Resent-From: Stefan Monnier Resent-To: bug-submit-list@donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Thu, 07 May 2009 01:40:04 +0000 Resent-Message-ID: Resent-Sender: owner@emacsbugs.donarmstrong.com X-Emacs-PR-Message: followup 3233 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Original-Received: via spool by 3233-submit@emacsbugs.donarmstrong.com id=B3233.124166006411863 (code B ref 3233); Thu, 07 May 2009 01:40:04 +0000 Original-Received: (at 3233) by emacsbugs.donarmstrong.com; 7 May 2009 01:34:24 +0000 X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. 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 n471YJ6P011853 for <3233@emacsbugs.donarmstrong.com>; Wed, 6 May 2009 18:34:21 -0700 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: ArUFAGjXAUrO+IYe/2dsb2JhbACBUM51hAEFhU4 X-IronPort-AV: E=Sophos;i="4.40,305,1238990400"; d="scan'208";a="38110421" Original-Received: from 206-248-134-30.dsl.teksavvy.com (HELO ceviche.home) ([206.248.134.30]) by ironport2-out.teksavvy.com with ESMTP; 06 May 2009 21:34:14 -0400 Original-Received: by ceviche.home (Postfix, from userid 20848) id E47CBB523F; Wed, 6 May 2009 21:34:13 -0400 (EDT) In-Reply-To: <87AAEBEC-E8DD-4BE0-A35A-9C0AEFB2F997@digg.com> (Ian Eure's message of "Wed, 6 May 2009 14:22:27 -0700") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.93 (gnu/linux) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) Resent-Date: Wed, 06 May 2009 21:52:05 -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:27757 Archived-At: > (let ((disp (frame-parameter frame 'display))) Why not use `frame' directly? The `display' frame parameter is fundamentally specific to X11 (although we kinds of try to make Emacs pretend that it also exists under other GUIs). > I don't know how (display-pixel-height) handles multihead displays, but it > seems saner to explicitly pass the display the frame occupies. The "display" you pass is just some string. So "right" way would be to pass the corresponding terminal (i.e. (frame-terminal frame)), but most/all the functions that operate on terminals accept frames as well (since terminal object were only introduced in Emacs-23 as pat of the multi-tty code, so frames were previously the canonical way to refer to a display). Stefan