From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: Questions about throw-on-input Date: Fri, 08 May 2020 13:41:31 +0300 Message-ID: <83r1vuiu90.fsf@gnu.org> References: <87r1vwxktw.fsf@gmail.com> <831rnvly58.fsf@gnu.org> Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="55522"; mail-complaints-to="usenet@ciao.gmane.io" Cc: emacs-devel@gnu.org To: yyoncho Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Fri May 08 12:43:19 2020 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jX0TP-000EKM-Cm for ged-emacs-devel@m.gmane-mx.org; Fri, 08 May 2020 12:43:19 +0200 Original-Received: from localhost ([::1]:36416 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jX0TO-0001Gu-G4 for ged-emacs-devel@m.gmane-mx.org; Fri, 08 May 2020 06:43:18 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:50412) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jX0Rr-0007nW-6h for emacs-devel@gnu.org; Fri, 08 May 2020 06:41:43 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:50019) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jX0Rq-0003tT-Su; Fri, 08 May 2020 06:41:42 -0400 Original-Received: from [176.228.60.248] (port=3382 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1jX0Rq-0002z8-3r; Fri, 08 May 2020 06:41:42 -0400 In-Reply-To: (message from yyoncho on Fri, 8 May 2020 00:11:26 +0300) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 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-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:249259 Archived-At: > From: yyoncho > Date: Fri, 8 May 2020 00:11:26 +0300 > Cc: emacs-devel > > Out of curiosity, do you think that having a function > (process-events) which will process all keyboard(?) events > and resume the current invocation can be implemented easily? By "processing all keyboard events" do you mean invoking the commands those events are bound to? If so, I don't think we have machinery to do that in Emacs: there's too much of global state that would get in the way. > AFAIK a lot of gui toolkits have that kind of function, e. g. > https://docs.microsoft.com/en-us/dotnet/api/system.windows.forms.application.doevents?view=netcore-3.1 > IMO it will be very useful for certain cases. AFAIU, such facilities need to have a separate event loop that generally runs in a separate thread.