all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Robert Weiner <rsw@gnu.org>
To: Eli Zaretskii <eliz@gnu.org>
Cc: martin rudalics <rudalics@gmx.at>, emacs-devel <emacs-devel@gnu.org>
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 13:17:04 -0500	[thread overview]
Message-ID: <CA+OMD9h0p8+kkToDGH_BB+2haBffbccUCLWGaMVwrShdzX=VOQ@mail.gmail.com> (raw)
In-Reply-To: <83tvwoow4a.fsf@gnu.org>

[-- Attachment #1: Type: text/plain, Size: 1865 bytes --]

On Mon, Dec 18, 2017 at 11:10 AM, Eli Zaretskii <eliz@gnu.org> wrote:

> ​​
> > Date: Mon, 18 Dec 2017 08:26:23 +0100
> ​​
> > From: martin rudalics <rudalics@gmx.at>
> ​​
> > Cc: emacs-devel <emacs-devel@gnu.org>
> ​​
> >
> ​​
> >  > ​Please describe in detail what you see and what you think
> ​​
> >  > is wrong but update to 1.1 attached first.​
> ​​
> >
> ​​
> > Here on Windows XP I mostly see an incompletely drawn frame with the
> ​​
> > entire or parts of the toolbar missing, sometimes also a completely
> ​​
> > blank frame.  More or less what you described earlier in another thread.
>
​​
​

> ​​
>
> ​​
> Which is quite expected, since the frame is created by a separate
> ​​
> thread, and the display-until library doesn't give Emacs a chance to
> ​​
> create it before it calls 'redisplay' (which has nothing to redisplay,
> ​​
> as the frame is not official yet), and then immediately goes into the
> ​​
> sleep-for loop (which doesn't redisplay).  I think.
>

​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?

How can an Elisp programmer be sure the frame creation has
finished without any reference to its creation thread?

Bob
​​

[-- Attachment #2: Type: text/html, Size: 5570 bytes --]

  reply	other threads:[~2017-12-18 18:17 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-12-17 17:28 display-until.el - Display a window or frame topmost in the frame stack until a condition or timeout occurs Robert Weiner
2017-12-17 18:13 ` martin rudalics
2017-12-17 18:46   ` Robert Weiner
2017-12-18  7:26     ` martin rudalics
2017-12-18 16:10       ` Eli Zaretskii
2017-12-18 18:17         ` Robert Weiner [this message]
2017-12-18 19:05           ` Eli Zaretskii
2017-12-18 19:19             ` Robert Weiner
2017-12-19 17:05               ` Eli Zaretskii
2018-01-02 17:36                 ` Robert Weiner
2017-12-20  8:54       ` martin rudalics
2017-12-20 13:44         ` Robert Weiner
2018-01-02 17:38         ` Robert Weiner
2018-01-07 16:08           ` martin rudalics
2018-01-16 17:06             ` Robert Weiner
2018-01-19 18:55         ` martin rudalics
2018-01-20  5:12           ` Noam Postavsky
2018-01-20 10:34             ` martin rudalics

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CA+OMD9h0p8+kkToDGH_BB+2haBffbccUCLWGaMVwrShdzX=VOQ@mail.gmail.com' \
    --to=rsw@gnu.org \
    --cc=eliz@gnu.org \
    --cc=emacs-devel@gnu.org \
    --cc=rswgnu@gmail.com \
    --cc=rudalics@gmx.at \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.