From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: YAMAMOTO Mitsuharu Newsgroups: gmane.emacs.bugs Subject: bug#14801: 24.3.50; Document monitor attributes (e.g., `workarea' and `mm-size') Date: Sat, 06 Jul 2013 08:29:23 +0900 Organization: Faculty of Science, Chiba University Message-ID: References: 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 1373067026 14989 80.91.229.3 (5 Jul 2013 23:30:26 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 5 Jul 2013 23:30:26 +0000 (UTC) Cc: 14801@debbugs.gnu.org To: Drew Adams Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Jul 06 01:30:26 2013 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 1UvFSL-0001q9-6W for geb-bug-gnu-emacs@m.gmane.org; Sat, 06 Jul 2013 01:30:25 +0200 Original-Received: from localhost ([::1]:54404 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UvFSK-00023b-FD for geb-bug-gnu-emacs@m.gmane.org; Fri, 05 Jul 2013 19:30:24 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:51160) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UvFSE-00022Z-Jw for bug-gnu-emacs@gnu.org; Fri, 05 Jul 2013 19:30:21 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UvFS9-0006zL-3E for bug-gnu-emacs@gnu.org; Fri, 05 Jul 2013 19:30:18 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:38722) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UvFS8-0006zH-Uz for bug-gnu-emacs@gnu.org; Fri, 05 Jul 2013 19:30:12 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1UvFS0-0004Qc-QW for bug-gnu-emacs@gnu.org; Fri, 05 Jul 2013 19:30:08 -0400 X-Loop: help-debbugs@gnu.org Resent-From: YAMAMOTO Mitsuharu Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 05 Jul 2013 23:30:04 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 14801 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 14801-submit@debbugs.gnu.org id=B14801.137306697216933 (code B ref 14801); Fri, 05 Jul 2013 23:30:04 +0000 Original-Received: (at 14801) by debbugs.gnu.org; 5 Jul 2013 23:29:32 +0000 Original-Received: from localhost ([127.0.0.1]:33038 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1UvFRT-0004P2-TC for submit@debbugs.gnu.org; Fri, 05 Jul 2013 19:29:32 -0400 Original-Received: from mathmail.math.s.chiba-u.ac.jp ([133.82.132.2]:63485) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1UvFRQ-0004Ok-EH for 14801@debbugs.gnu.org; Fri, 05 Jul 2013 19:29:30 -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 05343C055D; Sat, 6 Jul 2013 08:29:23 +0900 (JST) In-Reply-To: User-Agent: Wanderlust/2.14.0 (Africa) SEMI/1.14.6 (Maruoka) FLIM/1.14.8 (=?UTF-8?Q?Shij=C5=8D?=) APEL/10.6 Emacs/22.3 (sparc-sun-solaris2.8) MULE/5.0 (SAKAKI) 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:75968 Archived-At: >>>>> On Fri, 5 Jul 2013 13:30:53 -0700 (PDT), Drew Adams said: > Monitor attributes are partially documented in `C-h f > display-monitor-attributes-list'. They should also be (fully) > documented in the Elisp manual. Actually I was preparing for that. See the bottom of this mail. > Even in the doc string of d-m-a-l, the description is incomplete and > needs to be filled out. > Attribute `workareas' is described only in terms of "the workarea". > There is no explanation of what is meant by "workarea" (which should > presumably be two words, BTW). While I was creating the docstring, I actually looked for the definition of "workarea" in EWMH on which the implementation is based. Unfortunately, it only says as "work area". http://standards.freedesktop.org/wm-spec/1.3/ar01s03.html#id3075721 But I've just found the GDK documentation has some explanation: "The work area should be considered when positioning menus and similar popups, to avoid placing them below panels, docks or other desktop components." https://developer.gnome.org/gdk3/3.8/GdkScreen.html#gdk-screen-get-monitor-workarea If it is allowed to use "panels", "docks" or "desktop components" without their definitions, probably similar explanation of "work area" can be provided. > Attribute `mm-size' is described only as "the width and height in > millimeters". It's all very nice to say what the units are, but > what is it that is being measured? The width & height of what? If > it is the "work area" (whatever that might be) then say so > explicitly. Of the monitor. I thought it was obvious from the context. But I can add "of the physical monitor" for clarity. > Beyond all this, what on Earth IS a monitor "attribute"? Is it > supposed to be the same thing as a frame parameter? No. It is an alist describing some kinds of information about current configuration of each physical monitor. I named it after "file attributes". > The Elisp manual covers file attributes and face attributes. And it > mentions terminal attributes (in passing - there is no explanation > or description of them), but it is silent about monitor attributes. > The doc for this feature or collection of features (?) is hopelessly > incomplete and confused. One can only make wild guesses as to what > is meant and what this is all about. The current draft of the Elisp manual begins like this: @node Multiple Physical Monitors @section Multiple Physical Monitors @cindex multiple physical monitors On some ``multi-monitor'' setups, a single graphical display outputs to more than one physical monitor. You can get some kinds of information on each physical monitor to examine the current monitor configuration. Because the monitor configuration can be changed dynamically in general, you should avoid reusing the information obtained some time ago. Information on each physical monitor is represented as ``attributes'', an alist of attribute keys and values as follows: @table @code @item geometry ... YAMAMOTO Mitsuharu mituharu@math.s.chiba-u.ac.jp