From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: with-url Date: Sun, 22 Jan 2017 18:36:49 +0200 Message-ID: <83ziij3vby.fsf@gnu.org> References: <87mvffva75.fsf@gnus.org> <9bd035f3-c7cd-0c8d-81b8-226fb24f608e@yandex.ru> <87bmv0beoa.fsf@gnus.org> <87bmv09ms8.fsf@gnus.org> <87y3y487f8.fsf@gnus.org> <07e59615-95a3-0d03-cb6d-c07257796661@yandex.ru> <87shoc86ct.fsf@gnus.org> <87mvek85vi.fsf@gnus.org> <194a8281-47d2-937c-ebbd-ba7bf18a8b3d@yandex.ru> <87h94s8587.fsf@gnus.org> <76ae7bf5-539a-dfc8-af56-f941c185424c@yandex.ru> <87d1fg83u2.fsf@gnus.org> <87tw8rywxt.fsf@gnus.org> Reply-To: Eli Zaretskii NNTP-Posting-Host: blaine.gmane.org X-Trace: blaine.gmane.org 1485103062 22113 195.159.176.226 (22 Jan 2017 16:37:42 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sun, 22 Jan 2017 16:37:42 +0000 (UTC) Cc: larsi@gnus.org, emacs-devel@gnu.org, yuri.v.khan@gmail.com To: Dmitry Gutov Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Jan 22 17:37:36 2017 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 1cVL95-0005EU-Ko for ged-emacs-devel@m.gmane.org; Sun, 22 Jan 2017 17:37:35 +0100 Original-Received: from localhost ([::1]:36916 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cVL9A-0004QV-Qp for ged-emacs-devel@m.gmane.org; Sun, 22 Jan 2017 11:37:40 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:48703) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cVL8U-0004QO-HW for emacs-devel@gnu.org; Sun, 22 Jan 2017 11:36:59 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cVL8R-0003MD-CB for emacs-devel@gnu.org; Sun, 22 Jan 2017 11:36:58 -0500 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:42709) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cVL8R-0003M9-99; Sun, 22 Jan 2017 11:36:55 -0500 Original-Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:3788 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1cVL8P-0005Yn-Tu; Sun, 22 Jan 2017 11:36:54 -0500 In-reply-to: (message from Dmitry Gutov on Sun, 22 Jan 2017 18:13:53 +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:211531 Archived-At: > From: Dmitry Gutov > Date: Sun, 22 Jan 2017 18:13:53 +0300 > Cc: Emacs developers > > > Anyway, it's all rather moot, since this is, of course, an asynchronous > > library function, and you can't really send any Lisp-level signals in > > that context. > > That's why I mentioned threads. With the current implementation of concurrency, threads cannot usefully signal anything: if a thread raises a signal that is not caught, it simply dies. And you cannot catch such a signal from another thread. So your proposal would mean that the thread which runs the async code sets some variable, and the application in the main thread then signals an error based on that variable's value. is that what you had in mind?