From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Robert Pluim Newsgroups: gmane.emacs.bugs Subject: bug#34516: Multi-monitor frame sets Date: Mon, 04 Mar 2019 21:18:05 +0100 Message-ID: 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: quoted-printable Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="155515"; mail-complaints-to="usenet@blaine.gmane.org" Cc: Andy Moreton , 34516@debbugs.gnu.org To: Alan Third Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Mar 04 21:38:21 2019 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1h0uLr-000eLA-R5 for geb-bug-gnu-emacs@m.gmane.org; Mon, 04 Mar 2019 21:38:19 +0100 Original-Received: from localhost ([127.0.0.1]:60897 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1h0uLq-0000Yy-OH for geb-bug-gnu-emacs@m.gmane.org; Mon, 04 Mar 2019 15:38:18 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:51289) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1h0u3F-0002PZ-MS for bug-gnu-emacs@gnu.org; Mon, 04 Mar 2019 15:19:06 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1h0u3C-0002OV-Dt for bug-gnu-emacs@gnu.org; Mon, 04 Mar 2019 15:19:05 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:46722) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1h0u3C-0002Nz-9b for bug-gnu-emacs@gnu.org; Mon, 04 Mar 2019 15:19:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1h0u3B-0007Wb-UD for bug-gnu-emacs@gnu.org; Mon, 04 Mar 2019 15:19:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Robert Pluim Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 04 Mar 2019 20:19:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 34516 X-GNU-PR-Package: emacs Original-Received: via spool by 34516-submit@debbugs.gnu.org id=B34516.155173069828851 (code B ref 34516); Mon, 04 Mar 2019 20:19:01 +0000 Original-Received: (at 34516) by debbugs.gnu.org; 4 Mar 2019 20:18:18 +0000 Original-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 Original-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 Original-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) Original-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) In-Reply-To: <20190304192017.GA21727@breton.holly.idiocy.org> (Alan Third's message of "Mon, 4 Mar 2019 19:20:17 +0000") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:156042 Archived-At: 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