From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Andy Moreton Newsgroups: gmane.emacs.bugs Subject: bug#18637: 24.4.50; doc of frame parameter DISPLAY vs actual value on MS Windows Date: Mon, 06 Oct 2014 19:08:38 +0100 Message-ID: References: > <837g0dm95c.fsf@gnu.org>> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1412619066 338 80.91.229.3 (6 Oct 2014 18:11:06 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 6 Oct 2014 18:11:06 +0000 (UTC) To: 18637@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Oct 06 20:10:59 2014 Return-path: Envelope-to: geb-bug-gnu-emacs@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 1XbCkM-0006Ij-I7 for geb-bug-gnu-emacs@m.gmane.org; Mon, 06 Oct 2014 20:10:58 +0200 Original-Received: from localhost ([::1]:53551 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XbCkM-0004JX-27 for geb-bug-gnu-emacs@m.gmane.org; Mon, 06 Oct 2014 14:10:58 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:43383) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XbCjc-0003iN-Fr for bug-gnu-emacs@gnu.org; Mon, 06 Oct 2014 14:10:22 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XbCjS-0007iZ-Iy for bug-gnu-emacs@gnu.org; Mon, 06 Oct 2014 14:10:12 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:44421) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XbCjS-0007hz-EC for bug-gnu-emacs@gnu.org; Mon, 06 Oct 2014 14:10:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1XbCjR-0001X8-TD for bug-gnu-emacs@gnu.org; Mon, 06 Oct 2014 14:10:02 -0400 X-Loop: help-debbugs@gnu.org In-Reply-To: <12fc196e-cc82-4f22-8d2f-cede95542ea7@default> Resent-From: Andy Moreton Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 06 Oct 2014 18:10:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 18637 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.14126189665844 (code B ref -1); Mon, 06 Oct 2014 18:10:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 6 Oct 2014 18:09:26 +0000 Original-Received: from localhost ([127.0.0.1]:35985 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XbCir-0001WC-LY for submit@debbugs.gnu.org; Mon, 06 Oct 2014 14:09:25 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:41310) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XbCio-0001W0-GH for submit@debbugs.gnu.org; Mon, 06 Oct 2014 14:09:23 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XbCie-0007Ik-Ej for submit@debbugs.gnu.org; Mon, 06 Oct 2014 14:09:22 -0400 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:54933) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XbCie-0007Ib-B2 for submit@debbugs.gnu.org; Mon, 06 Oct 2014 14:09:12 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:42987) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XbCiW-0003UR-J2 for bug-gnu-emacs@gnu.org; Mon, 06 Oct 2014 14:09:12 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XbCiP-0007DT-39 for bug-gnu-emacs@gnu.org; Mon, 06 Oct 2014 14:09:04 -0400 Original-Received: from plane.gmane.org ([80.91.229.3]:43928) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XbCiO-0007Cz-Sz for bug-gnu-emacs@gnu.org; Mon, 06 Oct 2014 14:08:57 -0400 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1XbCiK-0005Fs-Hm for bug-gnu-emacs@gnu.org; Mon, 06 Oct 2014 20:08:52 +0200 Original-Received: from uk.solarflare.com ([193.34.186.16]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 06 Oct 2014 20:08:52 +0200 Original-Received: from andrewjmoreton by uk.solarflare.com with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 06 Oct 2014 20:08:52 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 65 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: uk.solarflare.com User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.94 (windows-nt) Cancel-Lock: sha1:emEzRcUV9pGkNo5mrL1Isu9U1xw= X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:94213 Archived-At: On Mon 06 Oct 2014, Drew Adams wrote: >> frame-monitor-attributes, if I understand what you want. > > I see that that function returns some information about (attributes > of) the monitor that is most associated with the argument frame. And > I see that one of the attributes is `name'. Presumably, monitors > would be distinguished by this parameter. > > However, it is an optional parameter, so I can't imagine that one can > count on it to distinguish monitors. (Just why is it optional?) > If one cannot count on `name', how is the identity of monitors > determined? Do you just go by the particular cons of attributes > that is returned by `frame-monitor-attributes'? > > Also, FWIW, I don't see, in the doc, where the meanings of those > attributes are specified. The doc for `display-monitor-attributes' > supposedly does that, but it says nothing about what the "Position", > for `geometry' and `workarea', is relative to. And it says nothing > about what those attributes mean. > > I can guess the meaning for `geometry' here, being somewhat familiar > with X window `geometry' specs, but there should be some mention or > xref to the meaning/use of `geometry' outside Emacs, or else this > parameter is unspecified in terms of its meaning or effect. > > And I cannot guess at all for `workarea'. What is it? How does/can > it differ from `geometry'? Perhaps an example will help. here is the output for a Windows machine with two monitors (of different sizes), arranged side by side: (display-monitor-attributes-list) ;; ==> (((geometry 0 0 1920 1080) ;; Left hand monitor (workarea 0 0 1920 1050) ;; Bottom edge of screen not available task bar (mm-size 677 381) (name . "\\\\.\\DISPLAY1") (frames # #)) ((geometry 1920 0 1680 1050) ;; Right hand monitor (workarea 1920 0 1680 1050) ;; Whole screen can be used (mm-size 593 370) (name . "\\\\.\\DISPLAY2") (frames))) The X,Y origin is at top left of the display, which spans both monitors. The Windows task bar is displayed across the bottom of the left hand monitor, so that space is reserved for Windows and is not available for display of emacs frames. For an emacs frame on the right-hand monitor: (frame-monitor-attributes) ;; ==> ((geometry 1920 0 1680 1050) (workarea 1920 0 1680 1050) (mm-size 593 370) (name . "\\\\.\\DISPLAY2") (frames #)) Does that help ? AndyM