From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: =?UTF-8?Q?Elias_M=C3=A5rtenson?= Newsgroups: gmane.emacs.devel Subject: Re: User interaction from multiple threads Date: Thu, 16 Aug 2018 00:27:14 +0800 Message-ID: References: <838t59j821.fsf@gnu.org> <5B73DF10.5070200@gmx.at> <87muto5998.fsf@gmx.de> <5B73ED7E.5000102@gmx.at> <87in4b6hwf.fsf@gmx.de> <5B741C4E.6060403@gmx.at> <87efez6b0q.fsf@gmx.de> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="0000000000004ffae705737bcd86" X-Trace: blaine.gmane.org 1534350836 7199 195.159.176.226 (15 Aug 2018 16:33:56 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Wed, 15 Aug 2018 16:33:56 +0000 (UTC) Cc: martin rudalics , Eli Zaretskii , emacs-devel@gnu.org To: Michael Albinus Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Aug 15 18:33:52 2018 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fpyk3-0001mz-Vy for ged-emacs-devel@m.gmane.org; Wed, 15 Aug 2018 18:33:52 +0200 Original-Received: from localhost ([::1]:50526 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fpymA-0001wv-A7 for ged-emacs-devel@m.gmane.org; Wed, 15 Aug 2018 12:36:02 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:51605) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fpyls-0001un-5a for emacs-devel@gnu.org; Wed, 15 Aug 2018 12:35:53 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fpyks-00063F-TV for emacs-devel@gnu.org; Wed, 15 Aug 2018 12:35:27 -0400 Original-Received: from mail-io0-x22f.google.com ([2607:f8b0:4001:c06::22f]:41119) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fpyds-0001WT-7t; Wed, 15 Aug 2018 12:27:29 -0400 Original-Received: by mail-io0-x22f.google.com with SMTP id q4-v6so1447456iob.8; Wed, 15 Aug 2018 09:27:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=roFA8xRAtLnc2FY3EFX7ozWlNim+WJK0XYPE5FnR2bo=; b=hIDgzKDt1/Aw5y21Tm7wexJON0dH9spvYerZreKV8+vrgstJpiif+VWOtTrCLv3xHv vCCZFMW744IG2bNCkg4rj3WPHLfatbTr3m1JUJmRX0i8wr4gJyvzJKntFOQPr5zyqXIa COUsksgQOodPQ2LcVH1xLfSnu90RF06Ue3RYaDu6/rxSviehDf/94NJFdArEwXGj7DD3 Y3cMfsAHo5u4ZXgrDbKP+d54E3EeJU1owWh4Rm81VrzrnXGLFjGMv324r2RLMavlVg8M sM2MLEv24xTqe88JJS63aeK3CFmZWQCBQ5xyEpgXC2dZiajPcr9sdXgJS3tZDvDi5trB nHlQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=roFA8xRAtLnc2FY3EFX7ozWlNim+WJK0XYPE5FnR2bo=; b=gBLY1jgx3iPHY3Dad7VKIvZzHdUzdOHruAoaXWN7L0WYUFfPNso/GxZ4pq2UcNxq3d eSRHThif3nAZHx2VJ8grm/6ovls8V9bdSwt6CQ8ju9OYX8aeZ/nWiEtistaP/h6Jjlw7 oAfNZ5MWawDtCxfN2hPQzmA68rETl6L+1ES2Uy/J3mRI/zHgVkNpPdLS7Tt22/1TebTM Sn/oWWw+GPdPAtSgBmFkVM5ASQYGSiv9cUg39V6Ay9aScyEiHlYpZBbZbHNH2Jvhc8aN bYSAQ5eD/YnAe+uAcZq8nTevsKeq+JALmagUmkRa1O7tHhpnOce4Vdd3BACfsituTSYL acFQ== X-Gm-Message-State: AOUpUlEnGkXqIZP29aCljr9me1t38xuSkEDZPFkT07v2DCBQooJmSlJT o9vEg00sqD5neHPPupB229ly8RN1mzp+/HAD5ZI= X-Google-Smtp-Source: AA+uWPy6g8p1SyJo2oYCnfcVv7G5k0QnI1vhUeLlyPy41/afj9uBL/4d3VFuTp7fHLu1T7Iu4ExjSvNpMZuSih5nEN4= X-Received: by 2002:a6b:5d1a:: with SMTP id r26-v6mr22297949iob.170.1534350446293; Wed, 15 Aug 2018 09:27:26 -0700 (PDT) In-Reply-To: <87efez6b0q.fsf@gmx.de> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:4001:c06::22f X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:228560 Archived-At: --0000000000004ffae705737bcd86 Content-Type: text/plain; charset="UTF-8" On Wed, 15 Aug 2018, 21:11 Michael Albinus, wrote: > > But this wasn't the point. I just wanted to show that the proposed > behavior (new frame for every thread with user input) could result in > surprises. > But if the user really fires off 250 threads, then it makes sense that they get that many frames. After all, this is a computer and they are supposed to do what you tell them to do. In any case, just magically switching focus to a y-or-n-p that was called in a different thread sounds like it could be incredibly error prone. Imagine if you're typing in a buffer and you're writing a word that has the letter y in it. As you are about to insert the y into the buffer, a background thread asks "are you sure you want to delete all your files?". Even if you check the minibuffer before you type every key, the thread could still steal focus just before you type a key. I don't care much about how this is implemented, but I certainly would not want focus to be switched off without warning. Regards, Elias > --0000000000004ffae705737bcd86 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
On Wed, = 15 Aug 2018, 21:11 Michael Albinus, <michael.albinus@gmx.de> wrote:

But this wasn't the point. I just wanted to show that the proposed
behavior (new frame for every thread with user input) could result in
surprises.

But if the user really fires off 250 threads, then it makes sense= that they get that many frames. After all, this is a computer and they are= supposed to do what you tell them to do.=C2=A0

=
In any case, just magically switching focus to a y-= or-n-p that was called in a different thread sounds like it could be incred= ibly error prone.=C2=A0

= Imagine if you're typing in a buffer and you're writing a word that= has the letter y in it. As you are about to insert the y into the buffer, = a background thread asks "are you sure you want to delete all your fil= es?".=C2=A0

Even if= you check the minibuffer before you type every key, the thread could still= steal focus just before you type a key.=C2=A0

<= /div>
I don't care much about how this is implemented,= but I certainly would not want focus to be switched off without warning.= =C2=A0

Regards,=C2=A0
Elias=C2=A0
--0000000000004ffae705737bcd86--