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: Sat, 01 Sep 2018 19:33:44 +0200 Organization: my virtual residence Message-ID: <87efefmoue.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> <23431.17784.483000.193228@gargle.gargle.HOWL> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1535824439 756 195.159.176.226 (1 Sep 2018 17:53:59 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sat, 1 Sep 2018 17:53:59 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1 (gnu/linux) Cc: Eli Zaretskii , emacs-devel@gnu.org To: Uday S Reddy Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Sep 01 19:53:54 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 1fwA5o-0008VZ-At for ged-emacs-devel@m.gmane.org; Sat, 01 Sep 2018 19:53:52 +0200 Original-Received: from localhost ([::1]:38009 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fwA7u-0003Gs-GA for ged-emacs-devel@m.gmane.org; Sat, 01 Sep 2018 13:56:02 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:56125) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fwA4P-0007GO-NQ for emacs-devel@gnu.org; Sat, 01 Sep 2018 13:52:26 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fw9uJ-0001rW-NY for emacs-devel@gnu.org; Sat, 01 Sep 2018 13:42:00 -0400 Original-Received: from mo6-p01-ob.smtp.rzone.de ([2a01:238:20a:202:5301::6]:12764) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1fw9uF-0001mg-FD; Sat, 01 Sep 2018 13:41:55 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; t=1535823710; 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=UAa5eSPFs9K/KOSpvOyWczsGnBJdvEfev0HZmRydmz0=; b=SDMNw+VX6KE/C+pluLpRrzVuT68gJzOJ//we/ztejMcpxJb4o64C2K/EfovMLZaBb6 OIVIsLHWQ7havYc+K2pdYbPoeeG7eOXXiklXKDIWBKXWu7o3IrIUOjR7sU17auCum/cw 21sPehw4JXoqHOLVM7DMLyzk62qjNtaNIuSkZhrsX39HHxjaXR943mtfWaha6KXw3D9b bQiR/Ygpng6x90F9eZ575YCktbt20YCkCGe5xATqlAARlYQ/rvIqPk5IAjQUg2eKjevi NnMmGFbfYWH8u1yjnVEMS5KsqvTSEU8zjOrjaPpLeeiqCgwQgZFpQpeJWGqWLcwdvhBI SSLw== X-RZG-AUTH: ":O2kGeEG7b/pS1FS4THaxjVF9w0vVgfQ9xGcjwO5WMRo5c+h5ceMqQWZ3yrBp+AVdIIwXjneEe9k=" X-RZG-CLASS-ID: mo00 Original-Received: from himinbjorg.adminart.net by smtp.strato.de (RZmta 43.21 DYNA|AUTH) with ESMTPSA id j020b1u81HfoESN (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (curve secp521r1 with 521 ECDH bits, eq. 15360 bits RSA)) (Client did not present a certificate); Sat, 1 Sep 2018 19:41:50 +0200 (CEST) Original-Received: from lee by himinbjorg.adminart.net with local (Exim 4.90_1) (envelope-from ) id 1fw9u9-0001lV-Nx; Sat, 01 Sep 2018 19:41:49 +0200 In-Reply-To: <23431.17784.483000.193228@gargle.gargle.HOWL> (Uday S. Reddy's message of "Thu, 30 Aug 2018 02:16:40 +0100") X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2a01:238:20a:202:5301::6 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:229167 Archived-At: Uday S Reddy writes: > Eli Zaretskii writes: > >> As a trivial example, consider 2 threads, one copying files, the other >> removing files. How do you know whether to confirm or not when the prompt >> says just "FOO (y or n)?" > > At a minimum, the elisp coder would have to give fuller prompts, e.g., > > copy FOO (y or n)? > remove FOO (y or n)? > > But still it is dangerous. If a "remove FOO?" prompt comes in the middle of > a series of "copy FOO?" prompts, the user is not going to notice that the > context has changed. right > The best solution is to lock the user interaction until all the > prompts of one kind are done. Then how do I save my work before dealing with the prompts so at least that is save when something crashes while I am being forced to answer them? :~Z 'C-x s' tends to prompt me ... Not that I would let Emacs force me, it's just for the sake of the argument.