From unknown Sat Jun 21 03:13:58 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#34516 <34516@debbugs.gnu.org> To: bug#34516 <34516@debbugs.gnu.org> Subject: Status: Multi-monitor frame sets Reply-To: bug#34516 <34516@debbugs.gnu.org> Date: Sat, 21 Jun 2025 10:13:58 +0000 retitle 34516 Multi-monitor frame sets reassign 34516 emacs submitter 34516 Juri Linkov severity 34516 normal thanks From debbugs-submit-bounces@debbugs.gnu.org Sun Feb 17 16:09:05 2019 Received: (at submit) by debbugs.gnu.org; 17 Feb 2019 21:09:05 +0000 Received: from localhost ([127.0.0.1]:51784 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gvTgP-0001Io-4P for submit@debbugs.gnu.org; Sun, 17 Feb 2019 16:09:05 -0500 Received: from eggs.gnu.org ([209.51.188.92]:40234) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gvTgI-0001Hm-C2 for submit@debbugs.gnu.org; Sun, 17 Feb 2019 16:08:58 -0500 Received: from lists.gnu.org ([209.51.188.17]:50478) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1gvTg8-0001UZ-0s for submit@debbugs.gnu.org; Sun, 17 Feb 2019 16:08:49 -0500 Received: from eggs.gnu.org ([209.51.188.92]:54612) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gvTg7-0000ri-4j for bug-gnu-emacs@gnu.org; Sun, 17 Feb 2019 16:08:47 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50,RCVD_IN_DNSWL_NONE, URIBL_BLOCKED autolearn=disabled version=3.3.2 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gvTg1-0001TG-Ik for bug-gnu-emacs@gnu.org; Sun, 17 Feb 2019 16:08:44 -0500 Received: from bisque.maple.relay.mailchannels.net ([23.83.214.18]:8124) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1gvTfz-0001SW-2L for bug-gnu-emacs@gnu.org; Sun, 17 Feb 2019 16:08:41 -0500 X-Sender-Id: dreamhost|x-authsender|jurta@jurta.org Received: from relay.mailchannels.net (localhost [127.0.0.1]) by relay.mailchannels.net (Postfix) with ESMTP id 1F3185E33E1 for ; Sun, 17 Feb 2019 21:08:37 +0000 (UTC) Received: from pdx1-sub0-mail-a11.g.dreamhost.com (unknown [100.96.30.62]) (Authenticated sender: dreamhost) by relay.mailchannels.net (Postfix) with ESMTPA id C58495E3C23 for ; Sun, 17 Feb 2019 21:08:36 +0000 (UTC) X-Sender-Id: dreamhost|x-authsender|jurta@jurta.org Received: from pdx1-sub0-mail-a11.g.dreamhost.com (pop.dreamhost.com [64.90.62.162]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384) by 0.0.0.0:2500 (trex/5.16.2); Sun, 17 Feb 2019 21:08:37 +0000 X-MC-Relay: Neutral X-MailChannels-SenderId: dreamhost|x-authsender|jurta@jurta.org X-MailChannels-Auth-Id: dreamhost X-Fumbling-Macabre: 54a228ca440e1886_1550437716967_3545312964 X-MC-Loop-Signature: 1550437716967:3790590063 X-MC-Ingress-Time: 1550437716967 Received: from pdx1-sub0-mail-a11.g.dreamhost.com (localhost [127.0.0.1]) by pdx1-sub0-mail-a11.g.dreamhost.com (Postfix) with ESMTP id 763338211D for ; Sun, 17 Feb 2019 13:08:36 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=linkov.net; h=from:to :subject:date:message-id:mime-version:content-type; s= linkov.net; bh=NgoLvsgiZxUftgea+/24nAultFE=; b=VmPON2uS77w7J7qc4 zyo8uC6HFS7WuKeuwdd9ExMSXRznpVsQAF0j6A2lmwH0soKhxg256FkHVtknDRag wwYUPN/NsazuPsXOwyUchlSl61m1FyfIPO5+jaB5x/M6P3t/ILmScbpiVW8ZwZ5d lvHqRocNsdxIOjKHtC+I1OVDvA= Received: from mail.jurta.org (m91-129-107-100.cust.tele2.ee [91.129.107.100]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: jurta@jurta.org) by pdx1-sub0-mail-a11.g.dreamhost.com (Postfix) with ESMTPSA id C5BB08211A for ; Sun, 17 Feb 2019 13:08:34 -0800 (PST) X-DH-BACKEND: pdx1-sub0-mail-a11 From: Juri Linkov To: bug-gnu-emacs@gnu.org Subject: Multi-monitor frame sets Organization: LINKOV.NET Date: Sun, 17 Feb 2019 21:34:19 +0200 Message-ID: <87bm3a74s4.fsf@mail.linkov.net> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-VR-OUT-STATUS: OK X-VR-OUT-SCORE: 0 X-VR-OUT-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrgedtledrudduuddgudegiecutefuodetggdotefrodftvfcurfhrohhfihhlvgemucggtfgfnhhsuhgsshgtrhhisggvpdfftffgtefojffquffvnecuuegrihhlohhuthemuceftddtnecunecujfgurhephffvufhofffkfgggtgesmhdtreertdertdenucfhrhhomheplfhurhhiucfnihhnkhhovhcuoehjuhhriheslhhinhhkohhvrdhnvghtqeenucfkphepledurdduvdelrddutdejrddutddtnecurfgrrhgrmhepmhhouggvpehsmhhtphdphhgvlhhopehmrghilhdrjhhurhhtrgdrohhrghdpihhnvghtpeeluddruddvledruddtjedruddttddprhgvthhurhhnqdhprghthheplfhurhhiucfnihhnkhhovhcuoehjuhhriheslhhinhhkohhvrdhnvghtqedpmhgrihhlfhhrohhmpehjuhhriheslhhinhhkohhvrdhnvghtpdhnrhgtphhtthhopegsuhhgqdhgnhhuqdgvmhgrtghssehgnhhurdhorhhgnecuvehluhhsthgvrhfuihiivgeptd X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 23.83.214.18 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Spam-Score: 0.9 (/) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.1 (/) --=-=-= Content-Type: text/plain Shouldn't frame.el provide a command like make-frame-on-display, but to make a frame on the specified monitor instead of display? Isn't the following patch the right way to do this? (It also adds completion for the existing command): --=-=-= Content-Type: text/x-diff Content-Disposition: inline; filename=make-frame-on-monitor.patch diff --git a/lisp/frame.el b/lisp/frame.el index dc81302939..38f2653905 100644 --- a/lisp/frame.el +++ b/lisp/frame.el @@ -644,9 +644,33 @@ window-system-for-display (defun make-frame-on-display (display &optional parameters) "Make a frame on display DISPLAY. The optional argument PARAMETERS specifies additional frame parameters." - (interactive "sMake frame on display: ") + (interactive (list (completing-read + (format "Make frame on display: ") + (delete-dups + (mapcar (lambda (frame) + (frame-parameter frame 'display)) + (frame-list)))))) (make-frame (cons (cons 'display display) parameters))) +(defun make-frame-on-monitor (monitor &optional parameters) + "Make a frame on monitor MONITOR. +The optional argument PARAMETERS specifies additional frame parameters." + (interactive (list (completing-read + (format "Make frame on monitor: ") + (mapcar (lambda (a) + (cdr (assq 'name a))) + (display-monitor-attributes-list))))) + (let ((geometry (car (delq nil (mapcar (lambda (a) + (when (equal (cdr (assq 'name a)) monitor) + (cdr (assq 'geometry a)))) + (display-monitor-attributes-list)))))) + (make-frame (append (x-parse-geometry (format "%dx%d+%d+%d" + (nth 2 geometry) + (nth 3 geometry) + (nth 0 geometry) + (nth 1 geometry))) + parameters)))) + (declare-function x-close-connection "xfns.c" (terminal)) (defun close-display-connection (display) --=-=-=-- From debbugs-submit-bounces@debbugs.gnu.org Mon Feb 18 05:47:19 2019 Received: (at 34516) by debbugs.gnu.org; 18 Feb 2019 10:47:19 +0000 Received: from localhost ([127.0.0.1]:52128 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gvgSF-0004P6-4H for submit@debbugs.gnu.org; Mon, 18 Feb 2019 05:47:19 -0500 Received: from mail-wr1-f54.google.com ([209.85.221.54]:38391) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gvgSD-0004Ot-3Y for 34516@debbugs.gnu.org; Mon, 18 Feb 2019 05:47:17 -0500 Received: by mail-wr1-f54.google.com with SMTP id v13so17779397wrw.5 for <34516@debbugs.gnu.org>; Mon, 18 Feb 2019 02:47:16 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:references:mail-copies-to:gmane-reply-to-list :date:in-reply-to:message-id:mime-version:content-transfer-encoding; bh=076HhRCA/3mMXLFJYQXDlhN1vSnWfU4aYtDESkd+S3o=; b=QL0QfNCtJ4Ae4XAFf1ntnVwtJVGLPm+wb/+Gj1Swsm90RyTuKtVYs3EvhwuwGU2bfS 9XikPX2TvYDNHaNSRwjC++qd7bFWueXhPMISuQNM0ZTr6i1dcMUSHegOSE1VxVBuzlKV Omw+8RqMwki/glGsNdjXVoJH+UTUCqUeisMIcMbhD4r1uVOeLeY2xehWU8IwoaxAYQ8e AwboA155udyTZoT2uRG4dS9mngloum0GFFSujD2i+2LmwgMXe8zlhAk7ydS27RNjOUUv +rLfNwFBKQuNC6dK+sd5oEaiy4O5IUznKKkB8YZ5XPbrDs7+ZFuv91SVP+ud/xOZFMB1 Wmvw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references:mail-copies-to :gmane-reply-to-list:date:in-reply-to:message-id:mime-version :content-transfer-encoding; bh=076HhRCA/3mMXLFJYQXDlhN1vSnWfU4aYtDESkd+S3o=; b=fQTG6YFqMcjV2+TdbgLyopPyByRox4YCB11RiFlCZIXKSUx34p7oAyM02YMRD1h30y AqkFcPIRwBHtydpfYn94ufOqiKlqNKvTSQK+/eOQoQ2+LoNhZNCAzohlA0UZ1aKDJOix CkHKYfmfhQNLNghqsn/ExKzVymeAJw/VxlRPHAkHKPkjvL790Fa/C4thc24uHlg9/xkR 4bk8uz1NvlqoQD4Lub6eJAZTWtjZ0tpuZlxG7+upkz/ZKTUfQMxXT1It3t17pP6NAiZQ ct4R9P4fwI15LIDmRVO1Ij6Iv8enyNC6aoePlbg7xOOyvq5RNF28VhnWxgQvhjjL4JwH TCzA== X-Gm-Message-State: AHQUAuZO8c6bVdIFx1/3YbsQW8R7vy5hcbhe5oH95FBDfWQQqGZ3xvgy EoREF+lgPSkjkOmT1UMHtVJdWNDE X-Google-Smtp-Source: AHgI3IZx8vbrsOC/FPmweeHCIh9JN1epZ4Qya6hEPwcaZZmykiGVzdr9WQ25R1eYkSOcd9JAce0EHQ== X-Received: by 2002:adf:f343:: with SMTP id e3mr15005596wrp.205.1550486830736; Mon, 18 Feb 2019 02:47:10 -0800 (PST) Received: from rpluim-mac ([149.5.228.1]) by smtp.gmail.com with ESMTPSA id y20sm24854283wra.51.2019.02.18.02.47.09 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Mon, 18 Feb 2019 02:47:09 -0800 (PST) From: Robert Pluim To: Juri Linkov Subject: Re: bug#34516: Multi-monitor frame sets References: <87bm3a74s4.fsf@mail.linkov.net> X-Debbugs-No-Ack: yes Mail-Copies-To: never Gmane-Reply-To-List: yes Date: Mon, 18 Feb 2019 11:47:08 +0100 In-Reply-To: <87bm3a74s4.fsf@mail.linkov.net> (Juri Linkov's message of "Sun, 17 Feb 2019 21:34:19 +0200") Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 34516 Cc: 34516@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Juri Linkov writes: > Shouldn't frame.el provide a command like make-frame-on-display, > but to make a frame on the specified monitor instead of display? > > Isn't the following patch the right way to do this? > (It also adds completion for the existing command): > I don=CA=BCt mind it, but it won't work on macOS, since there=CA=BCs no 'na= me entries in 'display-monitor-attributes-list' (and adding them looks non-trivial, unless we go for 'Monitor-1', Monitor-2' etc.) Robert From debbugs-submit-bounces@debbugs.gnu.org Mon Feb 18 11:49:05 2019 Received: (at 34516) by debbugs.gnu.org; 18 Feb 2019 16:49:05 +0000 Received: from localhost ([127.0.0.1]:53135 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gvm6L-0007KD-98 for submit@debbugs.gnu.org; Mon, 18 Feb 2019 11:49:05 -0500 Received: from eggs.gnu.org ([209.51.188.92]:55861) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gvm6H-0007Jj-Ul for 34516@debbugs.gnu.org; Mon, 18 Feb 2019 11:49:04 -0500 Received: from fencepost.gnu.org ([2001:470:142:3::e]:46783) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gvm6C-0003pc-Aq; Mon, 18 Feb 2019 11:48:56 -0500 Received: from [176.228.60.248] (port=1105 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1gvm6B-0002am-A6; Mon, 18 Feb 2019 11:48:55 -0500 Date: Mon, 18 Feb 2019 18:48:59 +0200 Message-Id: <83pnrpjb44.fsf@gnu.org> From: Eli Zaretskii To: Juri Linkov In-reply-to: <87bm3a74s4.fsf@mail.linkov.net> (message from Juri Linkov on Sun, 17 Feb 2019 21:34:19 +0200) Subject: Re: bug#34516: Multi-monitor frame sets References: <87bm3a74s4.fsf@mail.linkov.net> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 34516 Cc: 34516@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) > From: Juri Linkov > Date: Sun, 17 Feb 2019 21:34:19 +0200 > > Shouldn't frame.el provide a command like make-frame-on-display, > but to make a frame on the specified monitor instead of display? > > Isn't the following patch the right way to do this? > (It also adds completion for the existing command): What kind of list does display-monitor-attributes-list return on your system, and how can you tell which part there refers to what physical monitor? From debbugs-submit-bounces@debbugs.gnu.org Mon Feb 18 16:23:06 2019 Received: (at 34516) by debbugs.gnu.org; 18 Feb 2019 21:23:06 +0000 Received: from localhost ([127.0.0.1]:53289 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gvqNT-0007hw-Qb for submit@debbugs.gnu.org; Mon, 18 Feb 2019 16:23:06 -0500 Received: from cichlid.maple.relay.mailchannels.net ([23.83.214.36]:47687) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gvqNQ-0007hC-DO for 34516@debbugs.gnu.org; Mon, 18 Feb 2019 16:23:01 -0500 X-Sender-Id: dreamhost|x-authsender|jurta@jurta.org Received: from relay.mailchannels.net (localhost [127.0.0.1]) by relay.mailchannels.net (Postfix) with ESMTP id 75EA75C42D0 for <34516@debbugs.gnu.org>; Mon, 18 Feb 2019 21:22:58 +0000 (UTC) Received: from pdx1-sub0-mail-a49.g.dreamhost.com (unknown [100.96.36.160]) (Authenticated sender: dreamhost) by relay.mailchannels.net (Postfix) with ESMTPA id 3138F5C41E7 for <34516@debbugs.gnu.org>; Mon, 18 Feb 2019 21:22:58 +0000 (UTC) X-Sender-Id: dreamhost|x-authsender|jurta@jurta.org Received: from pdx1-sub0-mail-a49.g.dreamhost.com (pop.dreamhost.com [64.90.62.162]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384) by 0.0.0.0:2500 (trex/5.16.2); Mon, 18 Feb 2019 21:22:58 +0000 X-MC-Relay: Neutral X-MailChannels-SenderId: dreamhost|x-authsender|jurta@jurta.org X-MailChannels-Auth-Id: dreamhost X-Whistle-Bottle: 11f8b1e85680e81d_1550524978295_2781589774 X-MC-Loop-Signature: 1550524978294:1048277949 X-MC-Ingress-Time: 1550524978294 Received: from pdx1-sub0-mail-a49.g.dreamhost.com (localhost [127.0.0.1]) by pdx1-sub0-mail-a49.g.dreamhost.com (Postfix) with ESMTP id D429E7F1E4 for <34516@debbugs.gnu.org>; Mon, 18 Feb 2019 13:22:57 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=linkov.net; h=from:to :subject:references:date:in-reply-to:message-id:mime-version :content-type:content-transfer-encoding; s=linkov.net; bh=CNymbc DxWG/jWUcW7JEMnPYudx4=; b=AGMsA6I0ZoDQs4cBZXhlemEU37wF8rEvVMh0JH ZFYWvafThUVJbEpViaQYIuOlVRUclDJZO9/hl5P3RCPvxkPe4F2Hr1mZbiv1Tr6Y NOfavzCbXCLRutt1Sj7aigvyqkYZdgDFvZrnSGUCMNoZ6anfvZys5HbsCTgymYAO FdsDg= Received: from mail.jurta.org (m91-129-96-50.cust.tele2.ee [91.129.96.50]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: jurta@jurta.org) by pdx1-sub0-mail-a49.g.dreamhost.com (Postfix) with ESMTPSA id 8F0A47F1E8 for <34516@debbugs.gnu.org>; Mon, 18 Feb 2019 13:22:55 -0800 (PST) X-DH-BACKEND: pdx1-sub0-mail-a49 From: Juri Linkov To: 34516@debbugs.gnu.org Subject: Re: bug#34516: Multi-monitor frame sets Organization: LINKOV.NET References: <87bm3a74s4.fsf@mail.linkov.net> Date: Mon, 18 Feb 2019 23:03:02 +0200 In-Reply-To: (Robert Pluim's message of "Mon, 18 Feb 2019 11:47:08 +0100") Message-ID: <87zhqsx115.fsf@mail.linkov.net> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 X-VR-OUT-STATUS: OK X-VR-OUT-SCORE: 0 X-VR-OUT-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrgedutddrtddugdduudejucetufdoteggodetrfdotffvucfrrhhofhhilhgvmecuggftfghnshhusghstghrihgsvgdpffftgfetoffjqffuvfenuceurghilhhouhhtmecufedttdenucenucfjughrpefhvffuohhfffgjkfgfgggtgfesthekredttderjeenucfhrhhomheplfhurhhiucfnihhnkhhovhcuoehjuhhriheslhhinhhkohhvrdhnvghtqeenucfkphepledurdduvdelrdeliedrhedtnecurfgrrhgrmhepmhhouggvpehsmhhtphdphhgvlhhopehmrghilhdrjhhurhhtrgdrohhrghdpihhnvghtpeeluddruddvledrleeirdehtddprhgvthhurhhnqdhprghthheplfhurhhiucfnihhnkhhovhcuoehjuhhriheslhhinhhkohhvrdhnvghtqedpmhgrihhlfhhrohhmpehjuhhriheslhhinhhkohhvrdhnvghtpdhnrhgtphhtthhopeefgeehudeiseguvggssghughhsrdhgnhhurdhorhhgnecuvehluhhsthgvrhfuihiivgeptd Content-Transfer-Encoding: quoted-printable X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 34516 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) > Juri Linkov writes: > >> Shouldn't frame.el provide a command like make-frame-on-display, >> but to make a frame on the specified monitor instead of display? >> >> Isn't the following patch the right way to do this? >> (It also adds completion for the existing command): >> > > I don=CA=BCt mind it, but it won't work on macOS, since there=CA=BCs no= 'name > entries in 'display-monitor-attributes-list' (and adding them looks > non-trivial, unless we go for 'Monitor-1', Monitor-2' etc.) Are there other NS-specific attributes that could provide a clear reference to a specific monitor? Maybe =E2=80=98geometry=E2=80=99 could be used to deduce a relative arrangement of monitors? From debbugs-submit-bounces@debbugs.gnu.org Mon Feb 18 16:23:09 2019 Received: (at 34516) by debbugs.gnu.org; 18 Feb 2019 21:23:09 +0000 Received: from localhost ([127.0.0.1]:53292 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gvqNY-0007iM-Tu for submit@debbugs.gnu.org; Mon, 18 Feb 2019 16:23:09 -0500 Received: from bisque.maple.relay.mailchannels.net ([23.83.214.18]:7277) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gvqNW-0007i2-Gz for 34516@debbugs.gnu.org; Mon, 18 Feb 2019 16:23:07 -0500 X-Sender-Id: dreamhost|x-authsender|jurta@jurta.org Received: from relay.mailchannels.net (localhost [127.0.0.1]) by relay.mailchannels.net (Postfix) with ESMTP id 4D9B55C2DBE; Mon, 18 Feb 2019 21:23:05 +0000 (UTC) Received: from pdx1-sub0-mail-a49.g.dreamhost.com (unknown [100.96.35.77]) (Authenticated sender: dreamhost) by relay.mailchannels.net (Postfix) with ESMTPA id DC44F5C5200; Mon, 18 Feb 2019 21:23:04 +0000 (UTC) X-Sender-Id: dreamhost|x-authsender|jurta@jurta.org Received: from pdx1-sub0-mail-a49.g.dreamhost.com (pop.dreamhost.com [64.90.62.162]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384) by 0.0.0.0:2500 (trex/5.16.2); Mon, 18 Feb 2019 21:23:05 +0000 X-MC-Relay: Neutral X-MailChannels-SenderId: dreamhost|x-authsender|jurta@jurta.org X-MailChannels-Auth-Id: dreamhost X-Whistle-Trail: 2756e1166ffab995_1550524985044_2852918579 X-MC-Loop-Signature: 1550524985043:2165522516 X-MC-Ingress-Time: 1550524985042 Received: from pdx1-sub0-mail-a49.g.dreamhost.com (localhost [127.0.0.1]) by pdx1-sub0-mail-a49.g.dreamhost.com (Postfix) with ESMTP id 745F17F1DE; Mon, 18 Feb 2019 13:23:04 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=linkov.net; h=from:to:cc :subject:references:date:in-reply-to:message-id:mime-version :content-type:content-transfer-encoding; s=linkov.net; bh=fVk+we TiMowvqALm+3QHgfUtons=; b=eFgMS1y8G+x/cza8dRCdxiMr+mFamk2PBG1Mwz YSpve+jUllr6Udv3awHlKF5fDDmjTYR+Drc5EHpus6xH7I0P9/O4TY3qTZlkMj2q 969qi8F4LAK6/1gnPsC31gGiGlJFHft99KU1J0V/3PeWI00s1ylrXt8h5Y+jfKTi T59Is= Received: from mail.jurta.org (m91-129-96-50.cust.tele2.ee [91.129.96.50]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: jurta@jurta.org) by pdx1-sub0-mail-a49.g.dreamhost.com (Postfix) with ESMTPSA id C11A17F1E8; Mon, 18 Feb 2019 13:23:02 -0800 (PST) X-DH-BACKEND: pdx1-sub0-mail-a49 From: Juri Linkov To: Eli Zaretskii Subject: Re: bug#34516: Multi-monitor frame sets Organization: LINKOV.NET References: <87bm3a74s4.fsf@mail.linkov.net> <83pnrpjb44.fsf@gnu.org> Date: Mon, 18 Feb 2019 23:16:01 +0200 In-Reply-To: <83pnrpjb44.fsf@gnu.org> (Eli Zaretskii's message of "Mon, 18 Feb 2019 18:48:59 +0200") Message-ID: <8736okvlv2.fsf@mail.linkov.net> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 X-VR-OUT-STATUS: OK X-VR-OUT-SCORE: -100 X-VR-OUT-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrgedutddrtddugdduudejucetufdoteggodetrfdotffvucfrrhhofhhilhgvmecuggftfghnshhusghstghrihgsvgdpffftgfetoffjqffuvfenuceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmnecujfgurhephffvufhofhffjgfkfgggtgfgsehtkeertddtreejnecuhfhrohhmpefluhhrihcunfhinhhkohhvuceojhhurhhisehlihhnkhhovhdrnhgvtheqnecukfhppeeluddruddvledrleeirdehtdenucfrrghrrghmpehmohguvgepshhmthhppdhhvghlohepmhgrihhlrdhjuhhrthgrrdhorhhgpdhinhgvthepledurdduvdelrdeliedrhedtpdhrvghtuhhrnhdqphgrthhhpefluhhrihcunfhinhhkohhvuceojhhurhhisehlihhnkhhovhdrnhgvtheqpdhmrghilhhfrhhomhepjhhurhhisehlihhnkhhovhdrnhgvthdpnhhrtghpthhtohepvghlihiisehgnhhurdhorhhgnecuvehluhhsthgvrhfuihiivgepud Content-Transfer-Encoding: quoted-printable X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 34516 Cc: 34516@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) >> Shouldn't frame.el provide a command like make-frame-on-display, >> but to make a frame on the specified monitor instead of display? >>=20 >> Isn't the following patch the right way to do this? >> (It also adds completion for the existing command): > > What kind of list does display-monitor-attributes-list return on your > system, and how can you tell which part there refers to what physical > monitor? It returns a list with such meaningless monitor names as =E2=80=9CLVDS=E2= =80=9D, =E2=80=9CeDP-1=E2=80=9D, =E2=80=9CDP-2-2=E2=80=9D, etc. that don't help to refer to a physical monitor. However, I noticed = that the only attribute that could help is =E2=80=98geometry=E2=80=99 in the f= orm of (X Y WIDTH HEIGHT), e.g. when two adjacent monitors have such geometry attributes: (geometry 0 0 1920 1080) (geometry 1920 16 2560 1440) the right edge of the first monitor ends (1920px) is where the left edge of the second monitor begins. Based on this guess I tried to deduce a relative placement of new frames, but maybe I'm wrong. From debbugs-submit-bounces@debbugs.gnu.org Mon Feb 18 22:32:17 2019 Received: (at 34516) by debbugs.gnu.org; 19 Feb 2019 03:32:17 +0000 Received: from localhost ([127.0.0.1]:53524 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gvw8m-0006He-TW for submit@debbugs.gnu.org; Mon, 18 Feb 2019 22:32:17 -0500 Received: from eggs.gnu.org ([209.51.188.92]:40524) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gvw8k-0006HJ-Vb for 34516@debbugs.gnu.org; Mon, 18 Feb 2019 22:32:15 -0500 Received: from fencepost.gnu.org ([2001:470:142:3::e]:33165) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gvw8f-0004we-Jk; Mon, 18 Feb 2019 22:32:09 -0500 Received: from [176.228.60.248] (port=1353 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1gvw8f-00018q-7h; Mon, 18 Feb 2019 22:32:09 -0500 Date: Tue, 19 Feb 2019 05:32:17 +0200 Message-Id: <837edwjvwe.fsf@gnu.org> From: Eli Zaretskii To: Juri Linkov In-reply-to: <8736okvlv2.fsf@mail.linkov.net> (message from Juri Linkov on Mon, 18 Feb 2019 23:16:01 +0200) Subject: Re: bug#34516: Multi-monitor frame sets References: <87bm3a74s4.fsf@mail.linkov.net> <83pnrpjb44.fsf@gnu.org> <8736okvlv2.fsf@mail.linkov.net> MIME-version: 1.0 Content-type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 34516 Cc: 34516@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) > From: Juri Linkov > Cc: 34516@debbugs.gnu.org > Date: Mon, 18 Feb 2019 23:16:01 +0200 > > > What kind of list does display-monitor-attributes-list return on your > > system, and how can you tell which part there refers to what physical > > monitor? > > It returns a list with such meaningless monitor names as “LVDS”, “eDP-1”, “DP-2-2”, > etc. that don't help to refer to a physical monitor. However, I noticed that > the only attribute that could help is ‘geometry’ in the form of (X Y WIDTH HEIGHT), > e.g. when two adjacent monitors have such geometry attributes: > > (geometry 0 0 1920 1080) > (geometry 1920 16 2560 1440) > > the right edge of the first monitor ends (1920px) is where the left edge > of the second monitor begins. Based on this guess I tried to deduce > a relative placement of new frames, but maybe I'm wrong. Does the proposed function sound useful, given these issues? From debbugs-submit-bounces@debbugs.gnu.org Tue Feb 19 04:17:36 2019 Received: (at 34516) by debbugs.gnu.org; 19 Feb 2019 09:17:36 +0000 Received: from localhost ([127.0.0.1]:53882 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gw1Wx-0005m4-OL for submit@debbugs.gnu.org; Tue, 19 Feb 2019 04:17:36 -0500 Received: from mail-wm1-f52.google.com ([209.85.128.52]:32900) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gw1Wv-0005fx-JQ for 34516@debbugs.gnu.org; Tue, 19 Feb 2019 04:17:34 -0500 Received: by mail-wm1-f52.google.com with SMTP id h22so1687569wmb.0 for <34516@debbugs.gnu.org>; Tue, 19 Feb 2019 01:17:33 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:references:mail-copies-to:gmane-reply-to-list :date:in-reply-to:message-id:mime-version:content-transfer-encoding; bh=MyA6XOwlWDWxOxumvCKItzSHV//6ywWn78JGszY/aSA=; b=qrP6c8l6KZTn6ww+WO35XTMHxfbJv7jQ+/3PAH3bIkEvcfnQWsoF4A42vQWLMmVHxm LNbKUYrevlmBDAhsq2t6k/0AJmN0j0QCfIj8wUc1YfJ+9+EdfpH776ST0C1v5fkLNQn3 iOHx012WtH6Jj0OngDvGQqVhZcN3+/sX7/eUKlkqL7A9NlEtQM4IGQSNV1ahIIRFW+oR vsXG6HuAKgYIzpus6vY8Jn8DdoIRQyWIZbNJ8X0EY+03TQax1Xl0IhF9Qw4rjL5rymvZ OS4aYPboAIot+FvEoL7y1LLJLkB2eefC7Sl4aI/XmJXgMsqWekDNRrr8Gx/mYSjTGRY4 GI5A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references:mail-copies-to :gmane-reply-to-list:date:in-reply-to:message-id:mime-version :content-transfer-encoding; bh=MyA6XOwlWDWxOxumvCKItzSHV//6ywWn78JGszY/aSA=; b=ePfs36gd4ZvGl+DPIJ0fVYDErOC1pa7afjVXmvLq+06UUC2umJqngvhAFIwj7mhZ2o XLohnyzzW8ETCBPQPgEs8WqiHuU/IP7PiTGYlcpGj8oG8/28xvJhAkPLrfBrE3/eX0Zd JCcAk8azl/X6ZwD5LT9nDQClyD1aCR8G29BEilnW0RsMOovHTrlmySnIeTLf4GonaRXp Myp9Mm9sOKaJmLxHQAfZpDtpTGNOyE2ncHl3zz4MyfvZ8DS+gcf3Brt33TZnrxJ24c0Q YpM7pLQpTCDbizhwbkQQxcTn41vjIf8sdzGMprjXxFkWOAQnAyra/Rqrn2HBma09oLNS 4oVg== X-Gm-Message-State: AHQUAua6lML4u8sug9TcpUQ7D+tTw5fViEfeSts0ZxFbu+XC3mgrKBAh QcILYtJmO8LQGISAi7mrNH3A6Njy X-Google-Smtp-Source: AHgI3IbX/iD4fosizj4yPlLguIm1PvJDGVrVeSNfOSyObbWDgB+9/nFMk3rPMjtxpW3c9nBHw97/+A== X-Received: by 2002:a1c:eb0a:: with SMTP id j10mr2064355wmh.115.1550567846459; Tue, 19 Feb 2019 01:17:26 -0800 (PST) Received: from rpluim-mac ([149.5.228.1]) by smtp.gmail.com with ESMTPSA id y5sm1974840wmg.31.2019.02.19.01.17.20 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Tue, 19 Feb 2019 01:17:21 -0800 (PST) From: Robert Pluim To: Juri Linkov Subject: Re: bug#34516: Multi-monitor frame sets References: <87bm3a74s4.fsf@mail.linkov.net> <87zhqsx115.fsf@mail.linkov.net> X-Debbugs-No-Ack: yes Mail-Copies-To: never Gmane-Reply-To-List: yes Date: Tue, 19 Feb 2019 10:17:20 +0100 In-Reply-To: <87zhqsx115.fsf@mail.linkov.net> (Juri Linkov's message of "Mon, 18 Feb 2019 23:03:02 +0200") Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 34516 Cc: 34516@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Juri Linkov writes: >> Juri Linkov writes: >> >>> Shouldn't frame.el provide a command like make-frame-on-display, >>> but to make a frame on the specified monitor instead of display? >>> >>> Isn't the following patch the right way to do this? >>> (It also adds completion for the existing command): >>> >> >> I don=CA=BCt mind it, but it won't work on macOS, since there=CA=BCs no = 'name >> entries in 'display-monitor-attributes-list' (and adding them looks >> non-trivial, unless we go for 'Monitor-1', Monitor-2' etc.) > > Are there other NS-specific attributes that could provide > a clear reference to a specific monitor? Maybe =E2=80=98geometry=E2=80=99 > could be used to deduce a relative arrangement of monitors? I guess it could. Or we could fake up a monitor name on those systems where ns_screen_name doesn=CA=BCt work. Robert From debbugs-submit-bounces@debbugs.gnu.org Tue Feb 19 05:41:04 2019 Received: (at submit) by debbugs.gnu.org; 19 Feb 2019 10:41:04 +0000 Received: from localhost ([127.0.0.1]:53939 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gw2pk-0007jF-Fs for submit@debbugs.gnu.org; Tue, 19 Feb 2019 05:41:04 -0500 Received: from eggs.gnu.org ([209.51.188.92]:37527) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gw2pi-0007if-1U for submit@debbugs.gnu.org; Tue, 19 Feb 2019 05:41:03 -0500 Received: from lists.gnu.org ([209.51.188.17]:49513) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1gw2pb-00049s-MI for submit@debbugs.gnu.org; Tue, 19 Feb 2019 05:40:56 -0500 Received: from eggs.gnu.org ([209.51.188.92]:51908) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gw2pa-0005BR-On for bug-gnu-emacs@gnu.org; Tue, 19 Feb 2019 05:40:55 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: * X-Spam-Status: No, score=1.6 required=5.0 tests=BAYES_50,FREEMAIL_FROM, RDNS_NONE,URIBL_BLOCKED autolearn=disabled version=3.3.2 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gw2pY-000497-Ri for bug-gnu-emacs@gnu.org; Tue, 19 Feb 2019 05:40:54 -0500 Received: from [195.159.176.226] (port=35166 helo=blaine.gmane.org) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1gw2pW-00044L-1T for bug-gnu-emacs@gnu.org; Tue, 19 Feb 2019 05:40:50 -0500 Received: from list by blaine.gmane.org with local (Exim 4.89) (envelope-from ) id 1gw2pQ-000r6T-O2 for bug-gnu-emacs@gnu.org; Tue, 19 Feb 2019 11:40:44 +0100 X-Injected-Via-Gmane: http://gmane.org/ To: bug-gnu-emacs@gnu.org From: Andy Moreton Subject: Re: bug#34516: Multi-monitor frame sets Date: Tue, 19 Feb 2019 10:40:34 +0000 Message-ID: <86sgwkawnx.fsf@gmail.com> References: <87bm3a74s4.fsf@mail.linkov.net> <83pnrpjb44.fsf@gnu.org> <8736okvlv2.fsf@mail.linkov.net> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (windows-nt) Cancel-Lock: sha1:PEOItRoRIre1u1HaO/OtVa/5HNQ= X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 195.159.176.226 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Spam-Score: 1.3 (+) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: On Mon 18 Feb 2019, Juri Linkov wrote: >>> Shouldn't frame.el provide a command like make-frame-on-display, >>> but to make a frame on the specified monitor instead of display? >>> >>> Isn't the following patch the right way to do this? >> [...] Content analysis details: (1.3 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- 0.0 URIBL_BLOCKED ADMINISTRATOR NOTICE: The query to URIBL was blocked. See http://wiki.apache.org/spamassassin/DnsBlocklists#dnsbl-block for more information. [URIs: wikipedia.org] 1.0 FORGED_GMAIL_RCVD 'From' gmail.com does not match 'Received' headers 0.0 HEADER_FROM_DIFFERENT_DOMAINS From and EnvelopeFrom 2nd level mail domains are different 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (andrewjmoreton[at]gmail.com) 0.2 FREEMAIL_FORGED_FROMDOMAIN 2nd level domains in From and EnvelopeFrom freemail headers are different X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.3 (/) On Mon 18 Feb 2019, Juri Linkov wrote: >>> Shouldn't frame.el provide a command like make-frame-on-display, >>> but to make a frame on the specified monitor instead of display? >>> >>> Isn't the following patch the right way to do this? >>> (It also adds completion for the existing command): >> >> What kind of list does display-monitor-attributes-list return on your >> system, and how can you tell which part there refers to what physical >> monitor? > > It returns a list with such meaningless monitor names as “LVDS”, “eDP-1”, “DP-2-2”, > etc. that don't help to refer to a physical monitor. Those names are not meaningless, it is just that you do not find them helpful. The names describe the hardware port used to attach the monitor: https://en.wikipedia.org/wiki/Low-voltage_differential_signaling https://en.wikipedia.org/wiki/DisplayPort https://en.wikipedia.org/wiki/DisplayPort#eDP > However, I noticed that the only attribute that could help is > ‘geometry’ in the form of (X Y WIDTH HEIGHT), e.g. when two adjacent > monitors have such geometry attributes: > > (geometry 0 0 1920 1080) > (geometry 1920 16 2560 1440) > > the right edge of the first monitor ends (1920px) is where the left edge > of the second monitor begins. Based on this guess I tried to deduce > a relative placement of new frames, but maybe I'm wrong. Why guess ? Read the documentation for `display-monitor-attributes-list' which describes the meaning of the list elements in great detail. Note that you will need to take note of the `workarea' element of the list which describes the usuable space on a given monitor (which excludes space for toolbars etc that are not available to display a frame). AndyM From debbugs-submit-bounces@debbugs.gnu.org Tue Feb 19 17:01:22 2019 Received: (at 34516) by debbugs.gnu.org; 19 Feb 2019 22:01:22 +0000 Received: from localhost ([127.0.0.1]:56801 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gwDS5-0000H0-Qa for submit@debbugs.gnu.org; Tue, 19 Feb 2019 17:01:22 -0500 Received: from indri.birch.relay.mailchannels.net ([23.83.209.92]:40528) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gwDS3-0000Gp-G8 for 34516@debbugs.gnu.org; Tue, 19 Feb 2019 17:01:20 -0500 X-Sender-Id: dreamhost|x-authsender|jurta@jurta.org Received: from relay.mailchannels.net (localhost [127.0.0.1]) by relay.mailchannels.net (Postfix) with ESMTP id 1D55F28447E; Tue, 19 Feb 2019 22:01:17 +0000 (UTC) Received: from pdx1-sub0-mail-a45.g.dreamhost.com (unknown [100.96.20.98]) (Authenticated sender: dreamhost) by relay.mailchannels.net (Postfix) with ESMTPA id BCA60284463; Tue, 19 Feb 2019 22:01:16 +0000 (UTC) X-Sender-Id: dreamhost|x-authsender|jurta@jurta.org Received: from pdx1-sub0-mail-a45.g.dreamhost.com (pop.dreamhost.com [64.90.62.162]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384) by 0.0.0.0:2500 (trex/5.16.2); Tue, 19 Feb 2019 22:01:17 +0000 X-MC-Relay: Neutral X-MailChannels-SenderId: dreamhost|x-authsender|jurta@jurta.org X-MailChannels-Auth-Id: dreamhost X-Battle-Illustrious: 060a66d7198de93e_1550613676908_1017764120 X-MC-Loop-Signature: 1550613676907:4134096959 X-MC-Ingress-Time: 1550613676907 Received: from pdx1-sub0-mail-a45.g.dreamhost.com (localhost [127.0.0.1]) by pdx1-sub0-mail-a45.g.dreamhost.com (Postfix) with ESMTP id 607D98004C; Tue, 19 Feb 2019 14:01:16 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=linkov.net; h=from:to:cc :subject:references:date:in-reply-to:message-id:mime-version :content-type; s=linkov.net; bh=cHbOM/b5F7LChfDFAEPNihd1xoE=; b= qRmtPHzG/nnYNZDF+S1Js6Rx4nJcPWhQIwqgDjUWbWdc8Dls0WiDUl6WjY16eiYy 2hK5EpvS5ktkttRRS9/rEeHFD6iXXCLOYQIOa2ijX5XyKE5yiqCXP4mtMndDicSA MJCwXEUJ2bXkl+FM2AtYxycDVAAwdHV08tkQPWRQpGM= Received: from mail.jurta.org (m91-129-96-50.cust.tele2.ee [91.129.96.50]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: jurta@jurta.org) by pdx1-sub0-mail-a45.g.dreamhost.com (Postfix) with ESMTPSA id D68FB8004A; Tue, 19 Feb 2019 14:01:13 -0800 (PST) X-DH-BACKEND: pdx1-sub0-mail-a45 From: Juri Linkov To: Andy Moreton Subject: Re: bug#34516: Multi-monitor frame sets Organization: LINKOV.NET References: <87bm3a74s4.fsf@mail.linkov.net> <83pnrpjb44.fsf@gnu.org> <8736okvlv2.fsf@mail.linkov.net> <86sgwkawnx.fsf@gmail.com> Date: Tue, 19 Feb 2019 23:31:46 +0200 In-Reply-To: <86sgwkawnx.fsf@gmail.com> (Andy Moreton's message of "Tue, 19 Feb 2019 10:40:34 +0000") Message-ID: <87imxfv519.fsf@mail.linkov.net> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain X-VR-OUT-STATUS: OK X-VR-OUT-SCORE: -100 X-VR-OUT-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrgedutddrtdeggdduheehucetufdoteggodetrfdotffvucfrrhhofhhilhgvmecuggftfghnshhusghstghrihgsvgdpffftgfetoffjqffuvfenuceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmnecujfgurhephffvufhofhffjgfkfgggtgesthdtredttdertdenucfhrhhomheplfhurhhiucfnihhnkhhovhcuoehjuhhriheslhhinhhkohhvrdhnvghtqeenucfkphepledurdduvdelrdeliedrhedtnecurfgrrhgrmhepmhhouggvpehsmhhtphdphhgvlhhopehmrghilhdrjhhurhhtrgdrohhrghdpihhnvghtpeeluddruddvledrleeirdehtddprhgvthhurhhnqdhprghthheplfhurhhiucfnihhnkhhovhcuoehjuhhriheslhhinhhkohhvrdhnvghtqedpmhgrihhlfhhrohhmpehjuhhriheslhhinhhkohhvrdhnvghtpdhnrhgtphhtthhopegrnhgurhgvfihjmhhorhgvthhonhesghhmrghilhdrtghomhenucevlhhushhtvghrufhiiigvpedt X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 34516 Cc: 34516@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) > Why guess ? Read the documentation for `display-monitor-attributes-list' > which describes the meaning of the list elements in great detail. > > Note that you will need to take note of the `workarea' element of the > list which describes the usuable space on a given monitor (which > excludes space for toolbars etc that are not available to display a > frame). Thanks for the information. Do you think it's possible to use the list elements from `display-monitor-attributes-list' to unambiguously select a monitor where to make a new frame? From debbugs-submit-bounces@debbugs.gnu.org Tue Feb 19 17:01:28 2019 Received: (at 34516) by debbugs.gnu.org; 19 Feb 2019 22:01:28 +0000 Received: from localhost ([127.0.0.1]:56804 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gwDSC-0000HK-Ch for submit@debbugs.gnu.org; Tue, 19 Feb 2019 17:01:28 -0500 Received: from purple.birch.relay.mailchannels.net ([23.83.209.150]:64708) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gwDS9-0000H9-RO for 34516@debbugs.gnu.org; Tue, 19 Feb 2019 17:01:26 -0500 X-Sender-Id: dreamhost|x-authsender|jurta@jurta.org Received: from relay.mailchannels.net (localhost [127.0.0.1]) by relay.mailchannels.net (Postfix) with ESMTP id 1C884122786; Tue, 19 Feb 2019 22:01:24 +0000 (UTC) Received: from pdx1-sub0-mail-a45.g.dreamhost.com (unknown [100.96.35.77]) (Authenticated sender: dreamhost) by relay.mailchannels.net (Postfix) with ESMTPA id ABD53122FAD; Tue, 19 Feb 2019 22:01:23 +0000 (UTC) X-Sender-Id: dreamhost|x-authsender|jurta@jurta.org Received: from pdx1-sub0-mail-a45.g.dreamhost.com (pop.dreamhost.com [64.90.62.162]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384) by 0.0.0.0:2500 (trex/5.16.2); Tue, 19 Feb 2019 22:01:24 +0000 X-MC-Relay: Neutral X-MailChannels-SenderId: dreamhost|x-authsender|jurta@jurta.org X-MailChannels-Auth-Id: dreamhost X-Reign-Robust: 76606a1f1225916d_1550613683894_3319336160 X-MC-Loop-Signature: 1550613683894:4227473973 X-MC-Ingress-Time: 1550613683894 Received: from pdx1-sub0-mail-a45.g.dreamhost.com (localhost [127.0.0.1]) by pdx1-sub0-mail-a45.g.dreamhost.com (Postfix) with ESMTP id 0A7AD8004C; Tue, 19 Feb 2019 14:01:23 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=linkov.net; h=from:to:cc :subject:references:date:in-reply-to:message-id:mime-version :content-type:content-transfer-encoding; s=linkov.net; bh=8q07gj d36qAuzfpR0MBYeJ+HhOs=; b=wnsF0+LQ9rHHsT5279gBsb+MZvYJKqd708tUFS NCvNWM3mrMFBE9Lp1FvtbnbAC++ePZLZAw+9q0a5/zOQKOUTqBBe//lqL9U1WljU gRCswTYwx2rOg/VV/Wg304LicjpvlHwrrTB/ub1keKaDPtFxAjWP2my0Cr0Efx2m fHmqA= Received: from mail.jurta.org (m91-129-96-50.cust.tele2.ee [91.129.96.50]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: jurta@jurta.org) by pdx1-sub0-mail-a45.g.dreamhost.com (Postfix) with ESMTPSA id 568E78004A; Tue, 19 Feb 2019 14:01:20 -0800 (PST) X-DH-BACKEND: pdx1-sub0-mail-a45 From: Juri Linkov To: Eli Zaretskii Subject: Re: bug#34516: Multi-monitor frame sets Organization: LINKOV.NET References: <87bm3a74s4.fsf@mail.linkov.net> <83pnrpjb44.fsf@gnu.org> <8736okvlv2.fsf@mail.linkov.net> <837edwjvwe.fsf@gnu.org> Date: Tue, 19 Feb 2019 23:37:51 +0200 In-Reply-To: <837edwjvwe.fsf@gnu.org> (Eli Zaretskii's message of "Tue, 19 Feb 2019 05:32:17 +0200") Message-ID: <87r2c3tq6o.fsf@mail.linkov.net> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 X-VR-OUT-STATUS: OK X-VR-OUT-SCORE: -100 X-VR-OUT-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrgedutddrtdeggdduheehucetufdoteggodetrfdotffvucfrrhhofhhilhgvmecuggftfghnshhusghstghrihgsvgdpffftgfetoffjqffuvfenuceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmnecujfgurhephffvufhofhffjgfkfgggtgfgsehtkeertddtreejnecuhfhrohhmpefluhhrihcunfhinhhkohhvuceojhhurhhisehlihhnkhhovhdrnhgvtheqnecukfhppeeluddruddvledrleeirdehtdenucfrrghrrghmpehmohguvgepshhmthhppdhhvghlohepmhgrihhlrdhjuhhrthgrrdhorhhgpdhinhgvthepledurdduvdelrdeliedrhedtpdhrvghtuhhrnhdqphgrthhhpefluhhrihcunfhinhhkohhvuceojhhurhhisehlihhnkhhovhdrnhgvtheqpdhmrghilhhfrhhomhepjhhurhhisehlihhnkhhovhdrnhgvthdpnhhrtghpthhtohepvghlihiisehgnhhurdhorhhgnecuvehluhhsthgvrhfuihiivgepud Content-Transfer-Encoding: quoted-printable X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 34516 Cc: 34516@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) >> > What kind of list does display-monitor-attributes-list return on you= r >> > system, and how can you tell which part there refers to what physica= l >> > monitor? >>=20 >> It returns a list with such meaningless monitor names as =E2=80=9CLVDS= =E2=80=9D, =E2=80=9CeDP-1=E2=80=9D, =E2=80=9CDP-2-2=E2=80=9D, >> etc. that don't help to refer to a physical monitor. However, I notic= ed that >> the only attribute that could help is =E2=80=98geometry=E2=80=99 in th= e form of (X Y WIDTH HEIGHT), >> e.g. when two adjacent monitors have such geometry attributes: >>=20 >> (geometry 0 0 1920 1080) >> (geometry 1920 16 2560 1440) >>=20 >> the right edge of the first monitor ends (1920px) is where the left ed= ge >> of the second monitor begins. Based on this guess I tried to deduce >> a relative placement of new frames, but maybe I'm wrong. > > Does the proposed function sound useful, given these issues? The proposed function tries to provide the right geometry for =E2=80=98make-frame=E2=80=99, i.e. the geometry of the selected monitor, = but I see that it doesn't always makes a new frame on the specified monitor. Also I don't understand the logic how currently =E2=80=98make-frame=E2=80= =99 decides on which monitor to make a new frame. From debbugs-submit-bounces@debbugs.gnu.org Tue Feb 19 18:30:10 2019 Received: (at submit) by debbugs.gnu.org; 19 Feb 2019 23:30:10 +0000 Received: from localhost ([127.0.0.1]:56918 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gwEq1-0004SM-SU for submit@debbugs.gnu.org; Tue, 19 Feb 2019 18:30:10 -0500 Received: from eggs.gnu.org ([209.51.188.92]:42277) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gwEpz-0004RB-CB for submit@debbugs.gnu.org; Tue, 19 Feb 2019 18:30:08 -0500 Received: from lists.gnu.org ([209.51.188.17]:41348) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1gwEpu-0007j6-7E for submit@debbugs.gnu.org; Tue, 19 Feb 2019 18:30:02 -0500 Received: from eggs.gnu.org ([209.51.188.92]:56654) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gwEpt-0006ug-BJ for bug-gnu-emacs@gnu.org; Tue, 19 Feb 2019 18:30:02 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: * X-Spam-Status: No, score=1.6 required=5.0 tests=BAYES_50,FREEMAIL_FROM, RDNS_NONE autolearn=disabled version=3.3.2 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gwEps-0007hI-Ko for bug-gnu-emacs@gnu.org; Tue, 19 Feb 2019 18:30:01 -0500 Received: from [195.159.176.226] (port=45880 helo=blaine.gmane.org) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1gwEps-0007dv-Cm for bug-gnu-emacs@gnu.org; Tue, 19 Feb 2019 18:30:00 -0500 Received: from list by blaine.gmane.org with local (Exim 4.89) (envelope-from ) id 1gwEpn-0001KD-GI for bug-gnu-emacs@gnu.org; Wed, 20 Feb 2019 00:29:55 +0100 X-Injected-Via-Gmane: http://gmane.org/ To: bug-gnu-emacs@gnu.org From: Andy Moreton Subject: Re: bug#34516: Multi-monitor frame sets Date: Tue, 19 Feb 2019 23:29:47 +0000 Message-ID: <865ztf73x0.fsf@gmail.com> References: <87bm3a74s4.fsf@mail.linkov.net> <83pnrpjb44.fsf@gnu.org> <8736okvlv2.fsf@mail.linkov.net> <86sgwkawnx.fsf@gmail.com> <87imxfv519.fsf@mail.linkov.net> Mime-Version: 1.0 Content-Type: text/plain User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (windows-nt) Cancel-Lock: sha1:TniAPGg9yGA0S0+Gjbi6G5W+iM0= X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 195.159.176.226 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Spam-Score: 1.2 (+) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: On Tue 19 Feb 2019, Juri Linkov wrote: >> Why guess ? Read the documentation for `display-monitor-attributes-list' >> which describes the meaning of the list elements in great detail. >> >> Note that you will need to take note of the `work [...] Content analysis details: (1.2 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (andrewjmoreton[at]gmail.com) 1.0 FORGED_GMAIL_RCVD 'From' gmail.com does not match 'Received' headers 0.0 HEADER_FROM_DIFFERENT_DOMAINS From and EnvelopeFrom 2nd level mail domains are different 0.2 FREEMAIL_FORGED_FROMDOMAIN 2nd level domains in From and EnvelopeFrom freemail headers are different X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.2 (/) On Tue 19 Feb 2019, Juri Linkov wrote: >> Why guess ? Read the documentation for `display-monitor-attributes-list' >> which describes the meaning of the list elements in great detail. >> >> Note that you will need to take note of the `workarea' element of the >> list which describes the usuable space on a given monitor (which >> excludes space for toolbars etc that are not available to display a >> frame). > > Thanks for the information. Do you think it's possible to use > the list elements from `display-monitor-attributes-list' > to unambiguously select a monitor where to make a new frame? Yes. The list describes all monitors available for displaying frames, so any new frame you wish to create must be shown (at least partially) on one of those monitors. The monitors may have different sizes, and be physically arranged in fairly arbitrary ways. For example, on Windows (from bug#21173): +----------+ | | | DISPLAY2 | | |+----------+ +----------+| | | DISPLAY1 | | (primary)| +----------+ (display-monitor-attributes-list) ;; ==> '(((geometry 0 0 1920 1080) (workarea 0 0 1920 1050) (mm-size 677 381) (name . "\\\\.\\DISPLAY1") (frames ...)) ((geometry -1680 -1050 1680 1050) (workarea -1680 -1050 1680 1050) (mm-size 593 370) (name . "\\\\.\\DISPLAY2") (frames ...))) ;; For a frame on DISPLAY2: (frame-parameter (window-frame) 'left) ;; ==> (+ -1668) (frame-parameter (window-frame) 'top) ;; ==> (+ -1046) From debbugs-submit-bounces@debbugs.gnu.org Wed Feb 20 16:22:51 2019 Received: (at 34516) by debbugs.gnu.org; 20 Feb 2019 21:22:51 +0000 Received: from localhost ([127.0.0.1]:58637 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gwZKN-0004zF-C4 for submit@debbugs.gnu.org; Wed, 20 Feb 2019 16:22:51 -0500 Received: from purple.birch.relay.mailchannels.net ([23.83.209.150]:27978) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gwZKK-0004z6-NO for 34516@debbugs.gnu.org; Wed, 20 Feb 2019 16:22:49 -0500 X-Sender-Id: dreamhost|x-authsender|jurta@jurta.org Received: from relay.mailchannels.net (localhost [127.0.0.1]) by relay.mailchannels.net (Postfix) with ESMTP id 6EE83502FA6; Wed, 20 Feb 2019 21:22:46 +0000 (UTC) Received: from pdx1-sub0-mail-a65.g.dreamhost.com (unknown [100.96.30.62]) (Authenticated sender: dreamhost) by relay.mailchannels.net (Postfix) with ESMTPA id 1F48C502FF2; Wed, 20 Feb 2019 21:22:46 +0000 (UTC) X-Sender-Id: dreamhost|x-authsender|jurta@jurta.org Received: from pdx1-sub0-mail-a65.g.dreamhost.com (pop.dreamhost.com [64.90.62.162]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384) by 0.0.0.0:2500 (trex/5.16.2); Wed, 20 Feb 2019 21:22:46 +0000 X-MC-Relay: Neutral X-MailChannels-SenderId: dreamhost|x-authsender|jurta@jurta.org X-MailChannels-Auth-Id: dreamhost X-Relation-Chief: 6dfe2b0b1d0fc0cb_1550697766267_596204949 X-MC-Loop-Signature: 1550697766267:891310909 X-MC-Ingress-Time: 1550697766266 Received: from pdx1-sub0-mail-a65.g.dreamhost.com (localhost [127.0.0.1]) by pdx1-sub0-mail-a65.g.dreamhost.com (Postfix) with ESMTP id 79AE97FC54; Wed, 20 Feb 2019 13:22:45 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=linkov.net; h=from:to:cc :subject:references:date:in-reply-to:message-id:mime-version :content-type; s=linkov.net; bh=Ef7v8LUcGyhcJa4jqNBMV3lex5M=; b= YFh+Sn7skqpolPAfELBeDMiPWg4Py5C9aI5FYfrXN+2rlHVDn22ekUiDFnH6pQZn kX1KdvM1PXBHFfHitjLezbZ4Fd6vrAkpOp+ZwxWwsHXG3LiC1gB8gchdzuTvbtdQ jvJY4bqrSFuzf/LsJ9kbaffJmS1hnqgeU5rU3Vu/LLY= Received: from mail.jurta.org (m91-129-98-103.cust.tele2.ee [91.129.98.103]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: jurta@jurta.org) by pdx1-sub0-mail-a65.g.dreamhost.com (Postfix) with ESMTPSA id 2A9587FC53; Wed, 20 Feb 2019 13:22:42 -0800 (PST) X-DH-BACKEND: pdx1-sub0-mail-a65 From: Juri Linkov To: Andy Moreton Subject: Re: bug#34516: Multi-monitor frame sets Organization: LINKOV.NET References: <87bm3a74s4.fsf@mail.linkov.net> <83pnrpjb44.fsf@gnu.org> <8736okvlv2.fsf@mail.linkov.net> <86sgwkawnx.fsf@gmail.com> <87imxfv519.fsf@mail.linkov.net> <865ztf73x0.fsf@gmail.com> Date: Wed, 20 Feb 2019 23:20:39 +0200 In-Reply-To: <865ztf73x0.fsf@gmail.com> (Andy Moreton's message of "Tue, 19 Feb 2019 23:29:47 +0000") Message-ID: <87ftsip36g.fsf@mail.linkov.net> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-VR-OUT-STATUS: OK X-VR-OUT-SCORE: -100 X-VR-OUT-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrgedutddrtdeigddugeekucetufdoteggodetrfdotffvucfrrhhofhhilhgvmecuggftfghnshhusghstghrihgsvgdpffftgfetoffjqffuvfenuceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmnecujfgurhephffvufhofhffjgfkfgggtgesmhdtreertderjeenucfhrhhomheplfhurhhiucfnihhnkhhovhcuoehjuhhriheslhhinhhkohhvrdhnvghtqeenucfkphepledurdduvdelrdelkedruddtfeenucfrrghrrghmpehmohguvgepshhmthhppdhhvghlohepmhgrihhlrdhjuhhrthgrrdhorhhgpdhinhgvthepledurdduvdelrdelkedruddtfedprhgvthhurhhnqdhprghthheplfhurhhiucfnihhnkhhovhcuoehjuhhriheslhhinhhkohhvrdhnvghtqedpmhgrihhlfhhrohhmpehjuhhriheslhhinhhkohhvrdhnvghtpdhnrhgtphhtthhopegrnhgurhgvfihjmhhorhgvthhonhesghhmrghilhdrtghomhenucevlhhushhtvghrufhiiigvpedt X-Spam-Score: 1.3 (+) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: > (display-monitor-attributes-list) > ; ; ==> > '(((geometry 0 0 1920 1080) > (workarea 0 0 1920 1050) > (mm-size 677 381) > (name . "\\\\.\\DISPLAY1") > (frames ...)) > ((geometry -1680 -1050 1680 105 [...] Content analysis details: (1.3 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- 1.3 RCVD_IN_RP_RNBL RBL: Relay in RNBL, https://senderscore.org/blacklistlookup/ [23.83.209.150 listed in bl.score.senderscore.com] -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at http://www.dnswl.org/, no trust [23.83.209.150 listed in list.dnswl.org] 0.0 URIBL_BLOCKED ADMINISTRATOR NOTICE: The query to URIBL was blocked. See http://wiki.apache.org/spamassassin/DnsBlocklists#dnsbl-block for more information. [URIs: linkov.net] -0.0 SPF_PASS SPF: sender matches SPF record X-Debbugs-Envelope-To: 34516 Cc: 34516@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.3 (/) --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable > (display-monitor-attributes-list) > ;; =3D=3D> > '(((geometry 0 0 1920 1080) > (workarea 0 0 1920 1050) > (mm-size 677 381) > (name . "\\\\.\\DISPLAY1") > (frames ...)) > ((geometry -1680 -1050 1680 1050) > (workarea -1680 -1050 1680 1050) > (mm-size 593 370) > (name . "\\\\.\\DISPLAY2") > (frames ...))) I see that =E2=80=98geometry=E2=80=99 is the same as =E2=80=98workarea=E2= =80=99 on the second monitor, but slightly different on the first one. Mine are all the same, so I don't know whether to use =E2=80=98geometry=E2=80=99 or =E2=80=98wor= karea=E2=80=99. Meanwhile I found a mistake in my previous patch. I assumed that both pairs of attributes top/left and height/width for =E2=80=98make-fram= e=E2=80=99 are measured in pixels. In fact, only top/left are in pixels, whereas height/width are in text units. So needed to wrap them in =E2=80=98text-pixels=E2=80=99. Now with this patch everything is fine= : --=-=-= Content-Type: text/x-diff Content-Disposition: inline; filename=make-frame-on-monitor.2.patch diff --git a/lisp/frame.el b/lisp/frame.el index dc81302939..208748ef1d 100644 --- a/lisp/frame.el +++ b/lisp/frame.el @@ -644,9 +644,37 @@ window-system-for-display (defun make-frame-on-display (display &optional parameters) "Make a frame on display DISPLAY. The optional argument PARAMETERS specifies additional frame parameters." - (interactive "sMake frame on display: ") + (interactive (list (completing-read + (format "Make frame on display: ") + (delete-dups + (mapcar (lambda (frame) + (frame-parameter frame 'display)) + (frame-list)))))) (make-frame (cons (cons 'display display) parameters))) +(defun make-frame-on-monitor (monitor &optional display parameters) + "Make a frame on monitor MONITOR. +The optional argument PARAMETERS specifies additional frame parameters." + (interactive (list (completing-read + (format "Make frame on monitor: ") + (mapcar (lambda (a) + (cdr (assq 'name a))) + (display-monitor-attributes-list))))) + (let* ((monitor-geometry (car (delq nil (mapcar (lambda (a) + (when (equal (cdr (assq 'name a)) monitor) + (cdr (assq 'geometry a)))) + (display-monitor-attributes-list display))))) + (frame-geometry (x-parse-geometry (format "%dx%d+%d+%d" + (nth 2 monitor-geometry) + (nth 3 monitor-geometry) + (nth 0 monitor-geometry) + (nth 1 monitor-geometry)))) + (frame-geometry-in-pixels `((top . ,(cdr (assq 'top frame-geometry))) + (left . ,(cdr (assq 'left frame-geometry))) + (height . (text-pixels . ,(cdr (assq 'height frame-geometry)))) + (width . (text-pixels . ,(cdr (assq 'width frame-geometry))))))) + (make-frame (append frame-geometry-in-pixels parameters)))) + (declare-function x-close-connection "xfns.c" (terminal)) (defun close-display-connection (display) --=-=-=-- From debbugs-submit-bounces@debbugs.gnu.org Wed Feb 20 16:38:20 2019 Received: (at submit) by debbugs.gnu.org; 20 Feb 2019 21:38:20 +0000 Received: from localhost ([127.0.0.1]:58677 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gwZZM-0005S4-6V for submit@debbugs.gnu.org; Wed, 20 Feb 2019 16:38:20 -0500 Received: from eggs.gnu.org ([209.51.188.92]:36798) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gwZZJ-0005Rr-TC for submit@debbugs.gnu.org; Wed, 20 Feb 2019 16:38:19 -0500 Received: from lists.gnu.org ([209.51.188.17]:40545) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1gwZZE-0001A4-Ik for submit@debbugs.gnu.org; Wed, 20 Feb 2019 16:38:12 -0500 Received: from eggs.gnu.org ([209.51.188.92]:51167) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gwZZD-0006HY-PM for bug-gnu-emacs@gnu.org; Wed, 20 Feb 2019 16:38:12 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: * X-Spam-Status: No, score=1.6 required=5.0 tests=BAYES_50,FREEMAIL_FROM, RDNS_NONE autolearn=disabled version=3.3.2 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gwZZD-00016G-3V for bug-gnu-emacs@gnu.org; Wed, 20 Feb 2019 16:38:11 -0500 Received: from [195.159.176.226] (port=40054 helo=blaine.gmane.org) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1gwZZC-00011J-Rs for bug-gnu-emacs@gnu.org; Wed, 20 Feb 2019 16:38:11 -0500 Received: from list by blaine.gmane.org with local (Exim 4.89) (envelope-from ) id 1gwZZA-000HEU-CC for bug-gnu-emacs@gnu.org; Wed, 20 Feb 2019 22:38:08 +0100 X-Injected-Via-Gmane: http://gmane.org/ To: bug-gnu-emacs@gnu.org From: Andy Moreton Subject: Re: bug#34516: Multi-monitor frame sets Date: Wed, 20 Feb 2019 21:38:02 +0000 Message-ID: References: <87bm3a74s4.fsf@mail.linkov.net> <83pnrpjb44.fsf@gnu.org> <8736okvlv2.fsf@mail.linkov.net> <86sgwkawnx.fsf@gmail.com> <87imxfv519.fsf@mail.linkov.net> <865ztf73x0.fsf@gmail.com> <87ftsip36g.fsf@mail.linkov.net> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1.91 (windows-nt) Cancel-Lock: sha1:WKCgcSMwQv5gF7VzyqaXpOc1lj4= X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 195.159.176.226 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Spam-Score: 1.2 (+) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: On Wed 20 Feb 2019, Juri Linkov wrote: >> (display-monitor-attributes-list) >> ; ; ==> >> '(((geometry 0 0 1920 1080) >> (workarea 0 0 1920 1050) >> (mm-size 677 381) >> (name . "\\\\.\\DISPLAY1") >> (frames ...)) >> ((geometry -1680 -1050 [...] Content analysis details: (1.2 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- 0.0 HEADER_FROM_DIFFERENT_DOMAINS From and EnvelopeFrom 2nd level mail domains are different 1.0 FORGED_GMAIL_RCVD 'From' gmail.com does not match 'Received' headers 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (andrewjmoreton[at]gmail.com) -0.0 RCVD_IN_MSPIKE_H2 RBL: Average reputation (+2) [209.51.188.92 listed in wl.mailspike.net] 0.2 FREEMAIL_FORGED_FROMDOMAIN 2nd level domains in From and EnvelopeFrom freemail headers are different X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.2 (/) On Wed 20 Feb 2019, Juri Linkov wrote: >> (display-monitor-attributes-list) >> ;; ==> >> '(((geometry 0 0 1920 1080) >> (workarea 0 0 1920 1050) >> (mm-size 677 381) >> (name . "\\\\.\\DISPLAY1") >> (frames ...)) >> ((geometry -1680 -1050 1680 1050) >> (workarea -1680 -1050 1680 1050) >> (mm-size 593 370) >> (name . "\\\\.\\DISPLAY2") >> (frames ...))) > > I see that ‘geometry’ is the same as ‘workarea’ on the second monitor, > but slightly different on the first one. Mine are all the same, > so I don't know whether to use ‘geometry’ or ‘workarea’. In the example above, the DISPLAY1 monitor has the Windows task bar along the bottom edge (with auto-hide disabled), so space there is not available for displaying emacs frames. The Windows task bar is not displayed on the DISPLAY2 monitor in this setup, so the DISPLAY2 workarea matches the geometry, as the whole monitor can be used to display frames. You should always use the workarea values for displaying emacs frames. AndyM From debbugs-submit-bounces@debbugs.gnu.org Sat Feb 23 16:03:24 2019 Received: (at 34516) by debbugs.gnu.org; 23 Feb 2019 21:03:25 +0000 Received: from localhost ([127.0.0.1]:49615 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gxeSC-0007Ra-LN for submit@debbugs.gnu.org; Sat, 23 Feb 2019 16:03:24 -0500 Received: from golden.birch.relay.mailchannels.net ([23.83.209.73]:25479) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gxeS9-0007RR-Sw for 34516@debbugs.gnu.org; Sat, 23 Feb 2019 16:03:22 -0500 X-Sender-Id: dreamhost|x-authsender|jurta@jurta.org Received: from relay.mailchannels.net (localhost [127.0.0.1]) by relay.mailchannels.net (Postfix) with ESMTP id 21118683E2E for <34516@debbugs.gnu.org>; Sat, 23 Feb 2019 21:03:20 +0000 (UTC) Received: from pdx1-sub0-mail-a42.g.dreamhost.com (unknown [100.96.20.153]) (Authenticated sender: dreamhost) by relay.mailchannels.net (Postfix) with ESMTPA id CC262683E0B for <34516@debbugs.gnu.org>; Sat, 23 Feb 2019 21:03:19 +0000 (UTC) X-Sender-Id: dreamhost|x-authsender|jurta@jurta.org Received: from pdx1-sub0-mail-a42.g.dreamhost.com (pop.dreamhost.com [64.90.62.162]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384) by 0.0.0.0:2500 (trex/5.16.3); Sat, 23 Feb 2019 21:03:20 +0000 X-MC-Relay: Neutral X-MailChannels-SenderId: dreamhost|x-authsender|jurta@jurta.org X-MailChannels-Auth-Id: dreamhost X-Attack-Share: 538bd3465e9c57de_1550955799980_3452801567 X-MC-Loop-Signature: 1550955799980:1237342370 X-MC-Ingress-Time: 1550955799979 Received: from pdx1-sub0-mail-a42.g.dreamhost.com (localhost [127.0.0.1]) by pdx1-sub0-mail-a42.g.dreamhost.com (Postfix) with ESMTP id 77F59804A6 for <34516@debbugs.gnu.org>; Sat, 23 Feb 2019 13:03:19 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=linkov.net; h=from:to :subject:references:date:in-reply-to:message-id:mime-version :content-type:content-transfer-encoding; s=linkov.net; bh=OEWb+x eVjhb6FQiGS6bkv7SoSq0=; b=Rc1G8KeSrljizLslv5J/zPZFcOn008B2FZ10AN 14dBrUcGbKO6Xmp2UcQ2UpYGOWD04X+7lkUZS758AbBNR2V5e53IqrRzV5xjf/zP qBeRy0+nuzskrims80yadHXZJjIF3HoJe1ZHhV7y927NsOlM7RvqIgz40GKoJlFz +tlVE= Received: from mail.jurta.org (m91-129-98-103.cust.tele2.ee [91.129.98.103]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: jurta@jurta.org) by pdx1-sub0-mail-a42.g.dreamhost.com (Postfix) with ESMTPSA id 2821E804AE for <34516@debbugs.gnu.org>; Sat, 23 Feb 2019 13:03:17 -0800 (PST) X-DH-BACKEND: pdx1-sub0-mail-a42 From: Juri Linkov To: 34516@debbugs.gnu.org Subject: Re: bug#34516: Multi-monitor frame sets Organization: LINKOV.NET References: <87bm3a74s4.fsf@mail.linkov.net> <87zhqsx115.fsf@mail.linkov.net> Date: Sat, 23 Feb 2019 22:43:41 +0200 In-Reply-To: (Robert Pluim's message of "Tue, 19 Feb 2019 10:17:20 +0100") Message-ID: <87r2byw802.fsf@mail.linkov.net> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 X-VR-OUT-STATUS: OK X-VR-OUT-SCORE: 0 X-VR-OUT-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrgedutddruddvgddugeejucetufdoteggodetrfdotffvucfrrhhofhhilhgvmecuggftfghnshhusghstghrihgsvgdpffftgfetoffjqffuvfenuceurghilhhouhhtmecufedttdenucenucfjughrpefhvffuohhfffgjkfgfgggtgfesthekredttderjeenucfhrhhomheplfhurhhiucfnihhnkhhovhcuoehjuhhriheslhhinhhkohhvrdhnvghtqeenucfkphepledurdduvdelrdelkedruddtfeenucfrrghrrghmpehmohguvgepshhmthhppdhhvghlohepmhgrihhlrdhjuhhrthgrrdhorhhgpdhinhgvthepledurdduvdelrdelkedruddtfedprhgvthhurhhnqdhprghthheplfhurhhiucfnihhnkhhovhcuoehjuhhriheslhhinhhkohhvrdhnvghtqedpmhgrihhlfhhrohhmpehjuhhriheslhhinhhkohhvrdhnvghtpdhnrhgtphhtthhopeefgeehudeiseguvggssghughhsrdhgnhhurdhorhhgnecuvehluhhsthgvrhfuihiivgeptd Content-Transfer-Encoding: quoted-printable X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 34516 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) >>> I don=CA=BCt mind it, but it won't work on macOS, since there=CA=BCs = no 'name >>> entries in 'display-monitor-attributes-list' (and adding them looks >>> non-trivial, unless we go for 'Monitor-1', Monitor-2' etc.) >> >> Are there other NS-specific attributes that could provide >> a clear reference to a specific monitor? Maybe =E2=80=98geometry=E2=80= =99 >> could be used to deduce a relative arrangement of monitors? > > I guess it could. Or we could fake up a monitor name on those systems > where ns_screen_name doesn=CA=BCt work. Since on Windows 'display-monitor-attributes-list' returns such fake monitor names: \\.\DISPLAY1 \\.\DISPLAY2 on macOS it could return something like that or generate fake names from geometry like "1920x1080+0+0", "2560x1440+1920+16". From debbugs-submit-bounces@debbugs.gnu.org Sat Feb 23 16:03:31 2019 Received: (at 34516) by debbugs.gnu.org; 23 Feb 2019 21:03:31 +0000 Received: from localhost ([127.0.0.1]:49618 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gxeSI-0007Ru-Ta for submit@debbugs.gnu.org; Sat, 23 Feb 2019 16:03:31 -0500 Received: from bird.maple.relay.mailchannels.net ([23.83.214.17]:62348) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gxeSH-0007Rk-4x for 34516@debbugs.gnu.org; Sat, 23 Feb 2019 16:03:29 -0500 X-Sender-Id: dreamhost|x-authsender|jurta@jurta.org Received: from relay.mailchannels.net (localhost [127.0.0.1]) by relay.mailchannels.net (Postfix) with ESMTP id 47BEC42856; Sat, 23 Feb 2019 21:03:27 +0000 (UTC) Received: from pdx1-sub0-mail-a42.g.dreamhost.com (unknown [100.96.28.213]) (Authenticated sender: dreamhost) by relay.mailchannels.net (Postfix) with ESMTPA id DDFB543238; Sat, 23 Feb 2019 21:03:26 +0000 (UTC) X-Sender-Id: dreamhost|x-authsender|jurta@jurta.org Received: from pdx1-sub0-mail-a42.g.dreamhost.com (pop.dreamhost.com [64.90.62.162]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384) by 0.0.0.0:2500 (trex/5.16.3); Sat, 23 Feb 2019 21:03:27 +0000 X-MC-Relay: Neutral X-MailChannels-SenderId: dreamhost|x-authsender|jurta@jurta.org X-MailChannels-Auth-Id: dreamhost X-Soft-Lonely: 69f015434de996bf_1550955807040_4078756951 X-MC-Loop-Signature: 1550955807040:2843569595 X-MC-Ingress-Time: 1550955807039 Received: from pdx1-sub0-mail-a42.g.dreamhost.com (localhost [127.0.0.1]) by pdx1-sub0-mail-a42.g.dreamhost.com (Postfix) with ESMTP id A2D87804A6; Sat, 23 Feb 2019 13:03:26 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=linkov.net; h=from:to:cc :subject:references:date:in-reply-to:message-id:mime-version :content-type; s=linkov.net; bh=zuG4PoA2KrCVxcYzqR3WB9XtN0Q=; b= RwHT0psabN9d1O/aEsIL6y3FVyL3g9em4gVj8XcN43Sy1JPU7SIa/yqzTPXuzibK GWAdAEtjsYEFLv/BjYLq9r1TYPNfESdxkmjt7c2BCB4KtdqtVsteiC/c/e9GAdvn U25cKLIkE1osA90b/QVM6IS0w7SbPsjDX7oiIX1COY4= Received: from mail.jurta.org (m91-129-98-103.cust.tele2.ee [91.129.98.103]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: jurta@jurta.org) by pdx1-sub0-mail-a42.g.dreamhost.com (Postfix) with ESMTPSA id 584F28049F; Sat, 23 Feb 2019 13:03:23 -0800 (PST) X-DH-BACKEND: pdx1-sub0-mail-a42 From: Juri Linkov To: Andy Moreton Subject: Re: bug#34516: Multi-monitor frame sets Organization: LINKOV.NET References: <87bm3a74s4.fsf@mail.linkov.net> <83pnrpjb44.fsf@gnu.org> <8736okvlv2.fsf@mail.linkov.net> <86sgwkawnx.fsf@gmail.com> <87imxfv519.fsf@mail.linkov.net> <865ztf73x0.fsf@gmail.com> <87ftsip36g.fsf@mail.linkov.net> Date: Sat, 23 Feb 2019 22:48:25 +0200 In-Reply-To: (Andy Moreton's message of "Wed, 20 Feb 2019 21:38:02 +0000") Message-ID: <87h8cuw7s6.fsf@mail.linkov.net> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-VR-OUT-STATUS: OK X-VR-OUT-SCORE: -100 X-VR-OUT-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrgedutddruddvgddugeejucetufdoteggodetrfdotffvucfrrhhofhhilhgvmecuggftfghnshhusghstghrihgsvgdpffftgfetoffjqffuvfenuceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmnecujfgurhephffvufhofhffjgfkfgggtgesmhdtreertdertdenucfhrhhomheplfhurhhiucfnihhnkhhovhcuoehjuhhriheslhhinhhkohhvrdhnvghtqeenucfkphepledurdduvdelrdelkedruddtfeenucfrrghrrghmpehmohguvgepshhmthhppdhhvghlohepmhgrihhlrdhjuhhrthgrrdhorhhgpdhinhgvthepledurdduvdelrdelkedruddtfedprhgvthhurhhnqdhprghthheplfhurhhiucfnihhnkhhovhcuoehjuhhriheslhhinhhkohhvrdhnvghtqedpmhgrihhlfhhrohhmpehjuhhriheslhhinhhkohhvrdhnvghtpdhnrhgtphhtthhopegrnhgurhgvfihjmhhorhgvthhonhesghhmrghilhdrtghomhenucevlhhushhtvghrufhiiigvpedt X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 34516 Cc: 34516@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) --=-=-= Content-Type: text/plain > You should always use the workarea values for displaying emacs frames. Ok, this patch uses the workarea instead: --=-=-= Content-Type: text/x-diff Content-Disposition: inline; filename=make-frame-on-monitor.3.patch diff --git a/lisp/frame.el b/lisp/frame.el index dc81302939..648944952f 100644 --- a/lisp/frame.el +++ b/lisp/frame.el @@ -644,9 +644,43 @@ window-system-for-display (defun make-frame-on-display (display &optional parameters) "Make a frame on display DISPLAY. The optional argument PARAMETERS specifies additional frame parameters." - (interactive "sMake frame on display: ") + (interactive (list (completing-read + (format "Make frame on display: ") + (delete-dups + (mapcar (lambda (frame) + (frame-parameter frame 'display)) + (frame-list)))))) (make-frame (cons (cons 'display display) parameters))) +(defun make-frame-on-monitor (monitor &optional display parameters) + "Make a frame on monitor MONITOR. +The optional argument DISPLAY can be a display name, and the optional +argument PARAMETERS specifies additional frame parameters." + (interactive (list (completing-read + (format "Make frame on monitor: ") + (mapcar (lambda (a) + (cdr (assq 'name a))) + (display-monitor-attributes-list))))) + (let* ((monitor-geometry + (car (delq nil (mapcar (lambda (a) + (when (equal (cdr (assq 'name a)) monitor) + (cdr (assq 'workarea a)))) + (display-monitor-attributes-list display))))) + (frame-geometry + (when monitor-geometry + (x-parse-geometry (format "%dx%d+%d+%d" + (nth 2 monitor-geometry) + (nth 3 monitor-geometry) + (nth 0 monitor-geometry) + (nth 1 monitor-geometry))))) + (frame-geometry-in-pixels + (when frame-geometry + `((top . ,(cdr (assq 'top frame-geometry))) + (left . ,(cdr (assq 'left frame-geometry))) + (height . (text-pixels . ,(cdr (assq 'height frame-geometry)))) + (width . (text-pixels . ,(cdr (assq 'width frame-geometry)))))))) + (make-frame (append frame-geometry-in-pixels parameters)))) + (declare-function x-close-connection "xfns.c" (terminal)) (defun close-display-connection (display) --=-=-=-- From debbugs-submit-bounces@debbugs.gnu.org Sun Feb 24 03:44:47 2019 Received: (at 34516) by debbugs.gnu.org; 24 Feb 2019 08:44:47 +0000 Received: from localhost ([127.0.0.1]:49828 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gxpOv-0007NR-Gf for submit@debbugs.gnu.org; Sun, 24 Feb 2019 03:44:45 -0500 Received: from mout.gmx.net ([212.227.15.18]:38897) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gxpOt-0007NC-GN for 34516@debbugs.gnu.org; Sun, 24 Feb 2019 03:44:43 -0500 Received: from [192.168.1.101] ([213.162.73.91]) by mail.gmx.com (mrgmx001 [212.227.17.190]) with ESMTPSA (Nemesis) id 0Lx8vJ-1h4mM70FBJ-016iUC; Sun, 24 Feb 2019 09:44:34 +0100 Message-ID: <5C72596F.9010707@gmx.at> Date: Sun, 24 Feb 2019 09:44:31 +0100 From: martin rudalics MIME-Version: 1.0 To: Juri Linkov , Andy Moreton Subject: Re: bug#34516: Multi-monitor frame sets References: <87bm3a74s4.fsf@mail.linkov.net> <83pnrpjb44.fsf@gnu.org> <8736okvlv2.fsf@mail.linkov.net> <86sgwkawnx.fsf@gmail.com> <87imxfv519.fsf@mail.linkov.net> <865ztf73x0.fsf@gmail.com> <87ftsip36g.fsf@mail.linkov.net> <87h8cuw7s6.fsf@mail.linkov.net> In-Reply-To: <87h8cuw7s6.fsf@mail.linkov.net> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Provags-ID: V03:K1:VEwODjjs/KPcvb4ezagSVSz+apcwnOWdqm88QJWQHXrL9DV3i8v a9JnO/vdZQlt0sjvlqr7BIsL+PhWBfZnf6L7y7XxGqTPHTKoSW37aJxf3yFU6R0kT7MDqJS 2GZh/R+WvkbKi8Exskyjp1L5S0syIRax9Uj4+wzmipmIh86a2GUB6bEU7/awnXyqk6IwlHk guLNW6KZizm7xTbSB3WxQ== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V03:K0:OJ8cNPF50Ho=:CXSWvcM0/gQ0IfSK0Prbyl uHXAf+xZDuYGiWU+uGMkaMHmRtX8x4QFk5f2k74FvxaPovU5g8bxJ0qBSgOUkYeTjEmjvcdVy DRGANFtlMP+jBzS7/98O3DxaXqiKsu9IblFHRwS+3BtKd63kiw6sVdttkHJWZHzNoaLJyAjWn 2M0/h3awiGk1JcbFYMPFKTFaDLFWURUqJ+cuyt/fNg0ht3yqrUVDV1CfEB5qI4yHt1TxY4+Ue BzdK2ihCmkoJIVoiiBL9ys+NyHiZrYRqXI6jVkHAw3sNwasbSoBlocBk1aFnwRFlsNOt2joPK 7hzA6QNVsWlEEVsN8ZE91qhKmzFP5lFVowqj6DdK8kvBtpJIqzBtYtYi79Lj2IJFCeB/ZFG+N eomodoiC1X/s6zT7g3bLyg0DAelSdCTJOgLo+Y8OJdmsX1AdK3O2IjKG7LNIN7QqkoxbsedCb vwCfuq5mPBlj0tgXhjfmXvQHGrtL4YIFKnA20yolq2GLzjE2gduSrXFiAt1WqgTcGV8TvzluO BAv6jcnUEcy2RHHWwKPoECMX/cv36vAUF+STgKVM3FSzZUkB/HyqYEtqxys/LtYWSIx4UT5mr rn635o5E//RHIOeWzZ3QeUmZMly5YyCXVqkBC3AlFn81aJv3bDxuY7awuigBGdDOwov76/JqE UL6NcFObNWVQyEq4ihvP2Q780dZtkJ30WuhywNALSJEgs8eSLRZ4Cp893Xh0QAiwXMZYkyNVC HbOYAqoM4DPy+mz/3LjyaHKQYpWKv+A/3VxWoBPoUIhaKFwN6pbCpU9G7zgCOwGJVtKlVva+x ZfOFQytX6B43srjlXARV6o8BlG/vbA9PVJKb11c9gy+P+K/VJFXbxS5TaBvQg7AY0xn4PZ4aP uBDHNajjnWUb65GkyuCwUUgQ19g0aI8/seeRb//Q++27+byzEm4lh90EDXlWXvlkDEhIOCIsH dWuLqpDCc7A== X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 34516 Cc: 34516@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) >> You should always use the workarea values for displaying emacs frames. Much easier said than done. > Ok, this patch uses the workarea instead: AFAICT, the workarea may "move" from one display to another. So to be on the safe side, code should always assume the presence of a workarea even when there's none at the very moment. But I have no idea whether the workarea size and position may change when moving from one display to another. martin From debbugs-submit-bounces@debbugs.gnu.org Sun Feb 24 07:56:42 2019 Received: (at 34516) by debbugs.gnu.org; 24 Feb 2019 12:56:42 +0000 Received: from localhost ([127.0.0.1]:49882 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gxtKk-0006yP-F8 for submit@debbugs.gnu.org; Sun, 24 Feb 2019 07:56:42 -0500 Received: from mail-wm1-f42.google.com ([209.85.128.42]:34679) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gxtKi-0006yC-E6 for 34516@debbugs.gnu.org; Sun, 24 Feb 2019 07:56:41 -0500 Received: by mail-wm1-f42.google.com with SMTP id o10so1026208wmc.1 for <34516@debbugs.gnu.org>; Sun, 24 Feb 2019 04:56:40 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:references:mail-copies-to:gmane-reply-to-list :date:in-reply-to:message-id:mime-version:content-transfer-encoding; bh=cmqZwZGgG9UKEnbjDdvjAfj3TaTVcTZiJvGthTx55GU=; b=eeuA3qL51VwYkHwQWkItfQqzLa4Psjhd/Z37MkzMxm70qXDadvw62XgvDQdoiGCImO tW1vZ8xqYs/xfZlDED/FfOGQjPuO9Trys5Wei5tkvawDO9V2jYP1lGh5EioigVrl1KW4 LU3eW16sDFBbAr8n2THrTI826Mu/9c9mJ3IZSp2LhLvntzTHqqMqWyVHh6Q6OQJ3Zsv9 9942IXo4tgm7goDHIn+jkijXDjCBZJKafu4sPC2i/YbpMkK8qEr3iM/s35ZaaJGlq39C REelbTbbmwt3gvGnVZrg3WfMU4OH/DYcGydt/MEDRS1I8bNXxjw9vjIYGmVmprsQ4BUb SIkg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references:mail-copies-to :gmane-reply-to-list:date:in-reply-to:message-id:mime-version :content-transfer-encoding; bh=cmqZwZGgG9UKEnbjDdvjAfj3TaTVcTZiJvGthTx55GU=; b=GXHGG4NgQ6369FzcLKWV5fsvA819EzYQLQXKmJfSB3ztW+coooyeXUPC+DAVyBYfV6 FvUPP1sPDUHSA2M4OquSr+7hjQ9GWA39vBdVBlmoU3Jb7Flf7SuJKVFugsRTPH7YPpLr NACYIgRytcpayJSYcCZaWuBSsLInN4/d00iwaXlR/wbK8dIWWzGNAXB6pifbVnvtx2S8 oN6+nnZ3oC9A3wjadvtHIgjsphnfLMxEWxduycpcW2ATUeICh/vetghMNun24q7JZ8UO 546CbV+3EK0TgIjZiDn8NlW8/0eps5G+pVy5m3ZKVq4NVXCxmvVvi2aonMHJHY7hE/Xs q5Qg== X-Gm-Message-State: AHQUAuZVuYWvyB75ogH92ZhxKxZpH8qcIv3KyL6p3IsbLmftPntqr2AI pd+8OBdbelRNGO4v+B/7Wx0JHSkN X-Google-Smtp-Source: AHgI3Ibm+0OpfxGiMohsHoJgMCY90ebAlH83f+jDmH8Ce2evuzQ9Mt30qdaE+rMvtpSQ1akM9FJRHw== X-Received: by 2002:a1c:342:: with SMTP id 63mr7502868wmd.34.1551012993898; Sun, 24 Feb 2019 04:56:33 -0800 (PST) Received: from rpluim-mac ([2a01:e34:ecfc:a860:8002:3916:e8ea:5231]) by smtp.gmail.com with ESMTPSA id c14sm8443507wrn.12.2019.02.24.04.56.32 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Sun, 24 Feb 2019 04:56:32 -0800 (PST) From: Robert Pluim To: Juri Linkov Subject: Re: bug#34516: Multi-monitor frame sets References: <87bm3a74s4.fsf@mail.linkov.net> <87zhqsx115.fsf@mail.linkov.net> <87r2byw802.fsf@mail.linkov.net> X-Debbugs-No-Ack: yes Mail-Copies-To: never Gmane-Reply-To-List: yes Date: Sun, 24 Feb 2019 13:56:31 +0100 In-Reply-To: <87r2byw802.fsf@mail.linkov.net> (Juri Linkov's message of "Sat, 23 Feb 2019 22:43:41 +0200") Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 34516 Cc: 34516@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Juri Linkov writes: >>>> I don=CA=BCt mind it, but it won't work on macOS, since there=CA=BCs n= o 'name >>>> entries in 'display-monitor-attributes-list' (and adding them looks >>>> non-trivial, unless we go for 'Monitor-1', Monitor-2' etc.) >>> >>> Are there other NS-specific attributes that could provide >>> a clear reference to a specific monitor? Maybe =E2=80=98geometry=E2=80= =99 >>> could be used to deduce a relative arrangement of monitors? >> >> I guess it could. Or we could fake up a monitor name on those systems >> where ns_screen_name doesn=CA=BCt work. > > Since on Windows 'display-monitor-attributes-list' returns such > fake monitor names: > > \\.\DISPLAY1 > \\.\DISPLAY2 > > on macOS it could return something like that or generate fake names > from geometry like "1920x1080+0+0", "2560x1440+1920+16". I often have two identical monitors attached, so that would be confusing :-) Something like this (assuming nobody every connects more than 9 monitors to the same system). diff --git a/src/nsfns.m b/src/nsfns.m index edcdb988f7..91ab17032c 100644 --- a/src/nsfns.m +++ b/src/nsfns.m @@ -2698,6 +2698,12 @@ and GNUstep implementations ("distributor-specific r= elease =20 #ifdef NS_IMPL_COCOA m->name =3D ns_screen_name (did); + if (m->name =3D=3D NULL) /* Fallback value. */ + { + char name[9]; + snprintf (name, sizeof(name), "DISPLAY%1d", i+1); + m->name =3D xstrdup (name); + } =20 { CGSize mms =3D CGDisplayScreenSize (did); From debbugs-submit-bounces@debbugs.gnu.org Sun Feb 24 16:09:26 2019 Received: (at 34516) by debbugs.gnu.org; 24 Feb 2019 21:09:26 +0000 Received: from localhost ([127.0.0.1]:50574 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gy11a-0001zk-3v for submit@debbugs.gnu.org; Sun, 24 Feb 2019 16:09:26 -0500 Received: from firebrick.maple.relay.mailchannels.net ([23.83.214.59]:47631) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gy11X-0001za-AK for 34516@debbugs.gnu.org; Sun, 24 Feb 2019 16:09:24 -0500 X-Sender-Id: dreamhost|x-authsender|jurta@jurta.org Received: from relay.mailchannels.net (localhost [127.0.0.1]) by relay.mailchannels.net (Postfix) with ESMTP id 803145E3F63 for <34516@debbugs.gnu.org>; Sun, 24 Feb 2019 21:09:21 +0000 (UTC) Received: from pdx1-sub0-mail-a51.g.dreamhost.com (unknown [100.96.19.140]) (Authenticated sender: dreamhost) by relay.mailchannels.net (Postfix) with ESMTPA id 4E4D75E3F5F for <34516@debbugs.gnu.org>; Sun, 24 Feb 2019 21:09:21 +0000 (UTC) X-Sender-Id: dreamhost|x-authsender|jurta@jurta.org Received: from pdx1-sub0-mail-a51.g.dreamhost.com (pop.dreamhost.com [64.90.62.162]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384) by 0.0.0.0:2500 (trex/5.16.3); Sun, 24 Feb 2019 21:09:21 +0000 X-MC-Relay: Neutral X-MailChannels-SenderId: dreamhost|x-authsender|jurta@jurta.org X-MailChannels-Auth-Id: dreamhost X-Wide-Eyed-Desert: 1217341f21b13ee6_1551042561390_413041478 X-MC-Loop-Signature: 1551042561389:1625875525 X-MC-Ingress-Time: 1551042561389 Received: from pdx1-sub0-mail-a51.g.dreamhost.com (localhost [127.0.0.1]) by pdx1-sub0-mail-a51.g.dreamhost.com (Postfix) with ESMTP id ED26A805F2 for <34516@debbugs.gnu.org>; Sun, 24 Feb 2019 13:09:20 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=linkov.net; h=from:to :subject:references:date:in-reply-to:message-id:mime-version :content-type; s=linkov.net; bh=XzHhcy1v2T8UDNn3h0ppmImuEks=; b= al3MCoUbXuoCbdgWcy9PjNTcKKyIcTYgio/97OdZkTH4X7BmA0MGNRB8TLDbiQs5 ia5eUBWohH7cY+YH3cV14kJakw+zKcEKmDstdMsM+fDADSGOQQcQMtX/1cEDTZrb gcqVMeF+AqZ4F/aHPiniJFWHA0Ze6czLr7a6Smy6VpQ= Received: from mail.jurta.org (m91-129-98-103.cust.tele2.ee [91.129.98.103]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: jurta@jurta.org) by pdx1-sub0-mail-a51.g.dreamhost.com (Postfix) with ESMTPSA id 21884805F1 for <34516@debbugs.gnu.org>; Sun, 24 Feb 2019 13:09:19 -0800 (PST) X-DH-BACKEND: pdx1-sub0-mail-a51 From: Juri Linkov To: 34516@debbugs.gnu.org Subject: Re: bug#34516: Multi-monitor frame sets Organization: LINKOV.NET References: <87bm3a74s4.fsf@mail.linkov.net> <87zhqsx115.fsf@mail.linkov.net> <87r2byw802.fsf@mail.linkov.net> Date: Sun, 24 Feb 2019 23:08:13 +0200 In-Reply-To: (Robert Pluim's message of "Sun, 24 Feb 2019 13:56:31 +0100") Message-ID: <874l8ski82.fsf@mail.linkov.net> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain X-VR-OUT-STATUS: OK X-VR-OUT-SCORE: 0 X-VR-OUT-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrgedutddrudeggddugeehucetufdoteggodetrfdotffvucfrrhhofhhilhgvmecuggftfghnshhusghstghrihgsvgdpffftgfetoffjqffuvfenuceurghilhhouhhtmecufedttdenucenucfjughrpefhvffuohhfffgjkfgfgggtsehttdertddtredtnecuhfhrohhmpefluhhrihcunfhinhhkohhvuceojhhurhhisehlihhnkhhovhdrnhgvtheqnecukfhppeeluddruddvledrleekrddutdefnecurfgrrhgrmhepmhhouggvpehsmhhtphdphhgvlhhopehmrghilhdrjhhurhhtrgdrohhrghdpihhnvghtpeeluddruddvledrleekrddutdefpdhrvghtuhhrnhdqphgrthhhpefluhhrihcunfhinhhkohhvuceojhhurhhisehlihhnkhhovhdrnhgvtheqpdhmrghilhhfrhhomhepjhhurhhisehlihhnkhhovhdrnhgvthdpnhhrtghpthhtohepfeegheduieesuggvsggsuhhgshdrghhnuhdrohhrghenucevlhhushhtvghrufhiiigvpedt X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 34516 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) >> Since on Windows 'display-monitor-attributes-list' returns such >> fake monitor names: >> >> \\.\DISPLAY1 >> \\.\DISPLAY2 >> >> on macOS it could return something like that or generate fake names >> from geometry like "1920x1080+0+0", "2560x1440+1920+16". > > I often have two identical monitors attached, so that would be > confusing :-) > > Something like this (assuming nobody every connects more than 9 > monitors to the same system). I hope at least the primary monitor always comes first in the list. From debbugs-submit-bounces@debbugs.gnu.org Sun Feb 24 16:09:31 2019 Received: (at 34516) by debbugs.gnu.org; 24 Feb 2019 21:09:31 +0000 Received: from localhost ([127.0.0.1]:50577 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gy11f-000202-Cn for submit@debbugs.gnu.org; Sun, 24 Feb 2019 16:09:31 -0500 Received: from quail.birch.relay.mailchannels.net ([23.83.209.151]:4906) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gy11c-0001zt-9r for 34516@debbugs.gnu.org; Sun, 24 Feb 2019 16:09:29 -0500 X-Sender-Id: dreamhost|x-authsender|jurta@jurta.org Received: from relay.mailchannels.net (localhost [127.0.0.1]) by relay.mailchannels.net (Postfix) with ESMTP id E758150272D; Sun, 24 Feb 2019 21:09:26 +0000 (UTC) Received: from pdx1-sub0-mail-a51.g.dreamhost.com (unknown [100.96.29.216]) (Authenticated sender: dreamhost) by relay.mailchannels.net (Postfix) with ESMTPA id A6E7D50205A; Sun, 24 Feb 2019 21:09:26 +0000 (UTC) X-Sender-Id: dreamhost|x-authsender|jurta@jurta.org Received: from pdx1-sub0-mail-a51.g.dreamhost.com (pop.dreamhost.com [64.90.62.162]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384) by 0.0.0.0:2500 (trex/5.16.3); Sun, 24 Feb 2019 21:09:26 +0000 X-MC-Relay: Neutral X-MailChannels-SenderId: dreamhost|x-authsender|jurta@jurta.org X-MailChannels-Auth-Id: dreamhost X-Grain-Harmony: 3dccaeee154a65a3_1551042566824_2662171245 X-MC-Loop-Signature: 1551042566824:2577248095 X-MC-Ingress-Time: 1551042566823 Received: from pdx1-sub0-mail-a51.g.dreamhost.com (localhost [127.0.0.1]) by pdx1-sub0-mail-a51.g.dreamhost.com (Postfix) with ESMTP id 48D16805F2; Sun, 24 Feb 2019 13:09:26 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=linkov.net; h=from:to:cc :subject:references:date:in-reply-to:message-id:mime-version :content-type; s=linkov.net; bh=/BLIKW53WmhYUfjVybN2zrSsqoY=; b= hFpV8ow0zKsVtnotAr0pxJs9PbA4LsK6b68kIJQ2Bo0tj9UomAQ+GixudxSP/tPD vCKaRi6uaYt4zWc1uF3zAgqO1Uty95aqtpM4ldCFbHTuwb8LrOGqWn2K73s05dzm TudsSGp8Qq7WTxMJuRE4OQPgPKTF+/0cCKw16PAcXTk= Received: from mail.jurta.org (m91-129-98-103.cust.tele2.ee [91.129.98.103]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: jurta@jurta.org) by pdx1-sub0-mail-a51.g.dreamhost.com (Postfix) with ESMTPSA id 9C762805DB; Sun, 24 Feb 2019 13:09:24 -0800 (PST) X-DH-BACKEND: pdx1-sub0-mail-a51 From: Juri Linkov To: martin rudalics Subject: Re: bug#34516: Multi-monitor frame sets Organization: LINKOV.NET References: <87bm3a74s4.fsf@mail.linkov.net> <83pnrpjb44.fsf@gnu.org> <8736okvlv2.fsf@mail.linkov.net> <86sgwkawnx.fsf@gmail.com> <87imxfv519.fsf@mail.linkov.net> <865ztf73x0.fsf@gmail.com> <87ftsip36g.fsf@mail.linkov.net> <87h8cuw7s6.fsf@mail.linkov.net> <5C72596F.9010707@gmx.at> Date: Sun, 24 Feb 2019 23:08:46 +0200 In-Reply-To: <5C72596F.9010707@gmx.at> (martin rudalics's message of "Sun, 24 Feb 2019 09:44:31 +0100") Message-ID: <8736ocki75.fsf@mail.linkov.net> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain X-VR-OUT-STATUS: OK X-VR-OUT-SCORE: -100 X-VR-OUT-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrgedutddrudeggddugeehucetufdoteggodetrfdotffvucfrrhhofhhilhgvmecuggftfghnshhusghstghrihgsvgdpffftgfetoffjqffuvfenuceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmnecujfgurhephffvufhofhffjgfkfgggtgesthdtredttdertdenucfhrhhomheplfhurhhiucfnihhnkhhovhcuoehjuhhriheslhhinhhkohhvrdhnvghtqeenucfkphepledurdduvdelrdelkedruddtfeenucfrrghrrghmpehmohguvgepshhmthhppdhhvghlohepmhgrihhlrdhjuhhrthgrrdhorhhgpdhinhgvthepledurdduvdelrdelkedruddtfedprhgvthhurhhnqdhprghthheplfhurhhiucfnihhnkhhovhcuoehjuhhriheslhhinhhkohhvrdhnvghtqedpmhgrihhlfhhrohhmpehjuhhriheslhhinhhkohhvrdhnvghtpdhnrhgtphhtthhopehruhgurghlihgtshesghhmgidrrghtnecuvehluhhsthgvrhfuihiivgepud X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 34516 Cc: 34516@debbugs.gnu.org, Andy Moreton X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) >>> You should always use the workarea values for displaying emacs frames. > > Much easier said than done. > >> Ok, this patch uses the workarea instead: > > AFAICT, the workarea may "move" from one display to another. So to be > on the safe side, code should always assume the presence of a workarea > even when there's none at the very moment. But I have no idea whether > the workarea size and position may change when moving from one display > to another. Then geometry is a safer option? From debbugs-submit-bounces@debbugs.gnu.org Sun Feb 24 17:12:12 2019 Received: (at submit) by debbugs.gnu.org; 24 Feb 2019 22:12:12 +0000 Received: from localhost ([127.0.0.1]:50624 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gy20J-0003T6-NY for submit@debbugs.gnu.org; Sun, 24 Feb 2019 17:12:11 -0500 Received: from eggs.gnu.org ([209.51.188.92]:36490) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gy20I-0003Sv-MC for submit@debbugs.gnu.org; Sun, 24 Feb 2019 17:12:10 -0500 Received: from lists.gnu.org ([209.51.188.17]:60353) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1gy20D-0007RW-Dp for submit@debbugs.gnu.org; Sun, 24 Feb 2019 17:12:05 -0500 Received: from eggs.gnu.org ([209.51.188.92]:50866) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gy20C-0006gB-Mk for bug-gnu-emacs@gnu.org; Sun, 24 Feb 2019 17:12:05 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_40,FREEMAIL_FROM, RDNS_NONE autolearn=disabled version=3.3.2 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gy20B-0007QS-RG for bug-gnu-emacs@gnu.org; Sun, 24 Feb 2019 17:12:04 -0500 Received: from [195.159.176.226] (port=48616 helo=blaine.gmane.org) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1gy20B-0007KR-Jq for bug-gnu-emacs@gnu.org; Sun, 24 Feb 2019 17:12:03 -0500 Received: from list by blaine.gmane.org with local (Exim 4.89) (envelope-from ) id 1gy1zz-000JxE-Th for bug-gnu-emacs@gnu.org; Sun, 24 Feb 2019 23:11:51 +0100 X-Injected-Via-Gmane: http://gmane.org/ To: bug-gnu-emacs@gnu.org From: Andy Moreton Subject: Re: bug#34516: Multi-monitor frame sets Date: Sun, 24 Feb 2019 22:11:44 +0000 Message-ID: <864l8srg4f.fsf@gmail.com> References: <87bm3a74s4.fsf@mail.linkov.net> <87zhqsx115.fsf@mail.linkov.net> <87r2byw802.fsf@mail.linkov.net> <874l8ski82.fsf@mail.linkov.net> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1.92 (windows-nt) Cancel-Lock: sha1:mX873nsjB0PuiPLPg74NU7VNdqY= X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 195.159.176.226 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Spam-Score: 1.0 (+) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.0 (/) On Sun 24 Feb 2019, Juri Linkov wrote: >>> Since on Windows 'display-monitor-attributes-list' returns such >>> fake monitor names: >>> >>> \\.\DISPLAY1 >>> \\.\DISPLAY2 >>> >>> on macOS it could return something like that or generate fake names >>> from geometry like "1920x1080+0+0", "2560x1440+1920+16". >> >> I often have two identical monitors attached, so that would be >> confusing :-) >> >> Something like this (assuming nobody every connects more than 9 >> monitors to the same system). > > I hope at least the primary monitor always comes first in the list. The `display-monitor-attributes-list' docstring states: "Return a list of physical monitor attributes on DISPLAY. DISPLAY can be a display name, a terminal name, or a frame. If DISPLAY is omitted or nil, it defaults to the selected frame’s display. Each element of the list represents the attributes of a physical monitor. The first element corresponds to the primary monitor." ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Why are you still guessing, instead of reading the documentation ? AndyM From debbugs-submit-bounces@debbugs.gnu.org Sun Feb 24 17:15:12 2019 Received: (at submit) by debbugs.gnu.org; 24 Feb 2019 22:15:12 +0000 Received: from localhost ([127.0.0.1]:50628 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gy23E-0003Xe-7J for submit@debbugs.gnu.org; Sun, 24 Feb 2019 17:15:12 -0500 Received: from eggs.gnu.org ([209.51.188.92]:37094) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gy23C-0003XN-HA for submit@debbugs.gnu.org; Sun, 24 Feb 2019 17:15:10 -0500 Received: from lists.gnu.org ([209.51.188.17]:48312) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1gy237-00021D-Ci for submit@debbugs.gnu.org; Sun, 24 Feb 2019 17:15:05 -0500 Received: from eggs.gnu.org ([209.51.188.92]:51475) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gy236-0007Ye-I8 for bug-gnu-emacs@gnu.org; Sun, 24 Feb 2019 17:15:05 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: * X-Spam-Status: No, score=1.6 required=5.0 tests=BAYES_50,FREEMAIL_FROM, RDNS_NONE autolearn=disabled version=3.3.2 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gy235-00020K-T0 for bug-gnu-emacs@gnu.org; Sun, 24 Feb 2019 17:15:04 -0500 Received: from [195.159.176.226] (port=57562 helo=blaine.gmane.org) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1gy235-0001zg-KK for bug-gnu-emacs@gnu.org; Sun, 24 Feb 2019 17:15:03 -0500 Received: from list by blaine.gmane.org with local (Exim 4.89) (envelope-from ) id 1gy233-000NGg-W6 for bug-gnu-emacs@gnu.org; Sun, 24 Feb 2019 23:15:01 +0100 X-Injected-Via-Gmane: http://gmane.org/ To: bug-gnu-emacs@gnu.org From: Andy Moreton Subject: Re: bug#34516: Multi-monitor frame sets Date: Sun, 24 Feb 2019 22:13:26 +0000 Message-ID: <86zhqkq1h5.fsf@gmail.com> References: <87bm3a74s4.fsf@mail.linkov.net> <83pnrpjb44.fsf@gnu.org> <8736okvlv2.fsf@mail.linkov.net> <86sgwkawnx.fsf@gmail.com> <87imxfv519.fsf@mail.linkov.net> <865ztf73x0.fsf@gmail.com> <87ftsip36g.fsf@mail.linkov.net> <87h8cuw7s6.fsf@mail.linkov.net> <5C72596F.9010707@gmx.at> Mime-Version: 1.0 Content-Type: text/plain User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1.92 (windows-nt) Cancel-Lock: sha1:hkQbDfhmawbgq9uvKGac0z6k9FE= X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 195.159.176.226 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Spam-Score: 1.0 (+) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.0 (/) On Sun 24 Feb 2019, martin rudalics wrote: >>> You should always use the workarea values for displaying emacs frames. > > Much easier said than done. > >> Ok, this patch uses the workarea instead: > > AFAICT, the workarea may "move" from one display to another. So to be > on the safe side, code should always assume the presence of a workarea > even when there's none at the very moment. But I have no idea whether > the workarea size and position may change when moving from one display > to another. Please explain what you mean here with an example, as what you have written makes no sense. AndyM From debbugs-submit-bounces@debbugs.gnu.org Mon Feb 25 05:13:59 2019 Received: (at 34516) by debbugs.gnu.org; 25 Feb 2019 10:13:59 +0000 Received: from localhost ([127.0.0.1]:50851 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gyDGp-0003ey-68 for submit@debbugs.gnu.org; Mon, 25 Feb 2019 05:13:59 -0500 Received: from mout.gmx.net ([212.227.15.19]:43509) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gyDGn-0003el-BK for 34516@debbugs.gnu.org; Mon, 25 Feb 2019 05:13:57 -0500 Received: from [192.168.1.101] ([46.125.250.50]) by mail.gmx.com (mrgmx002 [212.227.17.190]) with ESMTPSA (Nemesis) id 0LfjlS-1hLf3V1KtW-00pMIe; Mon, 25 Feb 2019 11:13:51 +0100 Message-ID: <5C73BFDB.9020703@gmx.at> Date: Mon, 25 Feb 2019 11:13:47 +0100 From: martin rudalics MIME-Version: 1.0 To: Andy Moreton , 34516@debbugs.gnu.org Subject: Re: bug#34516: Multi-monitor frame sets References: <87bm3a74s4.fsf@mail.linkov.net> <83pnrpjb44.fsf@gnu.org> <8736okvlv2.fsf@mail.linkov.net> <86sgwkawnx.fsf@gmail.com> <87imxfv519.fsf@mail.linkov.net> <865ztf73x0.fsf@gmail.com> <87ftsip36g.fsf@mail.linkov.net> <87h8cuw7s6.fsf@mail.linkov.net> <5C72596F.9010707@gmx.at> <86zhqkq1h5.fsf@gmail.com> In-Reply-To: <86zhqkq1h5.fsf@gmail.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Provags-ID: V03:K1:sfJ2xuUoqUPyZyLOPeq+UekvCQG4BCRbqdkod7d+34x9HCq3W4s 0Y673Eatuvz2DDcjzWcZNhacduOGLygQmEAe1Q6UIxzRrjPIluJzA4eUo3CE5RXWe98iqWb 4swb/uCnsYBb0KD6x+JN2RpIlOI3nDP26sdtnQulqdjs2laqt49tzJmrCu0G/DbR/gRjdPs gOhtoKvEuMtfwl3qbErlA== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V03:K0:uUjbNYNQeIY=:Osb70+hBsPv25LMSutaDAy u2RL7spDGWzU2Yx9tg1s0FtXWLKsaBKtZMhUUlnsIqK7l4/MUR6YOwQTeBfoKsRPJ688X/msO 7eYQUZ/A6jGTrFa+oEphk3C8KJ1IoqBld/Tk3TDttDW9r5cshKMeJZ7SGn8f5T2OS2QEQJnUE HVhGpiXP19ICSmrBnGd20FVyHBdKzR169pKzgClAIGLDNfRCG83+OywHHo/Fu2yJyRV6D8y6D //OinxFuQeKkBC8vxaGPXINPAVMC1oPuHWHaqnv1ubGl1P2EgXVkMEtxrf1MxLDDcytAoPApS FZ99lvB7sKmpHhCj8fOVUTpNs/AolAZBMBIuGCvkis8yiVnqQDLUcn6wBIQSmsvOTgLpzMcPh bi4oz0pT3VVCDhxtZ61tPwuffG65VRGmr3opd2cBP5RsAjpD4pL/QjooDuL7yQV5Bduy/yG7e sPecc5L/vvbfYUW7YFqoJGGjzo6DmKg/l7n3tZwaR6FgYuH6izElqO0WD5ukQoOcRdGkfhf9r 8xSzL79F1lJE6DUNhKCtcRTH4VJP9hZBP4zgeiNfYqTmbb0sAyNQ84WTTD2VWCOd4GtXQ64gw B8BcIsE/sCT6wukOfIpTrXJFYwtQThwI8Wvm08jBYrpp//hZ2D0bohypQyN8z0NbBSJN65u11 VqQBsOMbMpaRPDc1lccr/ZGq9AyPiwpVT+Qs7mmTlOKvffeS6riglUL+Qmolb5Vfo8pvDHwMn fk68hDcRvtPYGwSgusWUwovl8vEfbwjM3bY0lOcOXBdcYMCil8l8UsBP0LBS4iAXVX3PEu5nv Mtdjgr9xNfeP1XeLxObiMHVFHseaubwujJBCpbUTgZ9UsaroiqLCJg0ACjOBCn1Vt00STPufX 0RLWxhuBUrZ/MolibTNmHSyj7vU9akm5nCyxFWRmWey7ZHxPPQ1ibhSosLg/rz9b1aHOCD6g3 NFpyl2PfRwQ== X-Spam-Score: 0.8 (/) X-Debbugs-Envelope-To: 34516 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.2 (/) > Please explain what you mean here with an example, as what you have > written makes no sense. Since I don't use multiple monitors it might not make sense indeed. AFAIK usually only the primary monitor shows a taskbar, dock, or panel. Whether these can be shown on or moved to secondary monitors is system dependent. Hence IMO showing a frame on a secondary monitor should pessimistically assume that a non-workarea object can appear there even if 'display-monitor-attributes-list' says otherwise. If you are sure that this may not happen, just disregard what I said. martin From debbugs-submit-bounces@debbugs.gnu.org Mon Feb 25 10:01:22 2019 Received: (at submit) by debbugs.gnu.org; 25 Feb 2019 15:01:22 +0000 Received: from localhost ([127.0.0.1]:51642 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gyHkv-0004Ux-S0 for submit@debbugs.gnu.org; Mon, 25 Feb 2019 10:01:22 -0500 Received: from eggs.gnu.org ([209.51.188.92]:46367) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gyHku-0004Uk-0F for submit@debbugs.gnu.org; Mon, 25 Feb 2019 10:01:20 -0500 Received: from lists.gnu.org ([209.51.188.17]:42027) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1gyHkn-0001Kl-MQ for submit@debbugs.gnu.org; Mon, 25 Feb 2019 10:01:14 -0500 Received: from eggs.gnu.org ([209.51.188.92]:60733) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gyHke-0008EE-2o for bug-gnu-emacs@gnu.org; Mon, 25 Feb 2019 10:01:13 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: * X-Spam-Status: No, score=1.6 required=5.0 tests=BAYES_50,FREEMAIL_FROM, RDNS_NONE autolearn=disabled version=3.3.2 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gyHkU-00012P-FV for bug-gnu-emacs@gnu.org; Mon, 25 Feb 2019 10:01:04 -0500 Received: from [195.159.176.226] (port=47858 helo=blaine.gmane.org) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1gyHkU-00011m-83 for bug-gnu-emacs@gnu.org; Mon, 25 Feb 2019 10:00:54 -0500 Received: from list by blaine.gmane.org with local (Exim 4.89) (envelope-from ) id 1gyHkS-000y9q-U7 for bug-gnu-emacs@gnu.org; Mon, 25 Feb 2019 16:00:52 +0100 X-Injected-Via-Gmane: http://gmane.org/ To: bug-gnu-emacs@gnu.org From: Andy Moreton Subject: Re: bug#34516: Multi-monitor frame sets Date: Mon, 25 Feb 2019 15:00:39 +0000 Message-ID: References: <87bm3a74s4.fsf@mail.linkov.net> <83pnrpjb44.fsf@gnu.org> <8736okvlv2.fsf@mail.linkov.net> <86sgwkawnx.fsf@gmail.com> <87imxfv519.fsf@mail.linkov.net> <865ztf73x0.fsf@gmail.com> <87ftsip36g.fsf@mail.linkov.net> <87h8cuw7s6.fsf@mail.linkov.net> <5C72596F.9010707@gmx.at> <86zhqkq1h5.fsf@gmail.com> <5C73BFDB.9020703@gmx.at> Mime-Version: 1.0 Content-Type: text/plain User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1.92 (windows-nt) Cancel-Lock: sha1:vv52V9xcFnsBu7nnIRuU9xUumAI= X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 195.159.176.226 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Spam-Score: 1.0 (+) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.0 (/) On Mon 25 Feb 2019, martin rudalics wrote: >> Please explain what you mean here with an example, as what you have >> written makes no sense. > > Since I don't use multiple monitors it might not make sense indeed. > AFAIK usually only the primary monitor shows a taskbar, dock, or > panel. Whether these can be shown on or moved to secondary monitors > is system dependent. Hence IMO showing a frame on a secondary monitor > should pessimistically assume that a non-workarea object can appear > there even if 'display-monitor-attributes-list' says otherwise. If > you are sure that this may not happen, just disregard what I said. The workarea should always be the same size or smaller than the geometry on each monitor, and this information (while system dependent) should always be accurate when display-monitor-attributes-list is called. However, it is entirely possible that the user reconfigures the taskbar, dock panel etc. between a call to display-monitor-attributes-list and using the information it returns. AndyM From debbugs-submit-bounces@debbugs.gnu.org Mon Feb 25 16:13:22 2019 Received: (at 34516-done) by debbugs.gnu.org; 25 Feb 2019 21:13:22 +0000 Received: from localhost ([127.0.0.1]:51799 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gyNYw-00058w-HJ for submit@debbugs.gnu.org; Mon, 25 Feb 2019 16:13:22 -0500 Received: from ostrich.birch.relay.mailchannels.net ([23.83.209.138]:58462) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gyNYt-00058n-OB for 34516-done@debbugs.gnu.org; Mon, 25 Feb 2019 16:13:21 -0500 X-Sender-Id: dreamhost|x-authsender|jurta@jurta.org Received: from relay.mailchannels.net (localhost [127.0.0.1]) by relay.mailchannels.net (Postfix) with ESMTP id 5D7065E2DAC; Mon, 25 Feb 2019 21:13:18 +0000 (UTC) Received: from pdx1-sub0-mail-a54.g.dreamhost.com (unknown [100.96.28.213]) (Authenticated sender: dreamhost) by relay.mailchannels.net (Postfix) with ESMTPA id 170805E3AAA; Mon, 25 Feb 2019 21:13:18 +0000 (UTC) X-Sender-Id: dreamhost|x-authsender|jurta@jurta.org Received: from pdx1-sub0-mail-a54.g.dreamhost.com (pop.dreamhost.com [64.90.62.162]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384) by 0.0.0.0:2500 (trex/5.16.3); Mon, 25 Feb 2019 21:13:18 +0000 X-MC-Relay: Neutral X-MailChannels-SenderId: dreamhost|x-authsender|jurta@jurta.org X-MailChannels-Auth-Id: dreamhost X-Cooperative-Quick: 69866017283d99f6_1551129198195_1044474057 X-MC-Loop-Signature: 1551129198195:4121664590 X-MC-Ingress-Time: 1551129198195 Received: from pdx1-sub0-mail-a54.g.dreamhost.com (localhost [127.0.0.1]) by pdx1-sub0-mail-a54.g.dreamhost.com (Postfix) with ESMTP id C00FD81A6A; Mon, 25 Feb 2019 13:13:17 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=linkov.net; h=from:to:cc :subject:references:date:in-reply-to:message-id:mime-version :content-type:content-transfer-encoding; s=linkov.net; bh=ZWZgCE GqNqm3dmB94Orz5Ktxq/U=; b=HxF//2iMhctS+/sCtmAW+Ya8UU1RQZsP37ZPOq U2LFSedTjLwIaJFZZje2/zfU3Tk3RiAMuYZZysVKlSAjE13OOAkTOqGA+jYv6REf lwwRHeYLxWuN0/l9MnBZ+cS7/bAH8CrcG0XiwqDwwt5o1NZMjAfEPv0nFoHjX79s IwLJg= Received: from mail.jurta.org (m91-129-98-103.cust.tele2.ee [91.129.98.103]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: jurta@jurta.org) by pdx1-sub0-mail-a54.g.dreamhost.com (Postfix) with ESMTPSA id EC40881A53; Mon, 25 Feb 2019 13:13:15 -0800 (PST) X-DH-BACKEND: pdx1-sub0-mail-a54 From: Juri Linkov To: Andy Moreton Subject: Re: bug#34516: Multi-monitor frame sets Organization: LINKOV.NET References: <87bm3a74s4.fsf@mail.linkov.net> <87zhqsx115.fsf@mail.linkov.net> <87r2byw802.fsf@mail.linkov.net> <874l8ski82.fsf@mail.linkov.net> <864l8srg4f.fsf@gmail.com> Date: Mon, 25 Feb 2019 23:11:47 +0200 In-Reply-To: <864l8srg4f.fsf@gmail.com> (Andy Moreton's message of "Sun, 24 Feb 2019 22:11:44 +0000") Message-ID: <875zt7efos.fsf@mail.linkov.net> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 X-VR-OUT-STATUS: OK X-VR-OUT-SCORE: -100 X-VR-OUT-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrgedutddrudejgddugeekucetufdoteggodetrfdotffvucfrrhhofhhilhgvmecuggftfghnshhusghstghrihgsvgdpffftgfetoffjqffuvfenuceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmnecujfgurhephffvufhofhffjgfkfgggtgfgsehtkeertddtreejnecuhfhrohhmpefluhhrihcunfhinhhkohhvuceojhhurhhisehlihhnkhhovhdrnhgvtheqnecukfhppeeluddruddvledrleekrddutdefnecurfgrrhgrmhepmhhouggvpehsmhhtphdphhgvlhhopehmrghilhdrjhhurhhtrgdrohhrghdpihhnvghtpeeluddruddvledrleekrddutdefpdhrvghtuhhrnhdqphgrthhhpefluhhrihcunfhinhhkohhvuceojhhurhhisehlihhnkhhovhdrnhgvtheqpdhmrghilhhfrhhomhepjhhurhhisehlihhnkhhovhdrnhgvthdpnhhrtghpthhtoheprghnughrvgifjhhmohhrvghtohhnsehgmhgrihhlrdgtohhmnecuvehluhhsthgvrhfuihiivgeptd Content-Transfer-Encoding: quoted-printable X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 34516-done Cc: 34516-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) >>>> Since on Windows 'display-monitor-attributes-list' returns such >>>> fake monitor names: >>>> >>>> \\.\DISPLAY1 >>>> \\.\DISPLAY2 >>>> >>>> on macOS it could return something like that or generate fake names >>>> from geometry like "1920x1080+0+0", "2560x1440+1920+16". >>> >>> I often have two identical monitors attached, so that would be >>> confusing :-) >>> >>> Something like this (assuming nobody every connects more than 9 >>> monitors to the same system). >> >> I hope at least the primary monitor always comes first in the list. > > The `display-monitor-attributes-list' docstring states: > > "Return a list of physical monitor attributes on DISPLAY. > DISPLAY can be a display name, a terminal name, or a frame. > If DISPLAY is omitted or nil, it defaults to the selected frame=E2=80=99= s display. > Each element of the list represents the attributes of a physical > monitor. The first element corresponds to the primary monitor." > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ > > Why are you still guessing, instead of reading the documentation ? Right, the documentation should be the ultimate source of truth. So I committed the patch to master. From debbugs-submit-bounces@debbugs.gnu.org Sat Mar 02 15:54:36 2019 Received: (at 34516) by debbugs.gnu.org; 2 Mar 2019 20:54:36 +0000 Received: from localhost ([127.0.0.1]:57907 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1h0BeW-0003ZN-Ed for submit@debbugs.gnu.org; Sat, 02 Mar 2019 15:54:36 -0500 Received: from mail-wr1-f48.google.com ([209.85.221.48]:45524) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1h0BeT-0003Z9-Ni for 34516@debbugs.gnu.org; Sat, 02 Mar 2019 15:54:34 -0500 Received: by mail-wr1-f48.google.com with SMTP id w17so1386377wrn.12 for <34516@debbugs.gnu.org>; Sat, 02 Mar 2019 12:54:33 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=20161025; h=sender:date:from:to:cc:subject:message-id:references:mime-version :content-disposition:content-transfer-encoding:in-reply-to :user-agent; bh=l9f/XDdx7cnhg2RsSih/zRxAPDfsALeFh+pE8Jsl6so=; b=icXUQHPCbUEefeav56t4XfajeyxqTrFKWDhRpW0qsQ9Rtzt7EuDC3+1C56wH5ufDFr PQPsMJl2CcXeH5Z2+aBWUlL28hoHV0csUDLOl4UImPksFERvcdXf0/rVVsH3/DRbXKUQ zTSWZAKftRPOtrx8gktiw66SNL/XRkmYTQl7mKcpQXQBXzet/S0+Q51/WWEM33QdF6AK fLo1nAGIcRk9J1Xd+uI2Y8kObDVnrvkEO8zxQgz0JkYoWX7amadoatbe4puOYYYXk0bX jsnGrsEjewLSjehMj8j0j/IF5xQ+t2RcUztkOvkJ/do+7HAPeU7OpxkFTgLenda7X01i L0Ig== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:date:from:to:cc:subject:message-id :references:mime-version:content-disposition :content-transfer-encoding:in-reply-to:user-agent; bh=l9f/XDdx7cnhg2RsSih/zRxAPDfsALeFh+pE8Jsl6so=; b=egxeBXuct6JYpSsBdTSpy3H7NIuhu48DzL/TL8dvNTg5eKlWHwjPKqR4T9HCQhLt3O qqA8HmpjWpQ6EiuLn73rWtRnG/5JmfE3IGu9lycF2Zl4dwRg+xlgLJtdMVTKjDuSTUyT odlvKJoeQ5oii2QcSwxCdPEr272HMzpnpK7OFkgO9UTSRuUkNrt3p9Vloc01M+hjGcA6 CoN4abbah4PzLlMogHV0cuVYvYFzOuHJQDk1HS74ffArXhj8TJVRbXol5Xo043UlTzP5 K3juS/W91UpQLn4fNeVm+x4Ym7iRsryO8rK/g4QpN7TES+GxEIfnnoofIunErv5LWtE8 aDdQ== X-Gm-Message-State: APjAAAVTfib8zVvTURAxOV6DTZrSJyPOlJc+hwJLjJyMXBlwdo7rW3Vp UjYNWQkO9HZ77EyQ/3WRzQI= X-Google-Smtp-Source: APXvYqyzrrCVTiujNXg/D9youv+VC3fHWlWPwIDMiF5nauDb6gk574lO7xt0j27jWw/xL3E4BGBa3g== X-Received: by 2002:adf:ee45:: with SMTP id w5mr7501241wro.204.1551560067735; Sat, 02 Mar 2019 12:54:27 -0800 (PST) Received: from breton.holly.idiocy.org (ip6-2001-08b0-03f8-8129-b45d-8a12-0e92-554b.holly.idiocy.org. [2001:8b0:3f8:8129:b45d:8a12:e92:554b]) by smtp.gmail.com with ESMTPSA id z8sm1564063wmi.28.2019.03.02.12.54.26 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 02 Mar 2019 12:54:26 -0800 (PST) Date: Sat, 2 Mar 2019 20:54:24 +0000 From: Alan Third To: Robert Pluim Subject: Re: bug#34516: Multi-monitor frame sets Message-ID: <20190302205424.GB20712@breton.holly.idiocy.org> References: <87bm3a74s4.fsf@mail.linkov.net> <87zhqsx115.fsf@mail.linkov.net> <87r2byw802.fsf@mail.linkov.net> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: Mutt/1.11.2 (2019-01-07) X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 34516 Cc: 34516@debbugs.gnu.org, Juri Linkov X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) On Sun, Feb 24, 2019 at 01:56:31PM +0100, Robert Pluim wrote: > Juri Linkov writes: > > > Since on Windows 'display-monitor-attributes-list' returns such > > fake monitor names: > > > > \\.\DISPLAY1 > > \\.\DISPLAY2 > > > > on macOS it could return something like that or generate fake names > > from geometry like "1920x1080+0+0", "2560x1440+1920+16". > > I often have two identical monitors attached, so that would be > confusing :-) I’m a bit late to this conversation, sorry. I’d hope that the geometry would contain the origin of the monitor in the overall screen ‘space’, so the primary monitor would have 0, 0, and one to the left would have -1920, 0, or something. So it might not be too confusing. > Something like this (assuming nobody every connects more than 9 > monitors to the same system). > > diff --git a/src/nsfns.m b/src/nsfns.m > index edcdb988f7..91ab17032c 100644 > --- a/src/nsfns.m > +++ b/src/nsfns.m > @@ -2698,6 +2698,12 @@ and GNUstep implementations ("distributor-specific release > > #ifdef NS_IMPL_COCOA > m->name = ns_screen_name (did); > + if (m->name == NULL) /* Fallback value. */ > + { > + char name[9]; > + snprintf (name, sizeof(name), "DISPLAY%1d", i+1); > + m->name = xstrdup (name); > + } > > { > CGSize mms = CGDisplayScreenSize (did); This appears to be the only place that ns_screen_name is called, so it would probably be better to put this code in it and make ns_screen_name return a name no matter what. Also, it might be worth considering using the ‘did’ value instead of ‘i’. As far as I can tell it’s just a uint32_t, and should stay the same as long as the system isn’t rebooted. -- Alan Third From debbugs-submit-bounces@debbugs.gnu.org Sat Mar 02 18:57:55 2019 Received: (at submit) by debbugs.gnu.org; 2 Mar 2019 23:57:55 +0000 Received: from localhost ([127.0.0.1]:57959 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1h0EVv-0007pH-59 for submit@debbugs.gnu.org; Sat, 02 Mar 2019 18:57:55 -0500 Received: from eggs.gnu.org ([209.51.188.92]:35728) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1h0EVs-0007p4-VK for submit@debbugs.gnu.org; Sat, 02 Mar 2019 18:57:53 -0500 Received: from lists.gnu.org ([209.51.188.17]:42981) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1h0EVn-0004MT-Ju for submit@debbugs.gnu.org; Sat, 02 Mar 2019 18:57:47 -0500 Received: from eggs.gnu.org ([209.51.188.92]:50110) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1h0EVm-0001vy-Fs for bug-gnu-emacs@gnu.org; Sat, 02 Mar 2019 18:57:47 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: * X-Spam-Status: No, score=1.6 required=5.0 tests=BAYES_50,FREEMAIL_FROM, RDNS_NONE,URIBL_BLOCKED autolearn=disabled version=3.3.2 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1h0EVl-0004IM-GD for bug-gnu-emacs@gnu.org; Sat, 02 Mar 2019 18:57:46 -0500 Received: from [195.159.176.226] (port=55328 helo=blaine.gmane.org) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1h0EVl-0004EH-4y for bug-gnu-emacs@gnu.org; Sat, 02 Mar 2019 18:57:45 -0500 Received: from list by blaine.gmane.org with local (Exim 4.89) (envelope-from ) id 1h0EVj-0002Hv-2D for bug-gnu-emacs@gnu.org; Sun, 03 Mar 2019 00:57:43 +0100 X-Injected-Via-Gmane: http://gmane.org/ To: bug-gnu-emacs@gnu.org From: Andy Moreton Subject: Re: bug#34516: Multi-monitor frame sets Date: Sat, 02 Mar 2019 23:57:35 +0000 Message-ID: <86r2bosuc0.fsf@gmail.com> References: <87bm3a74s4.fsf@mail.linkov.net> <87zhqsx115.fsf@mail.linkov.net> <87r2byw802.fsf@mail.linkov.net> <20190302205424.GB20712@breton.holly.idiocy.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (windows-nt) Cancel-Lock: sha1:SvhbTlGyIzu63Uiuhamhr7QyJ78= X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 195.159.176.226 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Spam-Score: 1.0 (+) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.0 (/) On Sat 02 Mar 2019, Alan Third wrote: > On Sun, Feb 24, 2019 at 01:56:31PM +0100, Robert Pluim wrote: >> Juri Linkov writes: >> >> > Since on Windows 'display-monitor-attributes-list' returns such >> > fake monitor names: >> > >> > \\.\DISPLAY1 >> > \\.\DISPLAY2 These names are *not* fake: they are the name of the underlying device that represents the monitor. >> > on macOS it could return something like that or generate fake names >> > from geometry like "1920x1080+0+0", "2560x1440+1920+16". It would be more usefulr to use the underlying device name, like on other platforms. > I’m a bit late to this conversation, sorry. > > I’d hope that the geometry would contain the origin of the monitor in > the overall screen ‘space’, so the primary monitor would have 0, 0, > and one to the left would have -1920, 0, or something. So it might not > be too confusing. Yes, that is exactly how it works: the geometry shows where the monitor is positioned in the overall coordinate system, and the workspace shows the area on that monitor that is available to display frames (i.e. not occupied by system tray toolbar, dock etc). >> Something like this (assuming nobody every connects more than 9 >> monitors to the same system). Not a sound assumption: why add an arbitrary limitation when there is no need to ? Allow an arbitrary number of monitors, since there is no reason to restrict it. >> >> diff --git a/src/nsfns.m b/src/nsfns.m >> index edcdb988f7..91ab17032c 100644 >> --- a/src/nsfns.m >> +++ b/src/nsfns.m >> @@ -2698,6 +2698,12 @@ and GNUstep implementations ("distributor-specific release >> >> #ifdef NS_IMPL_COCOA >> m->name = ns_screen_name (did); >> + if (m->name == NULL) /* Fallback value. */ >> + { >> + char name[9]; >> + snprintf (name, sizeof(name), "DISPLAY%1d", i+1); >> + m->name = xstrdup (name); >> + } >> >> { >> CGSize mms = CGDisplayScreenSize (did); > > This appears to be the only place that ns_screen_name is called, so it > would probably be better to put this code in it and make > ns_screen_name return a name no matter what. > > Also, it might be worth considering using the ‘did’ value instead of > ‘i’. As far as I can tell it’s just a uint32_t, and should stay the > same as long as the system isn’t rebooted. Is the did value reused if monitors are dynamically plugged and unplugged ? This may happen when using a laptop with docking stations and external monitors. AndyM From debbugs-submit-bounces@debbugs.gnu.org Sun Mar 03 06:43:35 2019 Received: (at 34516) by debbugs.gnu.org; 3 Mar 2019 11:43:35 +0000 Received: from localhost ([127.0.0.1]:58111 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1h0PWo-0001W2-Sb for submit@debbugs.gnu.org; Sun, 03 Mar 2019 06:43:35 -0500 Received: from mail-wr1-f45.google.com ([209.85.221.45]:46831) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1h0PWn-0001Vs-9c for 34516@debbugs.gnu.org; Sun, 03 Mar 2019 06:43:33 -0500 Received: by mail-wr1-f45.google.com with SMTP id i16so2394528wrs.13 for <34516@debbugs.gnu.org>; Sun, 03 Mar 2019 03:43:33 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=20161025; h=sender:date:from:to:cc:subject:message-id:references:mime-version :content-disposition:content-transfer-encoding:in-reply-to :user-agent; bh=cdcB2Hdj+EwRydvyImyKbETF3F7vszzSo215aSifMGs=; b=KFq7VZ57t56Y15J9EhIlUXJ+fCVj5VMr66osrkWNLdgxXuYz1D3EoFO0bBreHUQCEJ vEDjaX5IocLsEsY4Kq5PpzYwN+44/gLRkLPQHjX1SVaoIXskvDZGjKUzKhp8b+bzAXIj LEK2/8ApSMF/ujDmxgrDsvAzLRT/M3c6aXvngqVMaTj0RKLYaujjQBF6aBCxQIf2zTG6 sR3H1YK4LbyTKz4BT4i99KSNDntYFnFU2Jemew/i2VzIff8g3DffsL7fYXO69e7KgyYJ srIpKhzNgT/FQKAauqALGZZoNwBPbUaYvir3AXjMzFet0uc8t/Q5cemrC5TnQDxuGzvT o6Ew== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:date:from:to:cc:subject:message-id :references:mime-version:content-disposition :content-transfer-encoding:in-reply-to:user-agent; bh=cdcB2Hdj+EwRydvyImyKbETF3F7vszzSo215aSifMGs=; b=gDzcfgW5p0TI17Hkj3jT0E8RSyuREhf7fTr9cY2ofV+H/HNrvoI8aJ3N56WYu6hc83 6SKfLDCrVDPfgEaWkdmcg7ZT9GZIq5tZsnddpAydWo9MzdZDnigP2JOS3wtUI/dnsFap OIYuvTV5/w8kZ1m2AWpsPba0ZS7VLJXEFWYK8QRn9b9Fx+X7Ydrd17u0F9gOW/wd04cd 0x6ubG80tWJ08/URmxAMRJZAVZLOCaPUsfrrwOKeDFcE3ojfwzRFUSsW82c2kZZ5qgcv rC0CtVVWuE1+8q3zmBGAkMn/BzU8+/Ai2V9LxnLsltx8GBpXY3A6oTF1/xDONH5a8BIi T8vQ== X-Gm-Message-State: APjAAAVsC87tfW7wPtkN1L1W7SLadTxrkKP82c4uCcDQRgU/SRdo4v+E 6NGxu5z6JTUvLV6QMumsF20= X-Google-Smtp-Source: APXvYqyFh9tCQ0W1hsy2L8iXUgCwELI4wtR3pvGHc1M5xAQ/vgWb3Y0W1gBD/V4LiOIs40ynQYEcrA== X-Received: by 2002:a5d:650d:: with SMTP id x13mr9434796wru.119.1551613407143; Sun, 03 Mar 2019 03:43:27 -0800 (PST) Received: from breton.holly.idiocy.org (ip6-2001-08b0-03f8-8129-a434-efbf-3a29-731e.holly.idiocy.org. [2001:8b0:3f8:8129:a434:efbf:3a29:731e]) by smtp.gmail.com with ESMTPSA id y140sm13316963wmd.18.2019.03.03.03.43.25 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 03 Mar 2019 03:43:26 -0800 (PST) Date: Sun, 3 Mar 2019 11:43:24 +0000 From: Alan Third To: Andy Moreton Subject: Re: bug#34516: Multi-monitor frame sets Message-ID: <20190303114324.GA49402@breton.holly.idiocy.org> References: <87bm3a74s4.fsf@mail.linkov.net> <87zhqsx115.fsf@mail.linkov.net> <87r2byw802.fsf@mail.linkov.net> <20190302205424.GB20712@breton.holly.idiocy.org> <86r2bosuc0.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <86r2bosuc0.fsf@gmail.com> User-Agent: Mutt/1.11.2 (2019-01-07) X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 34516 Cc: 34516@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) On Sat, Mar 02, 2019 at 11:57:35PM +0000, Andy Moreton wrote: > On Sat 02 Mar 2019, Alan Third wrote: > > > On Sun, Feb 24, 2019 at 01:56:31PM +0100, Robert Pluim wrote: > >> Juri Linkov writes: > >> > >> > on macOS it could return something like that or generate fake names > >> > from geometry like "1920x1080+0+0", "2560x1440+1920+16". > > It would be more usefulr to use the underlying device name, like on other > platforms. It doesn’t look like macOS gives displays any sort of human readable name. The closest I can find is the monitor’s make and model, which appears to be lifted directly from the device driver. I expect if you have two identical monitors then it will be the same for both. > > Also, it might be worth considering using the ‘did’ value instead of > > ‘i’. As far as I can tell it’s just a uint32_t, and should stay the > > same as long as the system isn’t rebooted. > > Is the did value reused if monitors are dynamically plugged and > unplugged ? This may happen when using a laptop with docking > stations and external monitors. The documentation implies it may remain the same for the same monitor, but then again, maybe not. It’s not very clear. It shouldn’t be the same for two different monitors, though. -- Alan Third From debbugs-submit-bounces@debbugs.gnu.org Mon Mar 04 04:52:21 2019 Received: (at 34516) by debbugs.gnu.org; 4 Mar 2019 09:52:21 +0000 Received: from localhost ([127.0.0.1]:58958 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1h0kGj-0002D3-Ig for submit@debbugs.gnu.org; Mon, 04 Mar 2019 04:52:21 -0500 Received: from mail-wm1-f49.google.com ([209.85.128.49]:36972) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1h0kGh-0002Cq-Al for 34516@debbugs.gnu.org; Mon, 04 Mar 2019 04:52:20 -0500 Received: by mail-wm1-f49.google.com with SMTP id x10so3980200wmg.2 for <34516@debbugs.gnu.org>; Mon, 04 Mar 2019 01:52:19 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:references:mail-copies-to:gmane-reply-to-list :date:in-reply-to:message-id:mime-version:content-transfer-encoding; bh=KSrv1al+ueU289X+v0AAKpjtcLD4WsgWjNeDF6FKwng=; b=TABCn3ZJk9/hD34MRTBDK69z5Rhv+BU2fK6dcjUd42fMsIan+tqGwbcnpdlckzaILf 2+pRprAaStQA9AHiHi1m28MnIVYJ724Q73Sws2SAd0Fmzn4YS/ef/GTFmzYlrQhymKef sO7Y6bBdTIkdMlOfw6BGbyL1Y9bDnZI1anAOldsHm7lJRY+ASafJzZHkjmTvRnOvoLXh R7JPcL6drOwQYUWOBBV9RkToYmzB+7UbRLaHlySDl077QUI7SVJVOozLkeKZ7hSeukiZ nV1lfDWoCFrEPrL/lXJJ0LWrFYifgxFn1Ua3s0aOhQt9yWeDLGfV2UNVC3PC01SkjBih cI4Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references:mail-copies-to :gmane-reply-to-list:date:in-reply-to:message-id:mime-version :content-transfer-encoding; bh=KSrv1al+ueU289X+v0AAKpjtcLD4WsgWjNeDF6FKwng=; b=hntOxEIs9WgYU5HGBUeHCmiD6YiGm5CfWj2I5ANQmJtaLwukgzwCCPYqH6FIDtdC0N uGG96iLuWdRMo1qaIYUV0eY4PxsBkgCUNQrqC65x8vEaZjSU4+I4Zy56t/XtdSvJbULw 55kLY9FbqdH03CHdSoTprR8TPhrzKvrbU4iHWwMwGA7eKxcpavesZYZG93st0DCfB430 IpJOWxM/1ZODyZ2ytU/7PosjIbgfohhIGt8iFA7k2mI2hd+shqHCiNp+uyiJgVWUOoqD rFLpw+YtfLBGuGMIGjgYkd/9CnFN4NNwGR8IyC2zxCoJMuYnNF8LY9IswBRWKj/RDzoF EVHQ== X-Gm-Message-State: AHQUAuYawSb56nmMTYV8H6aMWqCwAFx5vEFdnrIEDVwXsLkuIAO4xuQb /C9PceR4Wi4cQ7P5T+yeQq5cEY7e X-Google-Smtp-Source: AHgI3IYrDyUv1qEWLaTqfJaAfjTkYfwUCx7+anBoOe8YshbNiKtPmeuhakuSUvDQsEewZNOZR0mOIQ== X-Received: by 2002:a7b:c84b:: with SMTP id c11mr10445826wml.108.1551693132725; Mon, 04 Mar 2019 01:52:12 -0800 (PST) Received: from rpluim-mac ([2a01:e34:ecfc:a860:a488:ec6d:43ee:43be]) by smtp.gmail.com with ESMTPSA id a131sm1041243wmh.34.2019.03.04.01.52.10 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Mon, 04 Mar 2019 01:52:11 -0800 (PST) From: Robert Pluim To: Alan Third Subject: Re: bug#34516: Multi-monitor frame sets References: <87bm3a74s4.fsf@mail.linkov.net> <87zhqsx115.fsf@mail.linkov.net> <87r2byw802.fsf@mail.linkov.net> <20190302205424.GB20712@breton.holly.idiocy.org> <86r2bosuc0.fsf@gmail.com> <20190303114324.GA49402@breton.holly.idiocy.org> X-Debbugs-No-Ack: yes Mail-Copies-To: never Gmane-Reply-To-List: yes Date: Mon, 04 Mar 2019 10:52:09 +0100 In-Reply-To: <20190303114324.GA49402@breton.holly.idiocy.org> (Alan Third's message of "Sun, 3 Mar 2019 11:43:24 +0000") Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 34516 Cc: 34516@debbugs.gnu.org, Andy Moreton X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Alan Third writes: > On Sat, Mar 02, 2019 at 11:57:35PM +0000, Andy Moreton wrote: >> On Sat 02 Mar 2019, Alan Third wrote: >>=20 >> > On Sun, Feb 24, 2019 at 01:56:31PM +0100, Robert Pluim wrote: >> >> Juri Linkov writes: >> >>=20 >> >> > on macOS it could return something like that or generate fake names >> >> > from geometry like "1920x1080+0+0", "2560x1440+1920+16". >>=20 >> It would be more usefulr to use the underlying device name, like on other >> platforms. > > It doesn=E2=80=99t look like macOS gives displays any sort of human reada= ble > name. The closest I can find is the monitor=E2=80=99s make and model, whi= ch > appears to be lifted directly from the device driver. I expect if you > have two identical monitors then it will be the same for both. > At least in 'system preferences/display', when you have two identical monit= ors attached, they're called something like 'DELL 1234X' and 'DELL 1234X (2)' (I can=CA=BCt test that right now). If you can show me code on how to get those names in 10.14, I can confirm. That would be better than making up names. >> > Also, it might be worth considering using the =E2=80=98did=E2=80=99 va= lue instead of >> > =E2=80=98i=E2=80=99. As far as I can tell it=E2=80=99s just a uint32_t= , and should stay the >> > same as long as the system isn=E2=80=99t rebooted. >>=20 >> Is the did value reused if monitors are dynamically plugged and >> unplugged ? This may happen when using a laptop with docking >> stations and external monitors. > > The documentation implies it may remain the same for the same monitor, > but then again, maybe not. It=E2=80=99s not very clear. > > It shouldn=E2=80=99t be the same for two different monitors, though. I can respin to use the did, if there=CA=BCs no better alternative. Robert From debbugs-submit-bounces@debbugs.gnu.org Mon Mar 04 08:57:03 2019 Received: (at submit) by debbugs.gnu.org; 4 Mar 2019 13:57:03 +0000 Received: from localhost ([127.0.0.1]:59241 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1h0o5W-0003zq-Nh for submit@debbugs.gnu.org; Mon, 04 Mar 2019 08:57:02 -0500 Received: from eggs.gnu.org ([209.51.188.92]:55683) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1h0o5U-0003zJ-UE for submit@debbugs.gnu.org; Mon, 04 Mar 2019 08:57:01 -0500 Received: from lists.gnu.org ([209.51.188.17]:55670) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1h0o5P-0004MO-LK for submit@debbugs.gnu.org; Mon, 04 Mar 2019 08:56:55 -0500 Received: from eggs.gnu.org ([209.51.188.92]:41831) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1h0o5O-0001Rm-Rs for bug-gnu-emacs@gnu.org; Mon, 04 Mar 2019 08:56:55 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: * X-Spam-Status: No, score=1.6 required=5.0 tests=BAYES_50,FREEMAIL_FROM, RDNS_NONE,URIBL_BLOCKED autolearn=disabled version=3.3.2 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1h0o5O-0004KJ-1X for bug-gnu-emacs@gnu.org; Mon, 04 Mar 2019 08:56:54 -0500 Received: from [195.159.176.226] (port=57210 helo=blaine.gmane.org) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1h0o5N-0004Hk-Pt for bug-gnu-emacs@gnu.org; Mon, 04 Mar 2019 08:56:53 -0500 Received: from list by blaine.gmane.org with local (Exim 4.89) (envelope-from ) id 1h0o5K-000lEL-Js for bug-gnu-emacs@gnu.org; Mon, 04 Mar 2019 14:56:50 +0100 X-Injected-Via-Gmane: http://gmane.org/ To: bug-gnu-emacs@gnu.org From: Andy Moreton Subject: Re: bug#34516: Multi-monitor frame sets Date: Mon, 04 Mar 2019 13:56:42 +0000 Message-ID: References: <87bm3a74s4.fsf@mail.linkov.net> <87zhqsx115.fsf@mail.linkov.net> <87r2byw802.fsf@mail.linkov.net> <20190302205424.GB20712@breton.holly.idiocy.org> <86r2bosuc0.fsf@gmail.com> <20190303114324.GA49402@breton.holly.idiocy.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (windows-nt) Cancel-Lock: sha1:GwMziAqBiJYZ/srzzkvah7e2WgU= X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 195.159.176.226 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Spam-Score: 1.3 (+) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: On Mon 04 Mar 2019, Robert Pluim wrote: > Alan Third writes: > >> On Sat, Mar 02, 2019 at 11:57:35PM +0000, Andy Moreton wrote: >>> On Sat 02 Mar 2019, Alan Third wrote: >>> >>> > On Sun, Feb 24, 2019 at 01:56:31PM +0100, Robert Pluim wro [...] Content analysis details: (1.3 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- 0.0 URIBL_BLOCKED ADMINISTRATOR NOTICE: The query to URIBL was blocked. See http://wiki.apache.org/spamassassin/DnsBlocklists#dnsbl-block for more information. [URIs: idiocy.org] 1.0 FORGED_GMAIL_RCVD 'From' gmail.com does not match 'Received' headers 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (andrewjmoreton[at]gmail.com) 0.0 HEADER_FROM_DIFFERENT_DOMAINS From and EnvelopeFrom 2nd level mail domains are different 0.2 FREEMAIL_FORGED_FROMDOMAIN 2nd level domains in From and EnvelopeFrom freemail headers are different X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.3 (/) On Mon 04 Mar 2019, Robert Pluim wrote: > Alan Third writes: > >> On Sat, Mar 02, 2019 at 11:57:35PM +0000, Andy Moreton wrote: >>> On Sat 02 Mar 2019, Alan Third wrote: >>> >>> > On Sun, Feb 24, 2019 at 01:56:31PM +0100, Robert Pluim wrote: >>> >> Juri Linkov writes: >>> >> >>> >> > on macOS it could return something like that or generate fake names >>> >> > from geometry like "1920x1080+0+0", "2560x1440+1920+16". >>> >>> It would be more usefulr to use the underlying device name, like on other >>> platforms. >> >> It doesn’t look like macOS gives displays any sort of human readable >> name. The closest I can find is the monitor’s make and model, which >> appears to be lifted directly from the device driver. I expect if you >> have two identical monitors then it will be the same for both. >> > > At least in 'system preferences/display', when you have two identical monitors > attached, they're called something like 'DELL 1234X' and 'DELL 1234X > (2)' (I canʼt test that right now). If you can show me code on how to > get those names in 10.14, I can confirm. That would be better than > making up names. There are usually two different names involved: the name of the file/device that represents the monitor, and a human-readable name for the UI. In Windows, the GUI settings/display describes the monitors as 1 and 2. In emacs, display-monitor-attributes-list reports the device names \\.\DISPLAY1 and \\.\DISPLAY2 (you can see these device names with the WinObj tool from SysInternals). Note that the device names do not mention the make/model of the hardware. For OSX, ioreg or the IoRegistryExplorer app show similar information from the IO registry (a non-persistent database of IO device information). I don't use a mac any more, so I don't know if these tools are still available). AndyM From debbugs-submit-bounces@debbugs.gnu.org Mon Mar 04 11:11:09 2019 Received: (at 34516) by debbugs.gnu.org; 4 Mar 2019 16:11:09 +0000 Received: from localhost ([127.0.0.1]:60092 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1h0qBJ-0007mr-7g for submit@debbugs.gnu.org; Mon, 04 Mar 2019 11:11:09 -0500 Received: from mail-wm1-f46.google.com ([209.85.128.46]:40503) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1h0qBH-0007md-He for 34516@debbugs.gnu.org; Mon, 04 Mar 2019 11:11:07 -0500 Received: by mail-wm1-f46.google.com with SMTP id g20so5216336wmh.5 for <34516@debbugs.gnu.org>; Mon, 04 Mar 2019 08:11:07 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:references:mail-copies-to:gmane-reply-to-list :date:message-id:mime-version:content-transfer-encoding; bh=NiZFvkvz2QXt3ASSIWt1UNgPlaulTvd7Zj0hG3VZ0/A=; b=Bp7GOcKYFpi3fwhRDagv5mR/gr7pgoXS1WHlnE37+fN9Px2ohLKAJ0pN+ovpknaTLe xLCNNtMae3Y3XNSkjJtJg/IYercU2upxaKv4SsiYz5bqUwofeQmK/zz2ZVb9m8mD1ZTZ /cLk5qEMXEC0VCECnC/WjgPKwM9twfVme/94vV4SEkhp3CctYSAuBjW+7nxlGoD5wZGc zA2l2M9qPoJEIfv0kL2lxyb6X/BNww6sN8xCekseoNCPjcpOA5NglryyWKyygW2n8gxg ZcBxWOt4dLJaD6KZuV70KOyFaIi4lPExP+UZC4/5KJDYqTY1HU5lQIjGeagTj5n3PYGT fL9Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references:mail-copies-to :gmane-reply-to-list:date:message-id:mime-version :content-transfer-encoding; bh=NiZFvkvz2QXt3ASSIWt1UNgPlaulTvd7Zj0hG3VZ0/A=; b=HZA6f7BHACPAXDTcbvzIVTzVLUO3GiwhzE9Ai4iSzcnnZcAT5tJIPnx/snUNgBqeui mGrZu0P5sf5WJJTmgqfVsA+vYBOmfvdGGnoOeWKBA8Y+UD5FqsYH4SpLloGPWdN07dQP T7TC48kvaAHxMf1k5mh710zAyipeJZj5cZ+6JwMqothTrTKtMuE6/8ouWZKEc2hsJU3K mn04781lCu246dnpq9UYBTPl2vRM++FD45Vru6Wrhtva/9Pn8rvEw1puhXcLpVfTbTU6 DMT0LhTySPpPbjry/kFslQuuy+Zq3JoXuzUj2i9pgWnQrYXXa57dv7ETV17aSTYjo7Ia RxZA== X-Gm-Message-State: APjAAAWC/WDsYz1dhwHWkXYL6Oc27kYQdo/JlpYccyPaviftzzeWduv3 z2kUJBhZyB+Nhw1kPgokdZdNdPdn X-Google-Smtp-Source: AHgI3IZJHkWm7df/gXsHCc/6dbtu+emq+myNFcUtoKoSC+Mt/HER8ndj80JOVXu7ZIXYkv7MpN6QJA== X-Received: by 2002:a1c:a885:: with SMTP id r127mr12552006wme.74.1551715861178; Mon, 04 Mar 2019 08:11:01 -0800 (PST) Received: from rpluim-mac ([149.5.228.1]) by smtp.gmail.com with ESMTPSA id v6sm14929564wme.24.2019.03.04.08.10.59 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 04 Mar 2019 08:11:00 -0800 (PST) From: Robert Pluim To: Andy Moreton Subject: Re: bug#34516: Multi-monitor frame sets References: <87bm3a74s4.fsf@mail.linkov.net> <87zhqsx115.fsf@mail.linkov.net> <87r2byw802.fsf@mail.linkov.net> <20190302205424.GB20712@breton.holly.idiocy.org> <86r2bosuc0.fsf@gmail.com> <20190303114324.GA49402@breton.holly.idiocy.org> X-Debbugs-No-Ack: yes Mail-Copies-To: never Gmane-Reply-To-List: yes Date: Mon, 04 Mar 2019 17:10:59 +0100 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 34516 Cc: 34516@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Andy Moreton writes: >> At least in 'system preferences/display', when you have two identical mo= nitors >> attached, they're called something like 'DELL 1234X' and 'DELL 1234X >> (2)' (I can=CA=BCt test that right now). If you can show me code on how = to >> get those names in 10.14, I can confirm. That would be better than >> making up names. > So 'DELL 1234X (1)' and 'DELL 1234X (2)', where (1) is the primary monitor. > There are usually two different names involved: the name of the > file/device that represents the monitor, and a human-readable name for > the UI. > > In Windows, the GUI settings/display describes the monitors as 1 and > 2. In emacs, display-monitor-attributes-list reports the device > names \\.\DISPLAY1 and \\.\DISPLAY2 (you can see these device names > with the WinObj tool from SysInternals). Note that the device names do > not mention the make/model of the hardware. > > For OSX, ioreg or the IoRegistryExplorer app show similar information > from the IO registry (a non-persistent database of IO device > information). I don't use a mac any more, so I don't know if these tools > are still available). I don=CA=BCt know, but the code in ns_screen_name which appears to do something similar does not work for me in 10.14 I=CA=BCm not so sure about using the did, as someone suggested, since that has a large value, eg here it=CA=BCs 724851601, I=CA=BCd prefer to use a si= mple index. Robert From debbugs-submit-bounces@debbugs.gnu.org Mon Mar 04 14:20:28 2019 Received: (at 34516) by debbugs.gnu.org; 4 Mar 2019 19:20:28 +0000 Received: from localhost ([127.0.0.1]:60207 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1h0t8W-000664-4N for submit@debbugs.gnu.org; Mon, 04 Mar 2019 14:20:28 -0500 Received: from mail-wr1-f46.google.com ([209.85.221.46]:36267) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1h0t8U-00065s-EC for 34516@debbugs.gnu.org; Mon, 04 Mar 2019 14:20:27 -0500 Received: by mail-wr1-f46.google.com with SMTP id o17so6827647wrw.3 for <34516@debbugs.gnu.org>; Mon, 04 Mar 2019 11:20:26 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=20161025; h=sender:date:from:to:cc:subject:message-id:references:mime-version :content-disposition:content-transfer-encoding:in-reply-to :user-agent; bh=UJ/qGEurk6yJPYzz1rG4QOeJgwE3USQgIFEOnDym+84=; b=bvHJ4OvIGkbhWcZM/37YDRY3c+5k//zaMawYwWoAMhgnUDjmCysgxsPjkUb45rz5wT Cj35Kxz5ZNIhZR2PKuQgtgagrPb78DSpyJScsKQbRDVD5+5XcnNUY5W7WLNHCJ4oFBN1 LBceY1mwAfkyu4uG1BRF+j9AYK/iE88YMimke6H2Sx+woe6cIC+bfGeqySXMx9PejH5m cLIHQ6WZKeOrCU+i1fDwpDnGKxUFwrOSAE20xTrVA8E7mekSijG9IeeZDrg/4fKIvW3b rT5xYubUQ7TkhMWf62x9ugg6NCJxCRahx2DbaPXZbK/3XRyssaxGJNEzfDDwneB5l7I7 ON6g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:date:from:to:cc:subject:message-id :references:mime-version:content-disposition :content-transfer-encoding:in-reply-to:user-agent; bh=UJ/qGEurk6yJPYzz1rG4QOeJgwE3USQgIFEOnDym+84=; b=Wz5YvMklElSbkNoULKeX6AB8zxvM/IqN5TSOxSZfg3aV6gASyAfrAZ7ceAieP53sJU OJxMlyMcExt8HU079PKG343X8Ra/Sx3BTslcJ40icgDs/MXHxEv6hTlbnBEJxqp5aOB3 W02f59ZEhctm1qBRIwJd/R4/xFirHszvDujLlEJdz3eqcYQ99F5Qq8BTHMyiut5/qM3Q jSb0m7SI5w7tKLU0G4CZAwvjqomqrQZH1Ic9OLYqVVjcAwVrCYNF9iAM4sNa+xFFYTpx 1fRv7rFCNAK8GH3y8dq8a6usYZwnhN/L+f1GfC4J9lF6nMDSLd3irwwx+H7E2PQXCRz3 5XJw== X-Gm-Message-State: APjAAAVz0R9hEzspd/Z/JrHzLAky0TPEycsXcRO1nZqwJenJgcxfftWW LhlV2puB75atlKu41X4lOmg= X-Google-Smtp-Source: APXvYqzUDi+R8c8YsSC2+wChpiXv6YvqwZNWac89bj2J4fbCxvkNjsZVeA2mw7JZ9CT3XDO2WFKf8w== X-Received: by 2002:a5d:6682:: with SMTP id l2mr13222717wru.271.1551727220537; Mon, 04 Mar 2019 11:20:20 -0800 (PST) Received: from breton.holly.idiocy.org (ip6-2001-08b0-03f8-8129-a434-efbf-3a29-731e.holly.idiocy.org. [2001:8b0:3f8:8129:a434:efbf:3a29:731e]) by smtp.gmail.com with ESMTPSA id o12sm8279833wrx.53.2019.03.04.11.20.18 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 04 Mar 2019 11:20:19 -0800 (PST) Date: Mon, 4 Mar 2019 19:20:17 +0000 From: Alan Third To: Robert Pluim Subject: Re: bug#34516: Multi-monitor frame sets Message-ID: <20190304192017.GA21727@breton.holly.idiocy.org> References: <87zhqsx115.fsf@mail.linkov.net> <87r2byw802.fsf@mail.linkov.net> <20190302205424.GB20712@breton.holly.idiocy.org> <86r2bosuc0.fsf@gmail.com> <20190303114324.GA49402@breton.holly.idiocy.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: Mutt/1.11.3 (2019-02-01) X-Spam-Score: 0.3 (/) X-Debbugs-Envelope-To: 34516 Cc: 34516@debbugs.gnu.org, Andy Moreton X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.7 (/) On Mon, Mar 04, 2019 at 05:10:59PM +0100, Robert Pluim wrote: > Andy Moreton writes: > > >> At least in 'system preferences/display', when you have two identical monitors > >> attached, they're called something like 'DELL 1234X' and 'DELL 1234X > >> (2)' (I canʼt test that right now). If you can show me code on how to > >> get those names in 10.14, I can confirm. That would be better than > >> making up names. > > > > So 'DELL 1234X (1)' and 'DELL 1234X (2)', where (1) is the primary > monitor. > > > There are usually two different names involved: the name of the > > file/device that represents the monitor, and a human-readable name for > > the UI. > > > > In Windows, the GUI settings/display describes the monitors as 1 and > > 2. In emacs, display-monitor-attributes-list reports the device > > names \\.\DISPLAY1 and \\.\DISPLAY2 (you can see these device names > > with the WinObj tool from SysInternals). Note that the device names do > > not mention the make/model of the hardware. > > > > For OSX, ioreg or the IoRegistryExplorer app show similar information > > from the IO registry (a non-persistent database of IO device > > information). I don't use a mac any more, so I don't know if these tools > > are still available). > > I donʼt know, but the code in ns_screen_name which appears to do > something similar does not work for me in 10.14 Try this: ioreg -lw0 | grep IODisplayEDID | sed "/[^<]* Iʼm not so sure about using the did, as someone suggested, since that > has a large value, eg here itʼs 724851601, Iʼd prefer to use a simple > index. I did think that might be an issue, the main advantage over the simple index is that it shouldn’t change, whereas I don’t think the index is guaranteed to be the same on any two consecutive calls. -- Alan Third From debbugs-submit-bounces@debbugs.gnu.org Mon Mar 04 15:18:18 2019 Received: (at 34516) by debbugs.gnu.org; 4 Mar 2019 20:18:18 +0000 Received: from localhost ([127.0.0.1]:60263 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1h0u2R-0007VF-LQ for submit@debbugs.gnu.org; Mon, 04 Mar 2019 15:18:18 -0500 Received: from mail-wm1-f48.google.com ([209.85.128.48]:36376) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1h0u2Q-0007Uz-1s for 34516@debbugs.gnu.org; Mon, 04 Mar 2019 15:18:14 -0500 Received: by mail-wm1-f48.google.com with SMTP id j125so427523wmj.1 for <34516@debbugs.gnu.org>; Mon, 04 Mar 2019 12:18:14 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:references:date:in-reply-to:message-id :mime-version:content-transfer-encoding; bh=SqDPlg8ibc3F6LDpVQJnE85AzwCeGUwLF1BI5eGbWO8=; b=HeUIKbEjWl0nrf2jliqOeaS8i08wY9qtll15SJW13zbd3mz3VsJNsBifGQpTSU4DFd YzCWk/WglVUTLajJoR4yS7vZfqPIwKeFtZgJRkX3OPlNtXLbbeDSqITEFQOo/IkMk4u/ KpbUMpsDhbqjzWgEikePa5MediZTTxAnXOWLvSqp93lkKOP/Exr2eN0eHdfcQz3STg55 kMqY0w3ezAJ4qDTJtxt7+NpXDfuvoLpsAXNsiux7paJ8nCwkjK+lQbqJ4P4PGZqOLcXA EmaAsQ6qC2zBgmN6dtoFez7/Z1gselCyqKJns74AMiARC21DyrMFOh2dXQO6rhLJVvWj 2E5A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:mime-version:content-transfer-encoding; bh=SqDPlg8ibc3F6LDpVQJnE85AzwCeGUwLF1BI5eGbWO8=; b=FWUw8U2hMYJ3QhRvztniljpx+ODYBFtkA0nY7JZKwy857Pou0e9HgVd0gdKR8pA4b1 Pk+/IOI3Ify65ivvooGvDZKlHUWJu4VxAmrME/Qq7b13zu9sMaduMVzJs7oH+s5Nx5WM sh6yyZgpUM1L3Ykwei3B9UFd+A+9FnXBUt1QaBcvKBiqYu9xt7oHdUCp1vbJP8CUlZDW ZA73Cqpr1PPL4WAjCijWP2WrtJoD4obDU4UBtekU3qa+YlWH/Hv5mLHQOyeiMyavAArg fPKBTG6e0MFKtPJ1uyph0DJvM6F6UiPfWMj64YmfZY6YFo0qgGzjze/xm/kx45R3WH5H X8PQ== X-Gm-Message-State: APjAAAWITiC2gQkjnWCW3wxhBAulWfkPqc+7rz8sGaNSE9gg6Sz/2G1g ruXoocAW6vYYMaTjZRIOtw0p4fAS X-Google-Smtp-Source: APXvYqxdp7qVIqw9yFRl5ZzbGwA8/kmZPOI/Juila4DAkJ9+2dtqdw1L6TRhn/fl4LOOK6RCttIUtQ== X-Received: by 2002:a7b:ce83:: with SMTP id q3mr521920wmj.108.1551730687652; Mon, 04 Mar 2019 12:18:07 -0800 (PST) Received: from rpluim-mac ([2a01:e34:ecfc:a860:3cf2:e5dc:fbbc:2d9e]) by smtp.gmail.com with ESMTPSA id b197sm7853285wmd.23.2019.03.04.12.18.06 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Mon, 04 Mar 2019 12:18:06 -0800 (PST) From: Robert Pluim To: Alan Third Subject: Re: bug#34516: Multi-monitor frame sets References: <87zhqsx115.fsf@mail.linkov.net> <87r2byw802.fsf@mail.linkov.net> <20190302205424.GB20712@breton.holly.idiocy.org> <86r2bosuc0.fsf@gmail.com> <20190303114324.GA49402@breton.holly.idiocy.org> <20190304192017.GA21727@breton.holly.idiocy.org> Date: Mon, 04 Mar 2019 21:18:05 +0100 In-Reply-To: <20190304192017.GA21727@breton.holly.idiocy.org> (Alan Third's message of "Mon, 4 Mar 2019 19:20:17 +0000") Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 34516 Cc: 34516@debbugs.gnu.org, Andy Moreton X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Alan Third writes: >> I don=CA=BCt know, but the code in ns_screen_name which appears to do >> something similar does not work for me in 10.14 > > Try this: > > ioreg -lw0 | grep IODisplayEDID | sed "/[^<]* > and see if it returns usable information. If so then that=E2=80=99s what = we > should be targeting in ns_screen_name. > When just using the built-in display, that gives me: Color LCD LP133WQ5-SJA2 F0Y843102PCJ465AT I can run the same test tomorrow when I=CA=BCm by my external screens again. Only the first line here is remotely intelligible, none of them are displayed by macOS as far as I know. > I think the approach used in ns_screen_name must have been removed in > some version of macOS. I tried to modify it to find the information > returned by the above command, but it looks like there=E2=80=99s no direc= t way > to match up the DID number with IODisplayConnect, which is where > IODisplayEDID is stored. > > I=E2=80=99d never heard of ioreg before yesterday, though, so if anyone k= nows > better I=E2=80=99d be happy to learn otherwise. > >> I=CA=BCm not so sure about using the did, as someone suggested, since th= at >> has a large value, eg here it=CA=BCs 724851601, I=CA=BCd prefer to use a= simple >> index. > > I did think that might be an issue, the main advantage over the simple > index is that it shouldn=E2=80=99t change, whereas I don=E2=80=99t think = the index is > guaranteed to be the same on any two consecutive calls. ns-display-monitor-attributes-list assumes that the first monitor has index '0', so having that change would be surprising. Robert From debbugs-submit-bounces@debbugs.gnu.org Mon Mar 04 19:55:48 2019 Received: (at submit) by debbugs.gnu.org; 5 Mar 2019 00:55:48 +0000 Received: from localhost ([127.0.0.1]:60408 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1h0yN2-0007d7-G5 for submit@debbugs.gnu.org; Mon, 04 Mar 2019 19:55:48 -0500 Received: from eggs.gnu.org ([209.51.188.92]:56593) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1h0yN0-0007ct-Nl for submit@debbugs.gnu.org; Mon, 04 Mar 2019 19:55:47 -0500 Received: from lists.gnu.org ([209.51.188.17]:43382) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1h0yMv-0003te-F7 for submit@debbugs.gnu.org; Mon, 04 Mar 2019 19:55:41 -0500 Received: from eggs.gnu.org ([209.51.188.92]:42610) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1h0yMu-00066q-EE for bug-gnu-emacs@gnu.org; Mon, 04 Mar 2019 19:55:41 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: * X-Spam-Status: No, score=1.6 required=5.0 tests=BAYES_50,FREEMAIL_FROM, RDNS_NONE autolearn=disabled version=3.3.2 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1h0yCW-0001ja-AG for bug-gnu-emacs@gnu.org; Mon, 04 Mar 2019 19:44:57 -0500 Received: from [195.159.176.226] (port=47524 helo=blaine.gmane.org) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1h0yCW-0001gp-19 for bug-gnu-emacs@gnu.org; Mon, 04 Mar 2019 19:44:56 -0500 Received: from list by blaine.gmane.org with local (Exim 4.89) (envelope-from ) id 1h0yCS-000hAE-Q1 for bug-gnu-emacs@gnu.org; Tue, 05 Mar 2019 01:44:52 +0100 X-Injected-Via-Gmane: http://gmane.org/ To: bug-gnu-emacs@gnu.org From: Andy Moreton Subject: Re: bug#34516: Multi-monitor frame sets Date: Tue, 05 Mar 2019 00:44:44 +0000 Message-ID: <86r2bmno8z.fsf@gmail.com> References: <87zhqsx115.fsf@mail.linkov.net> <87r2byw802.fsf@mail.linkov.net> <20190302205424.GB20712@breton.holly.idiocy.org> <86r2bosuc0.fsf@gmail.com> <20190303114324.GA49402@breton.holly.idiocy.org> <20190304192017.GA21727@breton.holly.idiocy.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (windows-nt) Cancel-Lock: sha1:p6YWz0Nu93ojqOkL4NNJQj5nThw= X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 195.159.176.226 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Spam-Score: 1.3 (+) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: On Mon 04 Mar 2019, Alan Third wrote: > On Mon, Mar 04, 2019 at 05:10:59PM +0100, Robert Pluim wrote: >> Andy Moreton writes: >> >> >> At least in 'system preferences/display', when you have two identical monitors >> >> attached, they'r [...] Content analysis details: (1.3 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- 1.0 FORGED_GMAIL_RCVD 'From' gmail.com does not match 'Received' headers 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (andrewjmoreton[at]gmail.com) 0.0 HEADER_FROM_DIFFERENT_DOMAINS From and EnvelopeFrom 2nd level mail domains are different 0.2 FREEMAIL_FORGED_FROMDOMAIN 2nd level domains in From and EnvelopeFrom freemail headers are different X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.3 (/) On Mon 04 Mar 2019, Alan Third wrote: > On Mon, Mar 04, 2019 at 05:10:59PM +0100, Robert Pluim wrote: >> Andy Moreton writes: >> >> >> At least in 'system preferences/display', when you have two identical monitors >> >> attached, they're called something like 'DELL 1234X' and 'DELL 1234X >> >> (2)' (I canʼt test that right now). If you can show me code on how to >> >> get those names in 10.14, I can confirm. That would be better than >> >> making up names. >> > >> >> So 'DELL 1234X (1)' and 'DELL 1234X (2)', where (1) is the primary >> monitor. >> >> > There are usually two different names involved: the name of the >> > file/device that represents the monitor, and a human-readable name for >> > the UI. >> > >> > In Windows, the GUI settings/display describes the monitors as 1 and >> > 2. In emacs, display-monitor-attributes-list reports the device >> > names \\.\DISPLAY1 and \\.\DISPLAY2 (you can see these device names >> > with the WinObj tool from SysInternals). Note that the device names do >> > not mention the make/model of the hardware. >> > >> > For OSX, ioreg or the IoRegistryExplorer app show similar information >> > from the IO registry (a non-persistent database of IO device >> > information). I don't use a mac any more, so I don't know if these tools >> > are still available). >> >> I donʼt know, but the code in ns_screen_name which appears to do >> something similar does not work for me in 10.14 > > Try this: > > ioreg -lw0 | grep IODisplayEDID | sed "/[^<]* > and see if it returns usable information. If so then that’s what we > should be targeting in ns_screen_name. > > I think the approach used in ns_screen_name must have been removed in > some version of macOS. I tried to modify it to find the information > returned by the above command, but it looks like there’s no direct way > to match up the DID number with IODisplayConnect, which is where > IODisplayEDID is stored. The #if tests in ns_screen_name suggest that the old method is no longer available in OSX 10.9 and later. >From a quick web search, GLFW (a graphics library) seems to have encountered this problem, and added a workaround in this commit: https://github.com/glfw/glfw/commit/8101d7a7b67fc3414769b25944dc7c02b58d53d0 The patch matches on "IODisplayConnect" instances and then iterates over the collection checking that the vendor ID and product ID match those values looked up from the DID number. A similar approach should help to solve this problem. AndyM From debbugs-submit-bounces@debbugs.gnu.org Tue Mar 19 17:34:28 2019 Received: (at 34516) by debbugs.gnu.org; 19 Mar 2019 21:34:28 +0000 Received: from localhost ([127.0.0.1]:50981 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1h6MNP-0006BX-QM for submit@debbugs.gnu.org; Tue, 19 Mar 2019 17:34:28 -0400 Received: from ladybird.maple.relay.mailchannels.net ([23.83.214.98]:44745) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1h6MNO-0006BP-AG for 34516@debbugs.gnu.org; Tue, 19 Mar 2019 17:34:27 -0400 X-Sender-Id: dreamhost|x-authsender|jurta@jurta.org Received: from relay.mailchannels.net (localhost [127.0.0.1]) by relay.mailchannels.net (Postfix) with ESMTP id 98D971254D7; Tue, 19 Mar 2019 21:34:24 +0000 (UTC) Received: from pdx1-sub0-mail-a70.g.dreamhost.com (unknown [100.96.20.50]) (Authenticated sender: dreamhost) by relay.mailchannels.net (Postfix) with ESMTPA id 33341125449; Tue, 19 Mar 2019 21:34:24 +0000 (UTC) X-Sender-Id: dreamhost|x-authsender|jurta@jurta.org Received: from pdx1-sub0-mail-a70.g.dreamhost.com (pop.dreamhost.com [64.90.62.162]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384) by 0.0.0.0:2500 (trex/5.17.2); Tue, 19 Mar 2019 21:34:24 +0000 X-MC-Relay: Neutral X-MailChannels-SenderId: dreamhost|x-authsender|jurta@jurta.org X-MailChannels-Auth-Id: dreamhost X-Tart-Wide-Eyed: 4fbd32790005af3e_1553031264382_2097497043 X-MC-Loop-Signature: 1553031264381:4053611385 X-MC-Ingress-Time: 1553031264381 Received: from pdx1-sub0-mail-a70.g.dreamhost.com (localhost [127.0.0.1]) by pdx1-sub0-mail-a70.g.dreamhost.com (Postfix) with ESMTP id E774180591; Tue, 19 Mar 2019 14:34:22 -0700 (PDT) Received: from mail.jurta.org (m91-129-106-13.cust.tele2.ee [91.129.106.13]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: jurta@jurta.org) by pdx1-sub0-mail-a70.g.dreamhost.com (Postfix) with ESMTPSA id F3C6A8062D; Tue, 19 Mar 2019 14:34:19 -0700 (PDT) X-DH-BACKEND: pdx1-sub0-mail-a70 From: Juri Linkov To: Robert Pluim Subject: Re: bug#34516: Multi-monitor frame sets Organization: LINKOV.NET References: <87zhqsx115.fsf@mail.linkov.net> <87r2byw802.fsf@mail.linkov.net> <20190302205424.GB20712@breton.holly.idiocy.org> <86r2bosuc0.fsf@gmail.com> <20190303114324.GA49402@breton.holly.idiocy.org> <20190304192017.GA21727@breton.holly.idiocy.org> Date: Tue, 19 Mar 2019 23:33:30 +0200 In-Reply-To: (Robert Pluim's message of "Mon, 04 Mar 2019 21:18:05 +0100") Message-ID: <875zseft1x.fsf@mail.linkov.net> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 X-VR-OUT-STATUS: OK X-VR-OUT-SCORE: -100 X-VR-OUT-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrgedutddrieeggdduheefucetufdoteggodetrfdotffvucfrrhhofhhilhgvmecuggftfghnshhusghstghrihgsvgdpffftgfetoffjqffuvfenuceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmnecujfgurhephffvufhofhffjgfkfgggtgfgsehtkeertddtreejnecuhfhrohhmpefluhhrihcunfhinhhkohhvuceojhhurhhisehlihhnkhhovhdrnhgvtheqnecukfhppeeluddruddvledruddtiedrudefnecurfgrrhgrmhepmhhouggvpehsmhhtphdphhgvlhhopehmrghilhdrjhhurhhtrgdrohhrghdpihhnvghtpeeluddruddvledruddtiedrudefpdhrvghtuhhrnhdqphgrthhhpefluhhrihcunfhinhhkohhvuceojhhurhhisehlihhnkhhovhdrnhgvtheqpdhmrghilhhfrhhomhepjhhurhhisehlihhnkhhovhdrnhgvthdpnhhrtghpthhtoheprhhplhhuihhmsehgmhgrihhlrdgtohhmnecuvehluhhsthgvrhfuihiivgeptd Content-Transfer-Encoding: quoted-printable X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 34516 Cc: Andy Moreton , Alan Third , 34516@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) > I can run the same test tomorrow when I=CA=BCm by my external screens > again. Only the first line here is remotely intelligible, none of them > are displayed by macOS as far as I know. Did you have a chance to run the test? Meanwhile, I pushed the fix based on your recommendations on emacs-devel. Feel free to improve it if your test reveals a problem. From debbugs-submit-bounces@debbugs.gnu.org Tue Mar 26 03:25:07 2019 Received: (at 34516) by debbugs.gnu.org; 26 Mar 2019 07:25:07 +0000 Received: from localhost ([127.0.0.1]:58993 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1h8gSJ-0002dO-Dd for submit@debbugs.gnu.org; Tue, 26 Mar 2019 03:25:07 -0400 Received: from mail-wr1-f53.google.com ([209.85.221.53]:33513) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1h8gSH-0002cm-NM for 34516@debbugs.gnu.org; Tue, 26 Mar 2019 03:25:06 -0400 Received: by mail-wr1-f53.google.com with SMTP id q1so13023342wrp.0 for <34516@debbugs.gnu.org>; Tue, 26 Mar 2019 00:25:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:references:date:in-reply-to:message-id :mime-version:content-transfer-encoding; bh=5G5s+T/UriGpdztJzdDyW5fuHXslbeaZF7bEuVa3yH4=; b=W+g5/sKfOE2m/9w946ZCK7pmUvyjx/QAXnc4uxAniiCaDXUy02Cw9ZXYpMzHJxxA1k iAXQfxGz+Kl7EtBWTZBUivKyJ/RBCku8i6Qlq+FD9HVjVdrUJHrkYVD6JyPo+KMKdxpm Us+jvrjExmHykFNdBEAMjkTOG9LIAzUwXkCLYstSHec/fzpP6IOfTG144Gjd1H0lgR1y XVQq6j6bXHxiRei5hkJX/qTPh4JWUlqeusjJP0U5kZ+P/LebdHFWAaZUcxR9dXOVXcvN rcSZV620WeR0i/m55IuLLF5aak/9vOsQR6pes41rs1sKYF3g9TnJVJd3oLulW5Ym/QN4 0HFg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:mime-version:content-transfer-encoding; bh=5G5s+T/UriGpdztJzdDyW5fuHXslbeaZF7bEuVa3yH4=; b=eNdp4QOGwlATmC+UOym/0z7LrsWJOOKv7ECOdeaIiiJngpdPCwLzLk+xo4c5mCfnDq W8tsTeOm/deH51s3UQB5HIneceMxe7dnC7Zzn+PtJvSDeCTWmRO9bIGVa8mLFSUp4TVt cFb7pZ0iPX8QP4bm0LDruSFAsypq21zuev0hE0e/8bBvbYf77X3/PpTsZZUOXNWaRbub TJwRFi4xpDF1VFVkK01t6KcpZiJ1HWt9MZo0UQdx5cEZ2U4piuXxKBQ18kE9JSpCaNn6 BQTTc0Qy3n4Cw6e/YZu83q+xc+8qiiSkHPyAwVv41j3SGm84s0lJi8V/sMDdQFWw+NRy l2mw== X-Gm-Message-State: APjAAAX9Zhumd3akDW2QxL6rCoOuNvfr5P5FvdXQyxWTHE5aglcgiM3O SWpQEsN0fit2Evwd1+5b4DU= X-Google-Smtp-Source: APXvYqyg2Wfdo1vGLPjQRycnklZKVYASBk17rVVUIkMXxGIk8swdgayqeU+494AbGUelSpVw2l7j3g== X-Received: by 2002:a5d:68cf:: with SMTP id p15mr14671008wrw.301.1553585098862; Tue, 26 Mar 2019 00:24:58 -0700 (PDT) Received: from rpluim-mac ([149.5.228.1]) by smtp.gmail.com with ESMTPSA id c10sm21668655wru.83.2019.03.26.00.24.57 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Tue, 26 Mar 2019 00:24:57 -0700 (PDT) From: Robert Pluim To: Juri Linkov Subject: Re: bug#34516: Multi-monitor frame sets References: <87zhqsx115.fsf@mail.linkov.net> <87r2byw802.fsf@mail.linkov.net> <20190302205424.GB20712@breton.holly.idiocy.org> <86r2bosuc0.fsf@gmail.com> <20190303114324.GA49402@breton.holly.idiocy.org> <20190304192017.GA21727@breton.holly.idiocy.org> <875zseft1x.fsf@mail.linkov.net> Date: Tue, 26 Mar 2019 08:24:56 +0100 In-Reply-To: <875zseft1x.fsf@mail.linkov.net> (Juri Linkov's message of "Tue, 19 Mar 2019 23:33:30 +0200") Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 34516 Cc: Andy Moreton , Alan Third , 34516@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) >>>>> On Tue, 19 Mar 2019 23:33:30 +0200, Juri Linkov sai= d: >> I can run the same test tomorrow when I=CA=BCm by my external >> screens again. Only the first line here is remotely >> intelligible, none of them are displayed by macOS as far as I >> know. Juri> Did you have a chance to run the test? I did, but I forgot to send the results: --begin-- q8-@X,E JC9H65BD0ZLS DELL P2714H q8-@X,E JC9H65BD1BHS DELL P2714H --end-- We=CA=BCd need to extract that 'DELL' bit, and check if we have other monitors with the same description string so we can add a suffix. Juri> Meanwhile, I pushed the fix based on your recommendations on Juri> emacs-devel. Feel free to improve it if your test reveals a Juri> problem. It works fine for me. Of course, now that I=CA=BCm using it, I=CA=BCd like a 'make-frame-on-current-monitor' :-) I guess I can iterate over the frames elements of 'display-monitor-attributes-list', unless there=CA=BCs a 'what monitor is this frame on' primitive. Robert From debbugs-submit-bounces@debbugs.gnu.org Tue Mar 26 03:27:08 2019 Received: (at 34516) by debbugs.gnu.org; 26 Mar 2019 07:27:08 +0000 Received: from localhost ([127.0.0.1]:58997 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1h8gUF-0002gY-TU for submit@debbugs.gnu.org; Tue, 26 Mar 2019 03:27:08 -0400 Received: from mail-wr1-f48.google.com ([209.85.221.48]:41695) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1h8gUD-0002g1-Cs for 34516@debbugs.gnu.org; Tue, 26 Mar 2019 03:27:06 -0400 Received: by mail-wr1-f48.google.com with SMTP id r4so5315891wrq.8 for <34516@debbugs.gnu.org>; Tue, 26 Mar 2019 00:27:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:references:date:in-reply-to:message-id :mime-version:content-transfer-encoding; bh=R2pievkU3mTrpB7aBHggWxMVVNGuyUEYT2teT9bjijg=; b=VtgFFIRsdTRBmamSzG/FTuvQync7ABmRRTUgmnJG0+emPRjspnj9WDPSARp0dvpscM 7PKdhdmDiBN6dXMAE+AGgRS+Xk6H+PWUwBnW/WXCTxNTS4dkEqk9Ign9gsXCDq4S0RVi XX7wEe+rWX3vyErqnfPnJx+jpEtvHxFXhEft/2sRHcKJ+xGofTFUtAkATc9qss3SU7i/ Tf58elaw881V28ApgV87tns5h99rxcAz6ZgFbbLT/q6lGfD36tV5JXhKMQKu2+k+sTod QABGQnUEMc5+Q1ILAw54rZNaFZaxzekutsgab2WMgs5sKgG3yp+b/xrluERj2TqzRZ/v SHMQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:mime-version:content-transfer-encoding; bh=R2pievkU3mTrpB7aBHggWxMVVNGuyUEYT2teT9bjijg=; b=B1eHvXUovO7eBCSgdczp9Od4EfTbWXYv7HZrhZCjzWv/qZXnSBo7pR6BKT8LSEnUPq m1M9gJY2f7CzEAMoA9X/AjsEwoDF0vjnaHVeIvh63cNxfEMIefSuS0oK8Vin9Nxb3HaP pzz0rXkcOS9aEVS4m/WaNM0Blc5Jf0+w0aP+XwDfMkgm7KlI2bIk2VI6tJBH+Yk23NHH lB/IYsL/OU+NkbVu8ipqKKOWC1kAa3otwkD2iqq3m4i/8tMxAsRvOEh4L4+lyyBzYKem A9H0zKr+0UsmUIpaxgQTHu7OQpl4XQM/KwPhRlPWNViiYWALm8lz4J08eHl7JHdDD1f6 ieCw== X-Gm-Message-State: APjAAAV22pVpQ6KHi6KkV/lILTPkaMTVonwQtCVUMZmyBv1ZrJDq4IW5 cYMfBQ8SOuBaGCMfjmNqS2w= X-Google-Smtp-Source: APXvYqwmeP2bZe6yl2LDUeUy2sY3N1+/XSUkf+aQpRYf2n8x0inPNQwm/2+I+zaMjoH/pxmE4dV99g== X-Received: by 2002:a5d:4446:: with SMTP id x6mr13736655wrr.147.1553585219666; Tue, 26 Mar 2019 00:26:59 -0700 (PDT) Received: from rpluim-mac ([149.5.228.1]) by smtp.gmail.com with ESMTPSA id t2sm39559169wra.9.2019.03.26.00.26.58 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Tue, 26 Mar 2019 00:26:59 -0700 (PDT) From: Robert Pluim To: Juri Linkov Subject: Re: bug#34516: Multi-monitor frame sets References: <87zhqsx115.fsf@mail.linkov.net> <87r2byw802.fsf@mail.linkov.net> <20190302205424.GB20712@breton.holly.idiocy.org> <86r2bosuc0.fsf@gmail.com> <20190303114324.GA49402@breton.holly.idiocy.org> <20190304192017.GA21727@breton.holly.idiocy.org> <875zseft1x.fsf@mail.linkov.net> Date: Tue, 26 Mar 2019 08:26:58 +0100 In-Reply-To: (Robert Pluim's message of "Tue, 26 Mar 2019 08:24:56 +0100") Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 34516 Cc: Andy Moreton , Alan Third , 34516@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) >>>>> On Tue, 26 Mar 2019 08:24:56 +0100, Robert Pluim s= aid: Robert> It works fine for me. Of course, now that I=CA=BCm using it, Robert> I=CA=BCd like a 'make-frame-on-current-monitor' :-) I guess I Robert> can iterate over the frames elements of Robert> 'display-monitor-attributes-list', unless there=CA=BCs a 'what Robert> monitor is this frame on' primitive. D'oh. 'frame-monitor-attributes'. Robert From debbugs-submit-bounces@debbugs.gnu.org Wed Mar 27 17:47:50 2019 Received: (at 34516) by debbugs.gnu.org; 27 Mar 2019 21:47:50 +0000 Received: from localhost ([127.0.0.1]:33615 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1h9GOk-0006wH-I4 for submit@debbugs.gnu.org; Wed, 27 Mar 2019 17:47:50 -0400 Received: from bird.maple.relay.mailchannels.net ([23.83.214.17]:31062) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1h9GOi-0006w7-E2 for 34516@debbugs.gnu.org; Wed, 27 Mar 2019 17:47:49 -0400 X-Sender-Id: dreamhost|x-authsender|jurta@jurta.org Received: from relay.mailchannels.net (localhost [127.0.0.1]) by relay.mailchannels.net (Postfix) with ESMTP id 3138F1256EF; Wed, 27 Mar 2019 21:47:46 +0000 (UTC) Received: from pdx1-sub0-mail-a76.g.dreamhost.com (unknown [100.96.20.50]) (Authenticated sender: dreamhost) by relay.mailchannels.net (Postfix) with ESMTPA id DE1411255F0; Wed, 27 Mar 2019 21:47:45 +0000 (UTC) X-Sender-Id: dreamhost|x-authsender|jurta@jurta.org Received: from pdx1-sub0-mail-a76.g.dreamhost.com (pop.dreamhost.com [64.90.62.162]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384) by 0.0.0.0:2500 (trex/5.17.2); Wed, 27 Mar 2019 21:47:46 +0000 X-MC-Relay: Neutral X-MailChannels-SenderId: dreamhost|x-authsender|jurta@jurta.org X-MailChannels-Auth-Id: dreamhost X-Share-Irritate: 4cd090d02fc8471e_1553723266016_1108784285 X-MC-Loop-Signature: 1553723266016:3609077556 X-MC-Ingress-Time: 1553723266016 Received: from pdx1-sub0-mail-a76.g.dreamhost.com (localhost [127.0.0.1]) by pdx1-sub0-mail-a76.g.dreamhost.com (Postfix) with ESMTP id 92C6E8093F; Wed, 27 Mar 2019 14:47:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=linkov.net; h=from:to:cc :subject:references:date:in-reply-to:message-id:mime-version :content-type:content-transfer-encoding; s=linkov.net; bh=1jtrBX n5iXGIAbyUixEtcbztxKc=; b=yX/i3rlY5rLRZeZDpdsjmBnJhaPCahPQ63bWfa weFDIywl/ApSHx9i35k20t5BjBnMkOcuiVpf9h1/0eGoP8o8JBUbYyHLm2FwHvgj Ca3MQ2ic8qa8FHoVaeC853rkGOWBOWkLpXo1g6rDm+tReg1jGNQR/hXqYg+RFJoD FKmik= Received: from mail.jurta.org (m91-129-108-250.cust.tele2.ee [91.129.108.250]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: jurta@jurta.org) by pdx1-sub0-mail-a76.g.dreamhost.com (Postfix) with ESMTPSA id 18FEC804C4; Wed, 27 Mar 2019 14:47:42 -0700 (PDT) X-DH-BACKEND: pdx1-sub0-mail-a76 From: Juri Linkov To: Robert Pluim Subject: Re: bug#34516: Multi-monitor frame sets Organization: LINKOV.NET References: <87zhqsx115.fsf@mail.linkov.net> <87r2byw802.fsf@mail.linkov.net> <20190302205424.GB20712@breton.holly.idiocy.org> <86r2bosuc0.fsf@gmail.com> <20190303114324.GA49402@breton.holly.idiocy.org> <20190304192017.GA21727@breton.holly.idiocy.org> <875zseft1x.fsf@mail.linkov.net> Date: Wed, 27 Mar 2019 23:46:57 +0200 In-Reply-To: (Robert Pluim's message of "Tue, 26 Mar 2019 08:26:58 +0100") Message-ID: <8736n8t2ge.fsf@mail.linkov.net> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 X-VR-OUT-STATUS: OK X-VR-OUT-SCORE: -100 X-VR-OUT-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrgedutddrkeefgddtvdcutefuodetggdotefrodftvfcurfhrohhfihhlvgemucggtfgfnhhsuhgsshgtrhhisggvpdfftffgtefojffquffvnecuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenucfjughrpefhvffuohhfffgjkfgfgggtgfesthekredttderjeenucfhrhhomheplfhurhhiucfnihhnkhhovhcuoehjuhhriheslhhinhhkohhvrdhnvghtqeenucfkphepledurdduvdelrddutdekrddvhedtnecurfgrrhgrmhepmhhouggvpehsmhhtphdphhgvlhhopehmrghilhdrjhhurhhtrgdrohhrghdpihhnvghtpeeluddruddvledruddtkedrvdehtddprhgvthhurhhnqdhprghthheplfhurhhiucfnihhnkhhovhcuoehjuhhriheslhhinhhkohhvrdhnvghtqedpmhgrihhlfhhrohhmpehjuhhriheslhhinhhkohhvrdhnvghtpdhnrhgtphhtthhopehrphhluhhimhesghhmrghilhdrtghomhenucevlhhushhtvghrufhiiigvpedu Content-Transfer-Encoding: quoted-printable X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 34516 Cc: Andy Moreton , Alan Third , 34516@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) > Robert> It works fine for me. Of course, now that I=CA=BCm using it= , > Robert> I=CA=BCd like a 'make-frame-on-current-monitor' :-) I guess= I > Robert> can iterate over the frames elements of > Robert> 'display-monitor-attributes-list', unless there=CA=BCs a 'w= hat > Robert> monitor is this frame on' primitive. > > D'oh. 'frame-monitor-attributes'. Thanks for the hint. Now I added the default value to make-frame-on-monitor, so for the current monitor you can just do: M-x make-frame-on-monitor RET RET From debbugs-submit-bounces@debbugs.gnu.org Thu Mar 28 03:56:29 2019 Received: (at 34516) by debbugs.gnu.org; 28 Mar 2019 07:56:29 +0000 Received: from localhost ([127.0.0.1]:33767 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1h9Ptl-0000Pb-2G for submit@debbugs.gnu.org; Thu, 28 Mar 2019 03:56:29 -0400 Received: from mail-ed1-f52.google.com ([209.85.208.52]:40591) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1h9Ptj-0000PO-Pp for 34516@debbugs.gnu.org; Thu, 28 Mar 2019 03:56:28 -0400 Received: by mail-ed1-f52.google.com with SMTP id h22so16336470edw.7 for <34516@debbugs.gnu.org>; Thu, 28 Mar 2019 00:56:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:references:mail-copies-to:gmane-reply-to-list :date:in-reply-to:message-id:mime-version:content-transfer-encoding; bh=uCqNtOCnsytE1DNBkhhq/d8pal0E4/N0tzrqagVG4B8=; b=fyI9F4PjlREr5igIoVWYPLSi7z/ymafHFSL7kpuoaieHeGw+nZmaoAt/g086IKZsLw pihazsGumnAKl5d84212CTlGb+y+yDdID7xT41Bx61IqeOejaoze74cRd+01um050/RP dgekj2ogJpwHb76Fks7JipmGC/+2Fo8Cm1V9VTWnvi56KABE1MX6HKosg5Exx3pSHVLX UoHlcUlKI5qFSs/NJPdb0CsWLIR1ui3RYSotBRRUGDmZ1IDOkNohSwQuKGhdAGpPnoUi PA8cLp/ci8uphRXF+ETv7YOpOF4j6UDrMLx3NkxWc3ITItEHvAuno4QCRhHOkcq4BCTE UNzA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references:mail-copies-to :gmane-reply-to-list:date:in-reply-to:message-id:mime-version :content-transfer-encoding; bh=uCqNtOCnsytE1DNBkhhq/d8pal0E4/N0tzrqagVG4B8=; b=L0F0FMf7feN43XB5n93BeDh8p2FPPHpe54d7IJGGDIomRcR9bwMUfQBnfiOv56AMbL CrRDyB4HTH4kZeg/XNI1EDmnoGVFvZWFi0QZhCDmmXg2GL7Genir8cp5mRqQ5LxY00EI W5/1nXw0w6GubLnWT6pqiSoelLB4C0MVOFnn5cc+GLC6b97ex7WCkLFykuCcynpNrApb ORelRL68yqeIXDkY/Fw5tV8pwS38cWus6Wh97prh9a/qFqTjIACMLQeajadl6n5fHfB/ NkS9Lmh9b3pJfp1/yH83Zl/OaZmfZK6JzipV+IhQNp39CEdJREA1hG4jSD3zOTs6kR9z Pjyw== X-Gm-Message-State: APjAAAXSeG3t13t1h2reKvnrTpHRFbh6Z63ITNPfdXlsuAUi9iFsHT2T Kkz0obhO4InMEWqhztd24JE= X-Google-Smtp-Source: APXvYqz7lPs5rSEUcv1xGWgAtQWp6Crsw8GMZiY1lchE/mhZStW587hQcvkoJRaht6D19wTAFbEGyw== X-Received: by 2002:a50:91ac:: with SMTP id g41mr25475398eda.188.1553759781797; Thu, 28 Mar 2019 00:56:21 -0700 (PDT) Received: from rpluim-mac ([149.5.228.1]) by smtp.gmail.com with ESMTPSA id x3sm7705114ede.25.2019.03.28.00.56.19 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Thu, 28 Mar 2019 00:56:20 -0700 (PDT) From: Robert Pluim To: Juri Linkov Subject: Re: bug#34516: Multi-monitor frame sets References: <87zhqsx115.fsf@mail.linkov.net> <87r2byw802.fsf@mail.linkov.net> <20190302205424.GB20712@breton.holly.idiocy.org> <86r2bosuc0.fsf@gmail.com> <20190303114324.GA49402@breton.holly.idiocy.org> <20190304192017.GA21727@breton.holly.idiocy.org> <875zseft1x.fsf@mail.linkov.net> <8736n8t2ge.fsf@mail.linkov.net> X-Debbugs-No-Ack: yes Mail-Copies-To: never Gmane-Reply-To-List: yes Date: Thu, 28 Mar 2019 08:56:19 +0100 In-Reply-To: <8736n8t2ge.fsf@mail.linkov.net> (Juri Linkov's message of "Wed, 27 Mar 2019 23:46:57 +0200") Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 34516 Cc: Andy Moreton , Alan Third , 34516@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) >>>>> On Wed, 27 Mar 2019 23:46:57 +0200, Juri Linkov sai= d: Robert> It works fine for me. Of course, now that I=CA=BCm using it, Robert> I=CA=BCd like a 'make-frame-on-current-monitor' :-) I guess I Robert> can iterate over the frames elements of Robert> 'display-monitor-attributes-list', unless there=CA=BCs a 'what Robert> monitor is this frame on' primitive. >>=20 >> D'oh. 'frame-monitor-attributes'. Juri> Thanks for the hint. Now I added the default value to Juri> make-frame-on-monitor, so for the current monitor you can Juri> just do: M-x make-frame-on-monitor RET RET Thanks for that. I guess we can close the bug, if it isn=CA=BCt closed already. Robert From debbugs-submit-bounces@debbugs.gnu.org Thu Mar 28 17:59:20 2019 Received: (at 34516) by debbugs.gnu.org; 28 Mar 2019 21:59:20 +0000 Received: from localhost ([127.0.0.1]:34840 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1h9d3Q-0008J7-6s for submit@debbugs.gnu.org; Thu, 28 Mar 2019 17:59:20 -0400 Received: from indri.birch.relay.mailchannels.net ([23.83.209.92]:11612) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1h9d3N-0008Iy-PK for 34516@debbugs.gnu.org; Thu, 28 Mar 2019 17:59:19 -0400 X-Sender-Id: dreamhost|x-authsender|jurta@jurta.org Received: from relay.mailchannels.net (localhost [127.0.0.1]) by relay.mailchannels.net (Postfix) with ESMTP id 7C56A3E4D36; Thu, 28 Mar 2019 21:59:16 +0000 (UTC) Received: from pdx1-sub0-mail-a13.g.dreamhost.com (unknown [100.96.20.50]) (Authenticated sender: dreamhost) by relay.mailchannels.net (Postfix) with ESMTPA id 30D973E552C; Thu, 28 Mar 2019 21:59:16 +0000 (UTC) X-Sender-Id: dreamhost|x-authsender|jurta@jurta.org Received: from pdx1-sub0-mail-a13.g.dreamhost.com (pop.dreamhost.com [64.90.62.162]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384) by 0.0.0.0:2500 (trex/5.17.2); Thu, 28 Mar 2019 21:59:16 +0000 X-MC-Relay: Neutral X-MailChannels-SenderId: dreamhost|x-authsender|jurta@jurta.org X-MailChannels-Auth-Id: dreamhost X-Madly-Versed: 732be8056d89c6a8_1553810356320_1542798520 X-MC-Loop-Signature: 1553810356320:2226701789 X-MC-Ingress-Time: 1553810356319 Received: from pdx1-sub0-mail-a13.g.dreamhost.com (localhost [127.0.0.1]) by pdx1-sub0-mail-a13.g.dreamhost.com (Postfix) with ESMTP id E2C62806EA; Thu, 28 Mar 2019 14:59:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=linkov.net; h=from:to:cc :subject:references:date:in-reply-to:message-id:mime-version :content-type:content-transfer-encoding; s=linkov.net; bh=c9N2bl qGTAhnuiiUORKfBFXHqRo=; b=AaZB1O0KvUivGivQJEGAVR2H4NXQdgTjen6W+V eHqrPgBDF/RPDw+Yd/o915PddIdxDPdCWAj332+ydRzmnTeKEt6zdvMJldqmXYnl SmHCivvPOU8WQ+b3IMYSvbj/VH93pUr9Srrbfq20QzsPDF/UZaFBfzY5vDnCmdw8 pyXiM= Received: from mail.jurta.org (m91-129-108-250.cust.tele2.ee [91.129.108.250]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: jurta@jurta.org) by pdx1-sub0-mail-a13.g.dreamhost.com (Postfix) with ESMTPSA id ABFEB806E2; Thu, 28 Mar 2019 14:59:13 -0700 (PDT) X-DH-BACKEND: pdx1-sub0-mail-a13 From: Juri Linkov To: 34516@debbugs.gnu.org Subject: Re: bug#34516: Multi-monitor frame sets Organization: LINKOV.NET References: <87zhqsx115.fsf@mail.linkov.net> <87r2byw802.fsf@mail.linkov.net> <20190302205424.GB20712@breton.holly.idiocy.org> <86r2bosuc0.fsf@gmail.com> <20190303114324.GA49402@breton.holly.idiocy.org> <20190304192017.GA21727@breton.holly.idiocy.org> <875zseft1x.fsf@mail.linkov.net> <8736n8t2ge.fsf@mail.linkov.net> Date: Thu, 28 Mar 2019 23:57:43 +0200 In-Reply-To: (Robert Pluim's message of "Thu, 28 Mar 2019 08:56:19 +0100") Message-ID: <87imw2br1k.fsf@mail.linkov.net> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 X-VR-OUT-STATUS: OK X-VR-OUT-SCORE: -100 X-VR-OUT-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrgedutddrkeeggdduheejucetufdoteggodetrfdotffvucfrrhhofhhilhgvmecuggftfghnshhusghstghrihgsvgdpffftgfetoffjqffuvfenuceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmnecujfgurhephffvufhofhffjgfkfgggtgfgsehtkeertddtreejnecuhfhrohhmpefluhhrihcunfhinhhkohhvuceojhhurhhisehlihhnkhhovhdrnhgvtheqnecukfhppeeluddruddvledruddtkedrvdehtdenucfrrghrrghmpehmohguvgepshhmthhppdhhvghlohepmhgrihhlrdhjuhhrthgrrdhorhhgpdhinhgvthepledurdduvdelrddutdekrddvhedtpdhrvghtuhhrnhdqphgrthhhpefluhhrihcunfhinhhkohhvuceojhhurhhisehlihhnkhhovhdrnhgvtheqpdhmrghilhhfrhhomhepjhhurhhisehlihhnkhhovhdrnhgvthdpnhhrtghpthhtohepfeegheduieesuggvsggsuhhgshdrghhnuhdrohhrghenucevlhhushhtvghrufhiiigvpedt Content-Transfer-Encoding: quoted-printable X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 34516 Cc: Alan Third , Andy Moreton X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) > Juri> Thanks for the hint. Now I added the default value to > Juri> make-frame-on-monitor, so for the current monitor you can > Juri> just do: M-x make-frame-on-monitor RET RET > > Thanks for that. I guess we can close the bug, if it isn=CA=BCt closed > already. But what about your implementation of monitor names for macOS? From debbugs-submit-bounces@debbugs.gnu.org Fri Mar 29 04:17:06 2019 Received: (at 34516) by debbugs.gnu.org; 29 Mar 2019 08:17:06 +0000 Received: from localhost ([127.0.0.1]:35016 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1h9mhG-0004sD-08 for submit@debbugs.gnu.org; Fri, 29 Mar 2019 04:17:06 -0400 Received: from mail-qt1-f182.google.com ([209.85.160.182]:41111) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1h9mhD-0004re-QB for 34516@debbugs.gnu.org; Fri, 29 Mar 2019 04:17:04 -0400 Received: by mail-qt1-f182.google.com with SMTP id w30so1330538qta.8 for <34516@debbugs.gnu.org>; Fri, 29 Mar 2019 01:17:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:references:mail-copies-to:gmane-reply-to-list :date:message-id:mime-version:content-transfer-encoding; bh=JraTjsS8xdDzqVDD5g9W3NBHkp/C5fd0HDFPyJu5ZfQ=; b=P9dZarqVf/nfOXg04tx28jAH8s4cIvOO964fuI+qS+4aH4igInsVMXzj0WKmd6/UFX /tOjJQ/ecz1uP22j9tgfaMSpMMOesxJQy4P3kW+/QLL3G50bZZg9JvawhJRsNourrkSY Aui2RNat6WvhS28s+RKSLiWkL3S+Zn5iuwJW8h0svzr02Pg2gA0V9QigeQSERf4DwaKI zM5F2WWx5jnFFylQER+2QtlMQSK+ddEQEesAIMq5OX+kj2P8+MT/P6FkcZAHEUazjrmv pwE8nhAZu6WsoZ1nhAhkHvdeOxIKQZBRdq+IVKj45rQfnMqYxlLyjAn8ZeS8dE2hYTp7 WWFw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references:mail-copies-to :gmane-reply-to-list:date:message-id:mime-version :content-transfer-encoding; bh=JraTjsS8xdDzqVDD5g9W3NBHkp/C5fd0HDFPyJu5ZfQ=; b=ZkT1vAiR+i4ca1de1hBkV9J6x/QETzgQWQsHoXr43XE+nHbkVaP+rlwXwvGK3sL5Vu 7pI36YtVBZhjLLocS3dxrNawDnIEbtl86v/mqBxwRBvRObaUaYAKciTE/4t7roMbbwTz pzd6OC2kvEx4y/3ZaPuhBOVMGSNSl2YK+I8SSoc1OGKeNBLzeyE6zZJVRoiq8oI80JvW 1jj6OO6vWQWMYMlC+rGpQxFmpio4cMfpUiyHv1YetA17abOvriOqQSErATfhzllJikEZ tkakhe19KQdyHdKXWicZz33JLMm8Yqlzg9gd7XIKd+JDhdUgH8jgfIwbmf1qvSLNgMPO /Y6Q== X-Gm-Message-State: APjAAAVoCdBSn+XQYV7boW7w+xG26ES5EO/43rDkludyOfKay66lTlE8 AObqoFP+oie/ikhSBcVKjcs= X-Google-Smtp-Source: APXvYqzX23TQ0EWy/ruwiuvxLeknG1f2OFLJS2uz4n1PQIakISfU07oRYy4y7TEtrN9JQ54Xd05a6w== X-Received: by 2002:a0c:b5d0:: with SMTP id o16mr9905813qvf.187.1553847418040; Fri, 29 Mar 2019 01:16:58 -0700 (PDT) Received: from rpluim-mac ([149.5.228.1]) by smtp.gmail.com with ESMTPSA id o188sm740092qkd.30.2019.03.29.01.16.55 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 29 Mar 2019 01:16:56 -0700 (PDT) From: Robert Pluim To: Juri Linkov Subject: Re: bug#34516: Multi-monitor frame sets References: <87zhqsx115.fsf@mail.linkov.net> <87r2byw802.fsf@mail.linkov.net> <20190302205424.GB20712@breton.holly.idiocy.org> <86r2bosuc0.fsf@gmail.com> <20190303114324.GA49402@breton.holly.idiocy.org> <20190304192017.GA21727@breton.holly.idiocy.org> <875zseft1x.fsf@mail.linkov.net> <8736n8t2ge.fsf@mail.linkov.net> <87imw2br1k.fsf@mail.linkov.net> X-Debbugs-No-Ack: yes Mail-Copies-To: never Gmane-Reply-To-List: yes Date: Fri, 29 Mar 2019 09:16:54 +0100 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 34516 Cc: Andy Moreton , Alan Third , 34516@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) >>>>> On Thu, 28 Mar 2019 23:57:43 +0200, Juri Linkov sai= d: Juri> Thanks for the hint. Now I added the default value to Juri> make-frame-on-monitor, so for the current monitor you can Juri> just do: M-x make-frame-on-monitor RET RET >>=20 >> Thanks for that. I guess we can close the bug, if it isn=CA=BCt >> closed already. Juri> But what about your implementation of monitor names for Juri> macOS? The fake ones? I guess I can push that, unless we have a working way to get the real ones. I haven=CA=BCt had a chance to look at the other project suggested by someone on this thread, nor do I know what license it=CA=BCs under. Current version below. Robert >From abcc4431240f9a9b3b9d8a22b3acbdb30b28f7d4 Mon Sep 17 00:00:00 2001 From: Robert Pluim Date: Thu, 28 Feb 2019 10:13:05 +0100 Subject: [PATCH] Provide a fallback monitor name on macOS To: emacs-devel@gnu.org The fix for Bug#34516 provides a way to make a frame on a specific monitor. It relies on monitor names being available, which is not the case for recent versions of macOS, so provide fake ones of the form Monitorx. * src/nsfns.m (Fns_display_monitor_attributes_list): Provide a fallback for the monitor name if the existing methods don't work. --- src/nsfns.m | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/nsfns.m b/src/nsfns.m index ee7598a1c7..3c4d8c91f3 100644 --- a/src/nsfns.m +++ b/src/nsfns.m @@ -2587,6 +2587,12 @@ Frames are listed from topmost (first) to bottommost= (last). */) =20 #ifdef NS_IMPL_COCOA m->name =3D ns_screen_name (did); + if (m->name =3D=3D NULL) /* Fallback value. */ + { + char name[28]; + snprintf (name, sizeof(name), "Monitor%lu", i+1); + m->name =3D xstrdup (name); + } =20 { CGSize mms =3D CGDisplayScreenSize (did); --=20 2.21.0.196.g041f5ea1cf From debbugs-submit-bounces@debbugs.gnu.org Sat Mar 30 18:16:53 2019 Received: (at 34516) by debbugs.gnu.org; 30 Mar 2019 22:16:53 +0000 Received: from localhost ([127.0.0.1]:37636 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hAMHU-0005H9-U2 for submit@debbugs.gnu.org; Sat, 30 Mar 2019 18:16:53 -0400 Received: from catfish.maple.relay.mailchannels.net ([23.83.214.32]:15687) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hAMHS-0005Gz-TT for 34516@debbugs.gnu.org; Sat, 30 Mar 2019 18:16:52 -0400 X-Sender-Id: dreamhost|x-authsender|jurta@jurta.org Received: from relay.mailchannels.net (localhost [127.0.0.1]) by relay.mailchannels.net (Postfix) with ESMTP id 917158C1370; Sat, 30 Mar 2019 22:16:48 +0000 (UTC) Received: from pdx1-sub0-mail-a61.g.dreamhost.com (100-96-9-134.trex.outbound.svc.cluster.local [100.96.9.134]) (Authenticated sender: dreamhost) by relay.mailchannels.net (Postfix) with ESMTPA id E7A228C1410; Sat, 30 Mar 2019 22:16:47 +0000 (UTC) X-Sender-Id: dreamhost|x-authsender|jurta@jurta.org Received: from pdx1-sub0-mail-a61.g.dreamhost.com ([TEMPUNAVAIL]. [64.90.62.162]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384) by 0.0.0.0:2500 (trex/5.17.2); Sat, 30 Mar 2019 22:16:48 +0000 X-MC-Relay: Neutral X-MailChannels-SenderId: dreamhost|x-authsender|jurta@jurta.org X-MailChannels-Auth-Id: dreamhost X-Macabre-Descriptive: 145e59c03acb9726_1553984208437_2813132056 X-MC-Loop-Signature: 1553984208437:3875605053 X-MC-Ingress-Time: 1553984208436 Received: from pdx1-sub0-mail-a61.g.dreamhost.com (localhost [127.0.0.1]) by pdx1-sub0-mail-a61.g.dreamhost.com (Postfix) with ESMTP id EE6BE81A39; Sat, 30 Mar 2019 15:16:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=linkov.net; h=from:to:cc :subject:references:date:in-reply-to:message-id:mime-version :content-type:content-transfer-encoding; s=linkov.net; bh=5ZCuL4 FxHyUw+ufj38LmSfb7dHI=; b=dyobPcigYz1jX7XbV72UQeEZc/l3SNuOJtd6r+ d4jTLl25jBuqY9KJ8APTv4Qz/g2QabNgCXuBwKQL+YtDtnSKlDNapUpkP47CYiTn vXh4EK3D2TtR9RE0ItyMCWpnEMZTh/JbxS7A8uBQ/PVGrftL6s1XSk77quTaUAG4 72uiM= Received: from mail.jurta.org (m91-129-99-202.cust.tele2.ee [91.129.99.202]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: jurta@jurta.org) by pdx1-sub0-mail-a61.g.dreamhost.com (Postfix) with ESMTPSA id 6279081A35; Sat, 30 Mar 2019 15:16:41 -0700 (PDT) X-DH-BACKEND: pdx1-sub0-mail-a61 From: Juri Linkov To: 34516@debbugs.gnu.org Subject: Re: bug#34516: Multi-monitor frame sets Organization: LINKOV.NET References: <87zhqsx115.fsf@mail.linkov.net> <87r2byw802.fsf@mail.linkov.net> <20190302205424.GB20712@breton.holly.idiocy.org> <86r2bosuc0.fsf@gmail.com> <20190303114324.GA49402@breton.holly.idiocy.org> <20190304192017.GA21727@breton.holly.idiocy.org> <875zseft1x.fsf@mail.linkov.net> <8736n8t2ge.fsf@mail.linkov.net> <87imw2br1k.fsf@mail.linkov.net> Date: Sat, 30 Mar 2019 23:47:51 +0200 In-Reply-To: (Robert Pluim's message of "Fri, 29 Mar 2019 09:16:54 +0100") Message-ID: <87a7hcxce0.fsf@mail.linkov.net> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 X-VR-OUT-STATUS: OK X-VR-OUT-SCORE: -100 X-VR-OUT-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrgedutddrkeelgdduieduucetufdoteggodetrfdotffvucfrrhhofhhilhgvmecuggftfghnshhusghstghrihgsvgdpffftgfetoffjqffuvfenuceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmnecujfgurhephffvufhofhffjgfkfgggtgfgsehtkeertddtreejnecuhfhrohhmpefluhhrihcunfhinhhkohhvuceojhhurhhisehlihhnkhhovhdrnhgvtheqnecukfhppeeluddruddvledrleelrddvtddvnecurfgrrhgrmhepmhhouggvpehsmhhtphdphhgvlhhopehmrghilhdrjhhurhhtrgdrohhrghdpihhnvghtpeeluddruddvledrleelrddvtddvpdhrvghtuhhrnhdqphgrthhhpefluhhrihcunfhinhhkohhvuceojhhurhhisehlihhnkhhovhdrnhgvtheqpdhmrghilhhfrhhomhepjhhurhhisehlihhnkhhovhdrnhgvthdpnhhrtghpthhtohepfeegheduieesuggvsggsuhhgshdrghhnuhdrohhrghenucevlhhushhtvghrufhiiigvpedt Content-Transfer-Encoding: quoted-printable X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 34516 Cc: Alan Third , Andy Moreton X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) > Juri> But what about your implementation of monitor names for > Juri> macOS? > > The fake ones? I guess I can push that, unless we have a working way > to get the real ones. I haven=CA=BCt had a chance to look at the other > project suggested by someone on this thread, nor do I know what > license it=CA=BCs under. Current version below. I think better fake than none, when it produces consistent names at least within one Emacs session. From debbugs-submit-bounces@debbugs.gnu.org Mon Apr 01 07:29:55 2019 Received: (at 34516) by debbugs.gnu.org; 1 Apr 2019 11:29:55 +0000 Received: from localhost ([127.0.0.1]:38891 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hAv8V-0002ZQ-Ev for submit@debbugs.gnu.org; Mon, 01 Apr 2019 07:29:55 -0400 Received: from mail-wr1-f52.google.com ([209.85.221.52]:36812) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hAv8T-0002Yz-9N for 34516@debbugs.gnu.org; Mon, 01 Apr 2019 07:29:53 -0400 Received: by mail-wr1-f52.google.com with SMTP id y13so11557763wrd.3 for <34516@debbugs.gnu.org>; Mon, 01 Apr 2019 04:29:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:references:mail-copies-to:gmane-reply-to-list :date:in-reply-to:message-id:mime-version:content-transfer-encoding; bh=k4bAQMNXQmpEalLW5FIrkJDJA0argyFWPWBnirzQmzU=; b=UkJ7+tUse0pcmclH2GGnoRUbYDfIcjsbYU46tPQokhc6TBMQzTIkR16E1UIkM1CFgq wBP1u5QRYOqcc+TBBGljhIROfOeGL1OyaYEWiz+L8r8HMAGU7E662qkJTigYMpRo7+WA gkKeiuigvljOiU7kfqmNdua1vfjWDbL/kIvPmI3x6Tq31n4Lwtu/DCetElUIhRn7R0xr +sqRnqbcI9Akt0s+/Tqs0J30bPSd3RFYZFvRJ0wSzD5euO3upY+G9EWvSpH8En5ew7XN p+k2/L4D9fDJG2YieWWXK8AGuxp7qeso31w2eS2abdcqewvdYIlE8rXb/CaoJ68eDvLS IJAw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references:mail-copies-to :gmane-reply-to-list:date:in-reply-to:message-id:mime-version :content-transfer-encoding; bh=k4bAQMNXQmpEalLW5FIrkJDJA0argyFWPWBnirzQmzU=; b=S0fWMbYNTtV4aGwKTTpZxQzgQ3z/mOeinad/+AGARTZ1d95N+AYOgGdl58yfWK9OJK TiD2Fk2dBj+SBfuFayQRE5Z+9Wq/hx626oftMhKBGumRE2tkSFDMI+f23UnYg7GoCrZA bb8kCUl9yS95GaSJOOf6+WdConYaymz3xjYfJnlLnHoJOamg2cyHoqIng4Iu9xJL4TM9 Q6fKz6EpK6gneL/E3xzGIZWa251FWwfV3wAXALzWBntymzt0mC+TxuPfXdz0z1E1e+E4 Vg62GPc7KTKXzUz8STmGTslqNUM37fmeGgjluIDee5/yCW/IuRGygLbRU39sVTjmLptD XhhQ== X-Gm-Message-State: APjAAAVI1cCmPotUMLhVKLr7hmYWyebviMeQsWq0G2k3jvNzvlhl+iXK qkOkqAZ91pTM+/hdKOswv2I= X-Google-Smtp-Source: APXvYqwFLVniywEHGLxpsl6G0dFk0GEtznOnIko7YodHfw2vC01DMNs8QRAKhhq2SA8aH4BtNdEbbA== X-Received: by 2002:a5d:6b04:: with SMTP id v4mr2265125wrw.69.1554118187404; Mon, 01 Apr 2019 04:29:47 -0700 (PDT) Received: from rpluim-mac ([149.5.228.1]) by smtp.gmail.com with ESMTPSA id q16sm8453985wmc.39.2019.04.01.04.29.45 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Mon, 01 Apr 2019 04:29:45 -0700 (PDT) From: Robert Pluim To: Juri Linkov Subject: Re: bug#34516: Multi-monitor frame sets References: <87zhqsx115.fsf@mail.linkov.net> <87r2byw802.fsf@mail.linkov.net> <20190302205424.GB20712@breton.holly.idiocy.org> <86r2bosuc0.fsf@gmail.com> <20190303114324.GA49402@breton.holly.idiocy.org> <20190304192017.GA21727@breton.holly.idiocy.org> <875zseft1x.fsf@mail.linkov.net> <8736n8t2ge.fsf@mail.linkov.net> <87imw2br1k.fsf@mail.linkov.net> <87a7hcxce0.fsf@mail.linkov.net> X-Debbugs-No-Ack: yes Mail-Copies-To: never Gmane-Reply-To-List: yes Date: Mon, 01 Apr 2019 13:29:44 +0200 In-Reply-To: <87a7hcxce0.fsf@mail.linkov.net> (Juri Linkov's message of "Sat, 30 Mar 2019 23:47:51 +0200") Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 34516 Cc: Andy Moreton , Alan Third , 34516@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) >>>>> On Sat, 30 Mar 2019 23:47:51 +0200, Juri Linkov sai= d: Juri> But what about your implementation of monitor names for Juri> macOS? >>=20 >> The fake ones? I guess I can push that, unless we have a >> working way to get the real ones. I haven=CA=BCt had a chance to >> look at the other project suggested by someone on this thread, >> nor do I know what license it=CA=BCs under. Current version below. Juri> I think better fake than none, when it produces consistent Juri> names at least within one Emacs session. I think it should do, except if the user changes which monitor is the primary one. Robert From unknown Sat Jun 21 03:13:58 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Tue, 30 Apr 2019 11:24:03 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator