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: x-display-pixel-width/height inconsistency Date: Tue, 19 Mar 2013 09:39:07 +0900 Organization: Faculty of Science, Chiba University Message-ID: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset=US-ASCII X-Trace: ger.gmane.org 1363653560 29409 80.91.229.3 (19 Mar 2013 00:39:20 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 19 Mar 2013 00:39:20 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Mar 19 01:39:46 2013 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1UHkaf-0002AU-UA for ged-emacs-devel@m.gmane.org; Tue, 19 Mar 2013 01:39:46 +0100 Original-Received: from localhost ([::1]:57603 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UHkaI-0000hY-Li for ged-emacs-devel@m.gmane.org; Mon, 18 Mar 2013 20:39:22 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:40206) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UHkaE-0000h7-9Q for emacs-devel@gnu.org; Mon, 18 Mar 2013 20:39:19 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UHkaC-0008Mx-Ls for emacs-devel@gnu.org; Mon, 18 Mar 2013 20:39:18 -0400 Original-Received: from mathmail.math.s.chiba-u.ac.jp ([133.82.132.2]:54058) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UHkaC-0008Lk-2t for emacs-devel@gnu.org; Mon, 18 Mar 2013 20:39:16 -0400 Original-Received: from church.math.s.chiba-u.ac.jp (church [133.82.132.36]) by mathmail.math.s.chiba-u.ac.jp (Postfix) with ESMTP id ACDF3C055D for ; Tue, 19 Mar 2013 09:39:07 +0900 (JST) User-Agent: Wanderlust/2.14.0 (Africa) SEMI/1.14.6 (Maruoka) FLIM/1.14.8 (=?ISO-8859-4?Q?Shij=F2?=) APEL/10.6 Emacs/22.3 (sparc-sun-solaris2.8) MULE/5.0 (SAKAKI) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 133.82.132.2 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:157935 Archived-At: There is an inconsistency about the behavior of x-display-pixel-width/height among multiple platforms under multi-monitor environments. The elisp info nodes "Multiple Terminals" and "Display Feature Testing" say: ... On some "multi-monitor" setups, a single X display outputs to more than one physical monitor. Currently, there is no way for Emacs to distinguish between the different physical monitors. ... -- Function: display-pixel-height &optional display This function returns the height of the screen in pixels. On a character terminal, it gives the height in characters. For graphical terminals, note that on "multi-monitor" setups this refers to the pixel width for all physical monitors associated with DISPLAY. *Note Multiple Terminals::. -- Function: display-pixel-width &optional display This function returns the width of the screen in pixels. On a character terminal, it gives the width in characters. For graphical terminals, note that on "multi-monitor" setups this refers to the pixel width for all physical monitors associated with DISPLAY. *Note Multiple Terminals::. But the actual return value is different among the platforms: * X11 and Mac port: Dimension for all physical monitors, as documented above. * NS port: Dimension of some particular physical monitor determined by the argument. * W32 port: Dimension of the primary monitor. (Not actually tested, but guessed from the code and API documentations.) I think these functions should behave consistently among multiple platforms (probably in line with X11). YAMAMOTO Mitsuharu mituharu@math.s.chiba-u.ac.jp