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#18636: 24.4.50; doc of `display-monitor-attributes-list' - DISPLAY? FRAME? Date: Sun, 5 Oct 2014 12:05:19 -0700 (PDT) Message-ID: <2382b3a5-6047-4b89-b211-3fef04714ae4@default> 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 1412535995 7380 80.91.229.3 (5 Oct 2014 19:06:35 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 5 Oct 2014 19:06:35 +0000 (UTC) To: 18636@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Oct 05 21:06:27 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 1Xar8U-00050p-Th for geb-bug-gnu-emacs@m.gmane.org; Sun, 05 Oct 2014 21:06:27 +0200 Original-Received: from localhost ([::1]:48400 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xar8U-0003vK-GH for geb-bug-gnu-emacs@m.gmane.org; Sun, 05 Oct 2014 15:06:26 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:44101) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xar8H-0003tw-AA for bug-gnu-emacs@gnu.org; Sun, 05 Oct 2014 15:06:23 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Xar87-0002PD-0p for bug-gnu-emacs@gnu.org; Sun, 05 Oct 2014 15:06:13 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:43346) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xar86-0002P9-TV for bug-gnu-emacs@gnu.org; Sun, 05 Oct 2014 15:06:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1Xar86-0005EF-Km for bug-gnu-emacs@gnu.org; Sun, 05 Oct 2014 15:06: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: Sun, 05 Oct 2014 19:06:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 18636 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.141253595620085 (code B ref -1); Sun, 05 Oct 2014 19:06:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 5 Oct 2014 19:05:56 +0000 Original-Received: from localhost ([127.0.0.1]:34910 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Xar7z-0005Dt-G0 for submit@debbugs.gnu.org; Sun, 05 Oct 2014 15:05:55 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:42325) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Xar7w-0005Dj-VF for submit@debbugs.gnu.org; Sun, 05 Oct 2014 15:05:53 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Xar7m-0002M2-E3 for submit@debbugs.gnu.org; Sun, 05 Oct 2014 15:05:52 -0400 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:37436) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xar7m-0002Ly-Bn for submit@debbugs.gnu.org; Sun, 05 Oct 2014 15:05:42 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:44020) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xar7d-0003tN-K8 for bug-gnu-emacs@gnu.org; Sun, 05 Oct 2014 15:05:42 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Xar7U-0002DR-Ps for bug-gnu-emacs@gnu.org; Sun, 05 Oct 2014 15:05:33 -0400 Original-Received: from userp1040.oracle.com ([156.151.31.81]:45907) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xar7U-0002D5-EK for bug-gnu-emacs@gnu.org; Sun, 05 Oct 2014 15:05:24 -0400 Original-Received: from acsinet22.oracle.com (acsinet22.oracle.com [141.146.126.238]) by userp1040.oracle.com (Sentrion-MTA-4.3.2/Sentrion-MTA-4.3.2) with ESMTP id s95J5MwD008249 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Sun, 5 Oct 2014 19:05:23 GMT Original-Received: from userz7021.oracle.com (userz7021.oracle.com [156.151.31.85]) by acsinet22.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id s95J5LwF019447 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=FAIL) for ; Sun, 5 Oct 2014 19:05:22 GMT Original-Received: from abhmp0014.oracle.com (abhmp0014.oracle.com [141.146.116.20]) by userz7021.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id s95J5L8i025041 for ; Sun, 5 Oct 2014 19:05:21 GMT 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: acsinet22.oracle.com [141.146.126.238] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.4.x-2.6.x [generic] 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:94181 Archived-At: I find it unclear that the optional parameter of `display-monitor-attributes-list' is named DISPLAY, and is referred to as a display in the doc string, and yet in `frame-monitor-attributes' it is arg FRAME that is passed to `display-monitor-attributes-list'. Is the argument of `display-monitor-attributes-list' a display or a frame? What about other functions, such as `display-pixel-height', which call `display-monitor-attributes-list'? They seem to pass their DISPLAY arg to it. Is this arg too something that can be (or is always?) a frame? The doc string of `display-pixel-height' (for example) says: "If DISPLAY is omitted or nil, it defaults to the selected frame's display." That would seem to suggest that a frame is not a display, but rather it _has_ a display. And there is a frame parameter `display', whose value is "The display on which to open this frame. It should be a string of the form `"HOST:DPY.SCREEN"', just like the `DISPLAY' environment variable. This suggests that a display is not a frame. So how is it that `frame-monitor-attributes' passes a FRAME to `display-monitor-attributes-list', which supposedly expects a display instead? Please try to clear up some of this confusion in the doc and doc strings. In GNU Emacs 24.4.50.1 (i686-pc-mingw32) of 2014-09-15 on LEG570 Bzr revision: 117884 dancol@dancol.org-20140915050944-sqsajysnwef51f9m Windowing system distributor `Microsoft Corp.', version 6.1.7601 Configured using: `configure --enable-checking 'CFLAGS=3D-O0 -g3' CPPFLAGS=3D-DGLYPH_DEBUG= =3D1'