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: x-display-pixel-width/height inconsistency Date: Thu, 21 Mar 2013 12:47:02 +0900 Organization: Faculty of Science, Chiba University Message-ID: References: <87vc8nyoat.fsf@yandex.ru> <8738vrq67p.fsf@yandex.ru> <87vc8metkw.fsf@yandex.ru> <8738vqyxnt.fsf@yandex.ru> <87sj3po835.fsf@yandex.ru> <514A73D0.8020503@yandex.ru> 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 1363837629 4619 80.91.229.3 (21 Mar 2013 03:47:09 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 21 Mar 2013 03:47:09 +0000 (UTC) Cc: emacs-devel@gnu.org To: Dmitry Gutov Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Mar 21 04:47:35 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 1UIWTX-0004q2-Ao for ged-emacs-devel@m.gmane.org; Thu, 21 Mar 2013 04:47:35 +0100 Original-Received: from localhost ([::1]:47092 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UIWTA-0007mm-5y for ged-emacs-devel@m.gmane.org; Wed, 20 Mar 2013 23:47:12 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:47815) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UIWT6-0007mU-81 for emacs-devel@gnu.org; Wed, 20 Mar 2013 23:47:09 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UIWT4-0001p5-Ft for emacs-devel@gnu.org; Wed, 20 Mar 2013 23:47:08 -0400 Original-Received: from mathmail.math.s.chiba-u.ac.jp ([133.82.132.2]:52306) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UIWT3-0001nu-V5 for emacs-devel@gnu.org; Wed, 20 Mar 2013 23:47:06 -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 493ACC055D; Thu, 21 Mar 2013 12:47:02 +0900 (JST) In-Reply-To: <514A73D0.8020503@yandex.ru> 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:158019 Archived-At: >>>>> On Thu, 21 Mar 2013 06:43:28 +0400, Dmitry Gutov said: > With them fixed, the behavior seems to be right: ELISP> (x-display-pixel-height) > 1200 ELISP> (x-display-pixel-width) > 3200 ELISP> (display-mm-height) > 423 ELISP> (display-mm-width) > 1128 > That's the correct values for the bounding box. At least, the first > two. Thanks again for testing. >> I understand users want to know the size of each monitor rather >> than the total size. But that does not justify changing existing >> common functions in an inconsistent and ad hoc way and making them >> platform-specific unnecessarily. If such functionality is >> necessary, it should be provided in a platform-independent and >> consistent way. > Of course. I was just asking why you picked this specific behavior > to make consistent across platforms. > If the existing X11 behavior is actually in use somewhere, then that > makes sense, of course. Other behavior is also OK with me as long as it is consistent across platforms. But I think the X11 behavior is the most natural (I won't say useful) choice at this moment for the following reasons. First, the behavior is documented in the info including the case for multi-monitor setups. Second, the other x-display-* functions query properties per "display" (in the X11 terminology) determined by the given argument. Note that neither of "display" nor "screen" in the X11 terminology has something to do with physical monitors (in this sense, the implementation of x-display-screens in the NS port, counting the number of physical monitors, is also wrong). Third, I guess distinguishing physical monitors on X11 requires the Xinerama extension or some help of window managers. So such functionality seems to be at a different level from other x-display-* functions. One may want to query not only the size of a particular physical monitor but also the position and the displayable area (i.e., except Panel, Dock, or Taskbar). I think it would be better to provide the functions that are aware of physical monitors as a new group of them, rather than by breaking the existing argument convention of x-display-* functions. YAMAMOTO Mitsuharu mituharu@math.s.chiba-u.ac.jp