From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Drew Adams Newsgroups: gmane.emacs.bugs Subject: bug#18637: 24.4.50; doc of frame parameter DISPLAY vs actual value on MS Windows Date: Mon, 6 Oct 2014 10:25:31 -0700 (PDT) Message-ID: References: <> <<837g0dm95c.fsf@gnu.org>> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1412616394 30215 80.91.229.3 (6 Oct 2014 17:26:34 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 6 Oct 2014 17:26:34 +0000 (UTC) Cc: 18637@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Oct 06 19:26:26 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 1XbC3G-0007mk-Ak for geb-bug-gnu-emacs@m.gmane.org; Mon, 06 Oct 2014 19:26:26 +0200 Original-Received: from localhost ([::1]:53298 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XbC3F-0006mP-Hk for geb-bug-gnu-emacs@m.gmane.org; Mon, 06 Oct 2014 13:26:25 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:33930) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XbC31-0006Yk-Or for bug-gnu-emacs@gnu.org; Mon, 06 Oct 2014 13:26:20 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XbC2t-0004NV-1g for bug-gnu-emacs@gnu.org; Mon, 06 Oct 2014 13:26:11 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:44406) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XbC2s-0004NK-SY for bug-gnu-emacs@gnu.org; Mon, 06 Oct 2014 13:26:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1XbC2s-0000Q0-2h for bug-gnu-emacs@gnu.org; Mon, 06 Oct 2014 13:26:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Drew Adams Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 06 Oct 2014 17:26:02 +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: Original-Received: via spool by 18637-submit@debbugs.gnu.org id=B18637.14126163421570 (code B ref 18637); Mon, 06 Oct 2014 17:26:02 +0000 Original-Received: (at 18637) by debbugs.gnu.org; 6 Oct 2014 17:25:42 +0000 Original-Received: from localhost ([127.0.0.1]:35970 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XbC2W-0000PC-Mm for submit@debbugs.gnu.org; Mon, 06 Oct 2014 13:25:41 -0400 Original-Received: from aserp1040.oracle.com ([141.146.126.69]:23345) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XbC2S-0000Ox-EG for 18637@debbugs.gnu.org; Mon, 06 Oct 2014 13:25:37 -0400 Original-Received: from ucsinet21.oracle.com (ucsinet21.oracle.com [156.151.31.93]) by aserp1040.oracle.com (Sentrion-MTA-4.3.2/Sentrion-MTA-4.3.2) with ESMTP id s96HPXKZ009979 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Mon, 6 Oct 2014 17:25:34 GMT Original-Received: from aserz7022.oracle.com (aserz7022.oracle.com [141.146.126.231]) by ucsinet21.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id s96HPWZZ005007 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Mon, 6 Oct 2014 17:25:33 GMT Original-Received: from abhmp0003.oracle.com (abhmp0003.oracle.com [141.146.116.9]) by aserz7022.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id s96HPWgO013811; Mon, 6 Oct 2014 17:25:32 GMT In-Reply-To: <<837g0dm95c.fsf@gnu.org>> X-Priority: 3 X-Mailer: Oracle Beehive Extensions for Outlook 2.0.1.8.2 (807160) [OL 12.0.6691.5000 (x86)] X-Source-IP: ucsinet21.oracle.com [156.151.31.93] 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:94211 Archived-At: > > > In any case, "multiple monitors" and "multiple displays" are 2 > > > different issues. Each display can have multiple monitors. > > > > OK. Where can one find doc about using multiple monitors with > > Emacs? >=20 > There's nothing to document: they are treated as just one large > monitor. The only functions we have are in that node you mentioned. > > > > > I was not able to find out how to obtain info about which > > > > monitor is being used to show a particular frame > > > > > > The functions you mentioned provide that info, or maybe I don't > > > understand what info are you looking for.q > > > > Which function tells you what monitor is showing a given frame (on > > MS Windows)? >=20 > 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'? > > > > The symptom reported was that by modifying a frame's > > > > parameters to restore its previous values of `top', `left', > > > > `width' and `height', the frame got moved to another monitor, > > > > for some reason. > > > > > > Probably because the pixel coordinates mapped to that other > > > monitor, the URL above explains that, among other things. > > > > I appreciate your replies and your trying to help, but I don't > > quite understand you here. The URL you cite introduces a long > > chapter. >=20 > Read it and its sections. You will find the information you want > there. Skip whatever sounds not relevant or too low-level, and keep > reading. Read the MSDN documentation I pointed to, the answers are there. >=20 > If, after that, you still don't understand what could go wrong with > your code, come back and ask more specific questions with specific > code snippets. Right now, what you write and ask just shows how > much of the background you are missing to start reasoning about this. >=20 > The issues are not complicated once you understand how Windows > treats multiple monitors. OK.