[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: display-until.el - Display a window or frame topmost in the frame st
From: |
Eli Zaretskii |
Subject: |
Re: display-until.el - Display a window or frame topmost in the frame stack until a condition or timeout occurs |
Date: |
Mon, 18 Dec 2017 21:05:12 +0200 |
> From: Robert Weiner <address@hidden>
> Date: Mon, 18 Dec 2017 13:17:04 -0500
> Cc: martin rudalics <address@hidden>, emacs-devel <address@hidden>
>
> If possible, shouldn't make-frame wait until the frame is
> created and mapped to the display if the creation command
> demands mapping? I guess you could start editing properties
> on an as yet unmapped frame but in the general case, wouldn't
> a programmer want the frame and its constituent parts to
> exist prior to moving on?
>
> Since frame creation is done by a separate thread now,
> are all following operations on the frame queued until the
> whole frame is built or will they be lost if invoked during
> this interim creation period. For example, if I change an
> item on the toolbar prior to full toolbar creation, what
> happens?
AFAIK, you can operate on the frame, as long as you don't expect it to
be displayed right away.
> How can an Elisp programmer be sure the frame creation has
> finished without any reference to its creation thread?
The usual way is to insert
(sit-for 0 t)
before the code that needs the frame visible. You can see this, e.g.,
in fancy-splash-frame and in some other places.
- display-until.el - Display a window or frame topmost in the frame stack until a condition or timeout occurs, Robert Weiner, 2017/12/17
- Re: display-until.el - Display a window or frame topmost in the frame stack until a condition or timeout occurs, martin rudalics, 2017/12/17
- Re: display-until.el - Display a window or frame topmost in the frame stack until a condition or timeout occurs, Robert Weiner, 2017/12/17
- Re: display-until.el - Display a window or frame topmost in the frame stack until a condition or timeout occurs, martin rudalics, 2017/12/18
- Re: display-until.el - Display a window or frame topmost in the frame stack until a condition or timeout occurs, Eli Zaretskii, 2017/12/18
- Re: display-until.el - Display a window or frame topmost in the frame stack until a condition or timeout occurs, Robert Weiner, 2017/12/18
- Re: display-until.el - Display a window or frame topmost in the frame stack until a condition or timeout occurs,
Eli Zaretskii <=
- Re: display-until.el - Display a window or frame topmost in the frame stack until a condition or timeout occurs, Robert Weiner, 2017/12/18
- Re: display-until.el - Display a window or frame topmost in the frame stack until a condition or timeout occurs, Eli Zaretskii, 2017/12/19
- Re: display-until.el - Display a window or frame topmost in the frame stack until a condition or timeout occurs, martin rudalics, 2017/12/20
- Re: display-until.el - Display a window or frame topmost in the frame stack until a condition or timeout occurs, Robert Weiner, 2017/12/20