From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Michael Albinus Newsgroups: gmane.emacs.devel Subject: Re: User interaction from multiple threads Date: Wed, 15 Aug 2018 20:04:03 +0200 Message-ID: <871saz5wx8.fsf@gmx.de> 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: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: blaine.gmane.org 1534356194 18475 195.159.176.226 (15 Aug 2018 18:03:14 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Wed, 15 Aug 2018 18:03:14 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) Cc: martin rudalics , Eli Zaretskii , emacs-devel@gnu.org To: Elias =?utf-8?Q?M=C3=A5rtenson?= Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Aug 15 20:03:10 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 1fq08T-0004hm-RI for ged-emacs-devel@m.gmane.org; Wed, 15 Aug 2018 20:03:09 +0200 Original-Received: from localhost ([::1]:50825 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fq0Aa-0001oJ-DF for ged-emacs-devel@m.gmane.org; Wed, 15 Aug 2018 14:05:20 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:43737) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fq09f-0001n2-UF for emacs-devel@gnu.org; Wed, 15 Aug 2018 14:04:24 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fq09X-0003sR-Vz for emacs-devel@gnu.org; Wed, 15 Aug 2018 14:04:20 -0400 Original-Received: from mout.gmx.net ([212.227.17.22]:47759) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fq09P-0003qZ-Hy; Wed, 15 Aug 2018 14:04:07 -0400 Original-Received: from detlef.gmx.de ([79.140.117.178]) by mail.gmx.com (mrgmx103 [212.227.17.168]) with ESMTPSA (Nemesis) id 0MMTZa-1fnGKA30Pe-008L84; Wed, 15 Aug 2018 20:04:04 +0200 In-Reply-To: ("Elias \=\?utf-8\?Q\?M\=C3\=A5rtenson\=22's\?\= message of "Thu, 16 Aug 2018 00:27:14 +0800") X-Provags-ID: V03:K1:SeoH7yXsk2KTviVoCK5SGVxJVY+zdgxIUF/81ajv1qHkRqe9CWM +Mm4tnNZrxRz4uk6xa6bQxGs51UKUiRbLV4RJGCYgOxN4+JOnVwF/RpUgo3v9Yq8eUIjDiL ANBIbSfhjltcKt5YqUWyRnYLrOImhcpxO5ob8/G45HtfDV6bynjT3MUQVLIlWkurBgSxFcl c4CKAWvoVgXA73T41a3Fg== X-UI-Out-Filterresults: notjunk:1;V01:K0:tPADcItD4CA=:5ozhq8fe8E0Bl3tuv4b2Hj P/btLUDqm3khbeM25dtpSa1BqQ0C22JSh1faOybYcCM27qoGeZWPlJi+x3oHlcSrUZHsbm85P tfhQZxyt8mPW4nLvT93e0KxVXQTj/yVD5xBj/SzAFRka/piF3rE9cRrGNoMoUNvSGgCffuar1 bmxNGIH14C8tTaQyufM7BEKcjkj2T+U6nES4W5ZUKpdhiKOXrF7wD8gLukUGZwkc+1vgPMQHM JzMKVTgOANUpLMLIsV8ODWCmdrxx9ZFOwE50RsG9gn0W0nkLDFzBnagXegnP7jstvNf9krc7l 9iJkfifVAd9AfveqMygvTCTsawwSpMJJ0CUuvgyLlsIvCjQ6Ehx0IwTBXo19LmCQobrm+KZUh zUOKtztmIuy54c7yX/H8B2WSshx3dVMqQ3Z8UNCTux18i7K4zky8NW1R1akGvHnjB+ibK00LE WRBg9JP0j42wvZoYc6N5YcklzUx4TAZ8kpDY8Woq/CfZksvlR3BQT3Jetlnp+fW6+Sx2xMG8K Pt6YpQfC/dgm9eJg1CirfwMQUspvKLCE9xlcbkPyt0jNGT0syGpuios26e1nG2YWYsz2jgvgT h841ujUj4lJp1Jy33UL7OOSaPOUIGA9zRdiljKexlUgvHGhIp7OLWQ1zLrdkCx+N20kNpH/cl cU1MAvc1L5ofF/CTvLb17fcuNABKOUfCexu9jnayr8yltQ2PpvQ5mOsEZaVx69xCpxg7xuXMn NbxaYd3wQfATun9RqeyLxB3xh8IibtVBub7LyNU4FxjdXMxzXS0+xjVQ7mwj0gjWbQr86qpH X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 212.227.17.22 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:228567 Archived-At: Elias M=C3=A5rtenson writes: Hi Elias, > 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.=20 Why? I don't see a reason to get a new frame for a thread. > 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.=20 > > 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?".=20 I haven't proposed ever such a scenario. User input is a critical section in a thread. Once a prompt appears in a minibuffer, the focus of user input must be changed to another thread untilthe complete input is read > Even if you check the minibuffer before you type every key, the thread > could still steal focus just before you type a key.=20 > > I don't care much about how this is implemented, but I certainly would > not want focus to be switched off without warning.=20 Nobody wants this. I believe, all of us agree with this. > Regards,=20 > Elias=20 Best regards, Michael.