From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: YAMAMOTO Mitsuharu Newsgroups: gmane.emacs.devel Subject: Re: [ryanmcgeary@hotmail.com: display-pixel behavior changed on Mac OS X] Date: Wed, 11 Apr 2007 23:47:53 +0900 (JST) Message-ID: <20070411.234753.35013613.mituharu@math.s.chiba-u.ac.jp> References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1176302904 25892 80.91.229.12 (11 Apr 2007 14:48:24 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 11 Apr 2007 14:48:24 +0000 (UTC) Cc: rms@gnu.org, emacs-devel@gnu.org To: ryanmcgeary@hotmail.com Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Apr 11 16:48:21 2007 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 1Hbe7Q-0002oP-Nk for ged-emacs-devel@m.gmane.org; Wed, 11 Apr 2007 16:48:20 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HbeBT-0000k8-Md for ged-emacs-devel@m.gmane.org; Wed, 11 Apr 2007 10:52:31 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HbeBP-0000hl-Gh for emacs-devel@gnu.org; Wed, 11 Apr 2007 10:52:27 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HbeBN-0000hZ-Ul for emacs-devel@gnu.org; Wed, 11 Apr 2007 10:52:27 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HbeBN-0000hW-Ro for emacs-devel@gnu.org; Wed, 11 Apr 2007 10:52:25 -0400 Original-Received: from mathmail.math.s.chiba-u.ac.jp ([133.82.132.2]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Hbe7J-000663-6p; Wed, 11 Apr 2007 10:48:13 -0400 Original-Received: from localhost (church [133.82.132.36]) by mathmail.math.s.chiba-u.ac.jp (Postfix) with ESMTP id 9B7152C49; Wed, 11 Apr 2007 23:48:09 +0900 (JST) In-Reply-To: X-Mailer: Mew version 3.3 on Emacs 22.0 / Mule 5.0 (SAKAKI) X-detected-kernel: NetBSD 3.0 (DF) 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:69290 Archived-At: >>>>> On Wed, 11 Apr 2007 09:06:14 -0400, "Ryan McGeary" said: > I now understand the terminology difference between display and > framebuffer, but seeing as how "emacs doesn't have a concept to > distinguish multiple framebuffers yet," what would be the best way > to determine the dimensions of the main "framebuffer?" It sounds > like this is no longer possible with the latest change. At least there's no way to do so in a platform-independent way as of now. I'm not sure if it always gives the correct result, but you may possibly get the width and height of the main display (in Mac terminology) like this: (let ((main-display-dict (aref (aref (mac-get-preference "DisplaySets" "com.apple.windowserver") 0) 0))) (cons (cdr (assoc "Width" main-display-dict)) (cdr (assoc "Height" main-display-dict)))) YAMAMOTO Mitsuharu mituharu@math.s.chiba-u.ac.jp