From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Juri Linkov Newsgroups: gmane.emacs.bugs Subject: bug#29713: 26.0; Provide completion for `make-frame-on-display' Date: Thu, 18 Mar 2021 19:32:01 +0200 Organization: LINKOV.NET Message-ID: <87mtv0nzam.fsf@mail.linkov.net> References: <87y310wkzb.fsf@mouse.gnus.org> <875zo4v1t1.fsf@mail.linkov.net> <87eegcwofb.fsf@tcd.ie> <8735wsque1.fsf@linkov.net> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="7156"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (x86_64-pc-linux-gnu) Cc: 29713@debbugs.gnu.org, Lars Ingebrigtsen To: "Basil L. Contovounesios" Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Mar 18 18:35:01 2021 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lMwY0-0001g9-Hw for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 18 Mar 2021 18:35:00 +0100 Original-Received: from localhost ([::1]:56016 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lMwXz-0006GE-F7 for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 18 Mar 2021 13:34:59 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:48846) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lMwW5-0004LL-U1 for bug-gnu-emacs@gnu.org; Thu, 18 Mar 2021 13:33:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:36403) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lMwW5-0001no-MI for bug-gnu-emacs@gnu.org; Thu, 18 Mar 2021 13:33:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lMwW5-0006I6-JZ for bug-gnu-emacs@gnu.org; Thu, 18 Mar 2021 13:33:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Juri Linkov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 18 Mar 2021 17:33:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 29713 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: fixed Original-Received: via spool by 29713-submit@debbugs.gnu.org id=B29713.161608876024152 (code B ref 29713); Thu, 18 Mar 2021 17:33:01 +0000 Original-Received: (at 29713) by debbugs.gnu.org; 18 Mar 2021 17:32:40 +0000 Original-Received: from localhost ([127.0.0.1]:47949 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lMwVj-0006HU-NF for submit@debbugs.gnu.org; Thu, 18 Mar 2021 13:32:39 -0400 Original-Received: from relay5-d.mail.gandi.net ([217.70.183.197]:48655) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lMwVh-0006Co-PH for 29713@debbugs.gnu.org; Thu, 18 Mar 2021 13:32:38 -0400 X-Originating-IP: 91.129.107.223 Original-Received: from mail.gandi.net (m91-129-107-223.cust.tele2.ee [91.129.107.223]) (Authenticated sender: juri@linkov.net) by relay5-d.mail.gandi.net (Postfix) with ESMTPSA id AFB961C0009; Thu, 18 Mar 2021 17:32:29 +0000 (UTC) In-Reply-To: <8735wsque1.fsf@linkov.net> (Juri Linkov's message of "Thu, 18 Mar 2021 19:04:42 +0200") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list 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-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:202630 Archived-At: >>> Maybe it could use `x-display-list'. But I don't know how portable it is. >>> Is `x-display-list' available on OSX and Windows? >> >> It's not available on --without-x builds: >> >> 0. ./src/emacs -Q >> 1. M-x toggle-debug-on-error RET >> 2. M-x make-frame-on-display RET >> Debugger entered--Lisp error: (void-function x-display-list) >> >> What's TRT here? > > Maybe fall back to previous implementation replaced by x-display-list > in 0746a9e275d, i.e. > > (if (fboundp 'x-display-list) > (x-display-list) > (delete-dups > (mapcar (lambda (frame) > (frame-parameter frame 'display)) > (frame-list)))) Or maybe better to fall back to 'make-frame'? I.e. don't signal an error, don't ask a question, just create a new frame on the current display. So on --without-x builds, make-frame-on-display could be like an alias to make-frame.