From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Richard Stallman Newsgroups: gmane.emacs.devel Subject: Re: User interaction from multiple threads Date: Sun, 26 Aug 2018 16:43:42 -0400 Message-ID: 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> Reply-To: rms@gnu.org NNTP-Posting-Host: blaine.gmane.org Content-Type: text/plain; charset=Utf-8 X-Trace: blaine.gmane.org 1535316366 16889 195.159.176.226 (26 Aug 2018 20:46:06 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sun, 26 Aug 2018 20:46:06 +0000 (UTC) Cc: psainty@orcon.net.nz, hw@adminart.net, emacs-devel@gnu.org, emacs-devel-bounces+psainty=orcon.net.nz@gnu.org, gazally@runbox.com To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Aug 26 22:46:01 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 1fu1v7-0004IM-57 for ged-emacs-devel@m.gmane.org; Sun, 26 Aug 2018 22:46:01 +0200 Original-Received: from localhost ([::1]:50335 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fu1xD-00009B-9C for ged-emacs-devel@m.gmane.org; Sun, 26 Aug 2018 16:48:11 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:42649) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fu1tv-0005ym-1n for emacs-devel@gnu.org; Sun, 26 Aug 2018 16:44:53 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fu1tq-0003bn-5K for emacs-devel@gnu.org; Sun, 26 Aug 2018 16:44:46 -0400 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:50158) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fu1ss-0002GI-DB; Sun, 26 Aug 2018 16:43:42 -0400 Original-Received: from rms by fencepost.gnu.org with local (Exim 4.82) (envelope-from ) id 1fu1ss-0000WN-29; Sun, 26 Aug 2018 16:43:42 -0400 In-Reply-To: <83bm9q6x7v.fsf@gnu.org> (message from Eli Zaretskii on Sat, 25 Aug 2018 22:51:48 +0300) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e 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:228951 Archived-At: [[[ To any NSA and FBI agents reading my email: please consider ]]] [[[ whether defending the US Constitution against all enemies, ]]] [[[ foreign or domestic, requires you to follow Snowden's example. ]]] > I think we are miscommunicating regarding what exactly constitutes > "asking for input". I assumed you meant low-level functions such as > wait_reading_process_output, but you seem to be talking about much > higher-level functions, like read-from-minibuffer. Right. Because those are the functions that prompt. Doing it at that level is a possible solution. I don't insist it is the best solution -- I am not sure what others there are -- but I think it is worth thinking about. > > Emacs could add the thread ID at the start of a prompt > > when there are multiple threads that could be asking for input, > > such that there is a possibility of confusion. > > > > That could avoid lengthening the prompts in the usual cases. > I don't see how this would solve the problem, since thread IDs will > always be quite short. It will still be clutter -- helpful in complex situations, unnecessary in many simple situations. If it is possible to recognize a common case and omit the thread IDs, I think lots of users who don't use threads will appreciate that. -- Dr Richard Stallman President, Free Software Foundation (https://gnu.org, https://fsf.org) Internet Hall-of-Famer (https://internethalloffame.org)