From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Drew Adams Newsgroups: gmane.emacs.bugs Subject: bug#30074: 26.0; Add function(s) for current monitor info Date: Mon, 15 Jul 2019 08:21:00 -0700 (PDT) Message-ID: <0771514c-28eb-4ef7-9f17-eb465049df0c@default> References: <17da2391-a30c-4d5f-9ffd-1758b18c34f3@default> <87k1cky0e5.fsf@mouse.gnus.org> <87muhgtn0c.fsf@mail.linkov.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="98727"; mail-complaints-to="usenet@blaine.gmane.org" Cc: 30074@debbugs.gnu.org To: Lars Ingebrigtsen , Juri Linkov Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Jul 15 17:22:09 2019 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1hn2no-000PZY-DN for geb-bug-gnu-emacs@m.gmane.org; Mon, 15 Jul 2019 17:22:08 +0200 Original-Received: from localhost ([::1]:40066 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hn2nn-0004bx-BV for geb-bug-gnu-emacs@m.gmane.org; Mon, 15 Jul 2019 11:22:07 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:47072) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hn2nj-0004bd-PY for bug-gnu-emacs@gnu.org; Mon, 15 Jul 2019 11:22:04 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hn2ni-00012d-Nj for bug-gnu-emacs@gnu.org; Mon, 15 Jul 2019 11:22:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:39956) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hn2ni-00012X-JF for bug-gnu-emacs@gnu.org; Mon, 15 Jul 2019 11:22:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1hn2ni-0006Nr-8y for bug-gnu-emacs@gnu.org; Mon, 15 Jul 2019 11:22: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, 15 Jul 2019 15:22:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 30074 X-GNU-PR-Package: emacs Original-Received: via spool by 30074-submit@debbugs.gnu.org id=B30074.156320407224480 (code B ref 30074); Mon, 15 Jul 2019 15:22:02 +0000 Original-Received: (at 30074) by debbugs.gnu.org; 15 Jul 2019 15:21:12 +0000 Original-Received: from localhost ([127.0.0.1]:48777 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hn2mu-0006Ml-8q for submit@debbugs.gnu.org; Mon, 15 Jul 2019 11:21:12 -0400 Original-Received: from aserp2120.oracle.com ([141.146.126.78]:40302) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hn2ms-0006MX-2z for 30074@debbugs.gnu.org; Mon, 15 Jul 2019 11:21:10 -0400 Original-Received: from pps.filterd (aserp2120.oracle.com [127.0.0.1]) by aserp2120.oracle.com (8.16.0.27/8.16.0.27) with SMTP id x6FFKxWQ086992; Mon, 15 Jul 2019 15:21:04 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=mime-version : message-id : date : from : sender : to : cc : subject : references : in-reply-to : content-type : content-transfer-encoding; s=corp-2018-07-02; bh=9znYsNdeJnOYR3YrY9P3exMzi9oz1WJJ0kt8c8nGKCE=; b=i3RBmGTAvghJFlLkbCt/Nkl23qz8yBSPvV8sYMPCmffEs5LTwA3gsGsJxNNG2OQ07byK ulXyxlDtAMOONAkw7H8ALBF7WxC7hZFL9Lx0ZKEqMH7zvIsBPF2DEgCzrjU6fiD8GTxY 07wKqc2hC9oawclSnjahFwQooU7G6x2pEkFUAAwElieIaT1Rj/vqmeN41T3GyHvDtBTU vq0m7KslwNfLxs6BHbQ+EF3nZ/8CkI5MLCAsr2Ed/DxhK4NTGWCS5nnsE8h08mZjIUi4 XVmyjlcbkLQC48PE9A9xl4FRH5MsUVXAoJAlVcHP5nyaJHCXKiBSoHb/GDcBa1Df4Cx6 OQ== Original-Received: from userp3030.oracle.com (userp3030.oracle.com [156.151.31.80]) by aserp2120.oracle.com with ESMTP id 2tq78pf415-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Mon, 15 Jul 2019 15:21:04 +0000 Original-Received: from pps.filterd (userp3030.oracle.com [127.0.0.1]) by userp3030.oracle.com (8.16.0.27/8.16.0.27) with SMTP id x6FF7ajK164058; Mon, 15 Jul 2019 15:21:03 GMT Original-Received: from aserv0122.oracle.com (aserv0122.oracle.com [141.146.126.236]) by userp3030.oracle.com with ESMTP id 2tq4dtcjvb-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Mon, 15 Jul 2019 15:21:03 +0000 Original-Received: from abhmp0015.oracle.com (abhmp0015.oracle.com [141.146.116.21]) by aserv0122.oracle.com (8.14.4/8.14.4) with ESMTP id x6FFL1OV025166; Mon, 15 Jul 2019 15:21:01 GMT In-Reply-To: X-Priority: 3 X-Mailer: Oracle Beehive Extensions for Outlook 2.0.1.9.1 (1003210) [OL 16.0.4861.0 (x86)] X-Proofpoint-Virus-Version: vendor=nai engine=6000 definitions=9319 signatures=668688 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 suspectscore=0 malwarescore=0 phishscore=0 bulkscore=0 spamscore=0 mlxscore=0 mlxlogscore=999 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1810050000 definitions=main-1907150181 X-Proofpoint-Virus-Version: vendor=nai engine=6000 definitions=9319 signatures=668688 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 priorityscore=1501 malwarescore=0 suspectscore=0 phishscore=0 bulkscore=0 spamscore=0 clxscore=1015 lowpriorityscore=0 mlxscore=0 impostorscore=0 mlxlogscore=999 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1810050000 definitions=main-1907150181 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.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" Xref: news.gmane.org gmane.emacs.bugs:163130 Archived-At: > > There is already `frame-monitor-attributes'=20 > > (frame-monitor-attributes (selected-frame)) >=20 > So there is. Drew, does this function do what you want? Yes, that takes care of the `current-monitor' function, but not `current-monitor-size. Please consider this bug report to be a request for a function like that. --- The doc string of `frame-monitor-attributes' also answers Lars's question about dominating monitor: A frame is dominated by a physical monitor when either the largest area of the frame resides in the monitor, or the monitor is the closest to the frame if the frame does not intersect any physical monitors. That makes it clear that there is only one dominating monitor for a given frame. (It does so only indirectly, though, by saying "largest" and "the" "closest" monitor.) And the doc string of `display-monitor-attributes-list' repeats that same text and adds this, which makes it explicit: Every (non-tooltip) frame (including invisible ones) in a graphical display is dominated by exactly one physical monitor at a time, though it can span multiple (or no) physical monitors. And testing shows that that is the case.