[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#29713: 26.0; Provide completion for `make-frame-on-display'
From: |
Juri Linkov |
Subject: |
bug#29713: 26.0; Provide completion for `make-frame-on-display' |
Date: |
Thu, 18 Mar 2021 19:32:01 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (x86_64-pc-linux-gnu) |
>>> 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.
bug#29713: 26.0; Provide completion for `make-frame-on-display', Basil L. Contovounesios, 2021/03/24