From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: hw Newsgroups: gmane.emacs.devel Subject: Re: User interaction from multiple threads Date: Mon, 27 Aug 2018 16:35:17 +0200 Organization: my virtual residence Message-ID: <87lg8rj2sa.fsf@himinbjorg.adminart.net> References: <838t59j821.fsf@gnu.org> <87lg92q7ih.fsf@runbox.com> <83a7phdl7r.fsf@gnu.org> <61492e7f622303d02405bedbe65fabae@webmail.orcon.net.nz> <83pnybdaer.fsf@gnu.org> <837ekicw7i.fsf@gnu.org> <877ekiierh.fsf@himinbjorg.adminart.net> <834lflb2fj.fsf@gnu.org> <83h8jk9l41.fsf@gnu.org> <8336v2994c.fsf@gnu.org> <83bm9q6x7v.fsf@gnu.org> <874lfi863s.fsf@himinbjorg.adminart.net> <83va7x5guc.fsf@gnu.org> <871sakl97g.fsf@himinbjorg.adminart.net> <87va7w8dt8.fsf@gmx.de> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1535381229 20393 195.159.176.226 (27 Aug 2018 14:47:09 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 27 Aug 2018 14:47:09 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux) Cc: gazally@runbox.com, rms@gnu.org, psainty@orcon.net.nz, emacs-devel@gnu.org, emacs-devel-bounces+psainty=orcon.net.nz@gnu.org, Eli Zaretskii To: Michael Albinus Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Aug 27 16:47:04 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 1fuInI-0005Bn-6B for ged-emacs-devel@m.gmane.org; Mon, 27 Aug 2018 16:47:04 +0200 Original-Received: from localhost ([::1]:53585 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fuIpO-0002Ts-Dv for ged-emacs-devel@m.gmane.org; Mon, 27 Aug 2018 10:49:14 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:49107) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fuIo3-0002Rn-3m for emacs-devel@gnu.org; Mon, 27 Aug 2018 10:47:51 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fuIo2-0005Nm-9h for emacs-devel@gnu.org; Mon, 27 Aug 2018 10:47:51 -0400 Original-Received: from mo6-p01-ob.smtp.rzone.de ([2a01:238:20a:202:5301::2]:24507) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1fuIny-0005Jd-TQ; Mon, 27 Aug 2018 10:47:47 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; t=1535381262; s=strato-dkim-0002; d=adminart.net; h=Sender:References:Message-ID:Date:In-Reply-To:Subject:Cc:To:From: X-RZG-CLASS-ID:X-RZG-AUTH:From:Subject:Sender; bh=TYWJTrGM9ayx11ZafEZA+5BRObxZNqPeRpVE19k/Zl0=; b=WaBBOLjSvWoOr8X+dDEqSETK/kTmop+Dl0EKBZ5139gXOUvktXWbsrCpq7Un8/5RNb i/HAbSXV+kfKYsCyR92Gx6z/g//nSEoL1g9e7ouhjWqrt0fPfy/KQtAyZcFTMO9luztI 2DIJbVcZ3WtKGrThEEFv1hig7LVg8QhkDdLPsNtIoLx7K7HPX3510fjtfmtcps3cLsrh /kkd9sZGYQ0gtqxKo3aCEbs0WpBag/+fGXI4BQULs5H0Tp6ocKoHnmW2dyvF1u+cCm46 ivwTvFFx70Y1ENaqutRFMWunaMS370y+RH34UScz3oOQT2GUfXfWDFD5YlNeSsWKSt66 XmsQ== X-RZG-AUTH: ":O2kGeEG7b/pS1FS4THaxjVF9w0vVgfQ9xGcjwO5WMRo5c+h5ceMqQWZ3yrBp+AVdIIwXjneEe9k=" X-RZG-CLASS-ID: mo00 Original-Received: from lee by himinbjorg.adminart.net with local (Exim 4.90_1) (envelope-from ) id 1fuInj-0001aX-Mf; Mon, 27 Aug 2018 16:47:31 +0200 In-Reply-To: <87va7w8dt8.fsf@gmx.de> (Michael Albinus's message of "Mon, 27 Aug 2018 09:32:35 +0200") X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2a01:238:20a:202:5301::2 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:228971 Archived-At: Michael Albinus writes: > hw writes: > >> Simple: Either both threads are in the background because meanwhile, I'm >> doing something else, or one of the threads is in the background and the >> other one is in the foreground. > > Emacs does not support parallel execution of threads. There's only one > thread which is active, no other thread "in the background" is working > the same time. They are either blocked, or waiting that control is > given to them. This is what I have been missing. It probably means you need to queue all requests for input because there is no other way for the user to know what a request is about but checking the queue. You could give the information along with the prompt, but I wouldn't want to be interrupted and forced to attend to an unrelated prompt while doing something --- and I also don't want to have to maintain the queue when I, for example, want to visit a file and am prompted for the file name. Using one thread per terminal/frame may bring about problems I am not knowledgeable enough to anticipate. I would imagine each terminal/frame would need to have it's own mini-buffer. Why doesn't Emacs support executing multiple threads in parallel?