From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Ian Eure Newsgroups: gmane.emacs.bugs Subject: bug#3233: 23.0.93; [NS] Regression in x-display-pixel-width Date: Wed, 6 May 2009 21:50:09 -0700 Message-ID: References: <7F4B990D-CC02-4571-8637-A633215441C4@digg.com> <87AAEBEC-E8DD-4BE0-A35A-9C0AEFB2F997@digg.com> Reply-To: Ian Eure , 3233@emacsbugs.donarmstrong.com NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (Apple Message framework v930.3) Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1241673391 21101 80.91.229.12 (7 May 2009 05:16:31 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 7 May 2009 05:16:31 +0000 (UTC) Cc: 3233@emacsbugs.donarmstrong.com To: Stefan Monnier Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu May 07 07:16:21 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 1M1vy0-0003qJ-T8 for geb-bug-gnu-emacs@m.gmane.org; Thu, 07 May 2009 07:16:21 +0200 Original-Received: from localhost ([127.0.0.1]:46385 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1M1vy0-0001lA-6g for geb-bug-gnu-emacs@m.gmane.org; Thu, 07 May 2009 01:16:20 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1M1vtp-0007UE-Hq for bug-gnu-emacs@gnu.org; Thu, 07 May 2009 01:12:01 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1M1vtl-0007R8-Ch for bug-gnu-emacs@gnu.org; Thu, 07 May 2009 01:12:01 -0400 Original-Received: from [199.232.76.173] (port=47056 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1M1vtl-0007Qt-5H for bug-gnu-emacs@gnu.org; Thu, 07 May 2009 01:11:57 -0400 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:35341) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1M1vtk-0007Ih-OU for bug-gnu-emacs@gnu.org; Thu, 07 May 2009 01:11:57 -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 n475Brba009708; Wed, 6 May 2009 22:11:54 -0700 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.13.8/8.13.8/Submit) id n474t61x003735; Wed, 6 May 2009 21:55:06 -0700 X-Loop: owner@emacsbugs.donarmstrong.com Resent-From: Ian Eure Resent-To: bug-submit-list@donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Thu, 07 May 2009 04:55:06 +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.12416718242735 (code B ref 3233); Thu, 07 May 2009 04:55:06 +0000 Original-Received: (at 3233) by emacsbugs.donarmstrong.com; 7 May 2009 04:50:24 +0000 X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. Original-Received: from mail.digg.com (mail.digg.com [64.191.203.36]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id n474oKS3002728 for <3233@emacsbugs.donarmstrong.com>; Wed, 6 May 2009 21:50:21 -0700 Original-Received: from localhost (localhost.localdomain [127.0.0.1]) by mail.digg.com (Postfix) with ESMTP id 43862A85775; Wed, 6 May 2009 21:50:17 -0700 (PDT) X-Virus-Scanned: amavisd-new at Original-Received: from mail.digg.com ([127.0.0.1]) by localhost (mail.digg.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id savtYvP9EzJM; Wed, 6 May 2009 21:50:12 -0700 (PDT) Original-Received: from [192.168.1.100] (adsl-68-124-177-161.dsl.pltn13.pacbell.net [68.124.177.161]) by mail.digg.com (Postfix) with ESMTP id D8D1BA85779; Wed, 6 May 2009 21:50:10 -0700 (PDT) In-Reply-To: X-Mailer: Apple Mail (2.930.3) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) Resent-Date: Thu, 07 May 2009 01:12:01 -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:27760 Archived-At: On May 6, 2009, at 6:34 PM, Stefan Monnier wrote: >> (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). > Because I didn't know it was possible, because the docstrings refer to a `display' argument without elaborating on what that means. >> 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). Looks like it may be moot, since the info docs say: "For graphical terminals, note that on "multi-monitor" setups this refers to the pixel width for all physical monitors associated with DISPLAY." So it may not be possible to handle in a sane manner, i.e. centering on the display the frame occupies. - Ian