From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Lars Magne Ingebrigtsen Newsgroups: gmane.emacs.devel Subject: Re: Network security manager Date: Fri, 21 Nov 2014 10:24:29 +0100 Message-ID: References: <87a93oh180.fsf@lifelogs.com> <83h9xw9zg3.fsf@gnu.org> <83d28k9yb9.fsf@gnu.org> <83ppcj9740.fsf@gnu.org> <83k32r89rd.fsf@gnu.org> <83tx1t6dv6.fsf@gnu.org> <83y4r53reb.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1416561917 15380 80.91.229.3 (21 Nov 2014 09:25:17 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 21 Nov 2014 09:25:17 +0000 (UTC) Cc: Stefan Monnier , emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Nov 21 10:25:11 2014 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1XrkSl-0003eH-8H for ged-emacs-devel@m.gmane.org; Fri, 21 Nov 2014 10:25:11 +0100 Original-Received: from localhost ([::1]:39427 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XrkSk-0004pz-Rt for ged-emacs-devel@m.gmane.org; Fri, 21 Nov 2014 04:25:10 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:44150) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XrkSc-0004l7-91 for emacs-devel@gnu.org; Fri, 21 Nov 2014 04:25:08 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XrkSW-0002nl-VA for emacs-devel@gnu.org; Fri, 21 Nov 2014 04:25:02 -0500 Original-Received: from hermes.netfonds.no ([80.91.224.195]:60975) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XrkSW-0002nS-Ke; Fri, 21 Nov 2014 04:24:56 -0500 Original-Received: from cm-84.215.51.58.getinternet.no ([84.215.51.58] helo=stories.gnus.org) by hermes.netfonds.no with esmtpsa (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.72) (envelope-from ) id 1XrkS6-0005wG-As; Fri, 21 Nov 2014 10:24:30 +0100 Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAAElBMVEX++bcGAwD++7nMxJT+ /rs7MSO/wuz/AAACTklEQVQ4jV2UTY+jMAyGPTHcm424RyG9B0zuCDL3MNn8/7+ytumsZupWauWn 9usvCgAexLx9hPLDAAIE432Y7Z8SfwFvgjEmnvar/I5I8sYVKO0n4oAGdvQCiGhdMSVKyBaTIcRz KypsDACSfo2wy8cg4iaE4MPTbseh2SO8qvL6+rBG3Uf4X66a/5jMWx+DuMEvE7w3qBIMZhPfgQ8A y4TrL8BdH954uByub6m8iijA4QfgRjhAQKW8kTgHBSZoy5ej1mjr41XLvH2LK8DW6W9HaKU3jbhD LjcyqNNZ2tBJZuXvDVoFze3bFvPXnUr82dpM/axuywOS06p45rBYa8fWZmpEEngDzsV+m2vL2SGl 3BPPXkNQQSJ8Wl6LTl/c34BjOeVWjlfnCF4BYb6sAJ0lpIR8JLbblzXeyj5wKtcYgMXeKDNtMqdP TgfTAyuMnXpHKceXs5aRqYJGXDpBb1fFsjjzMRwRpopuYiDjqpfL5mohb8MBmUFPjRJ4lnAL2ZXB GmBs5Jbkegdfr6kyMCWnjSO6gEdvZpzIRAEx94EjCAU0CEtrIS7Jbp5q4AgBvG6e8COvx8LiPOAj QBMwpm6n/EAuqIxSCi+pEj4wjA0I6jEOUKKJlUqARHNluUwsULxez/5FMvbZc9FPu2a50PsJKac+ nCHKSQM5SuZ1hns84T7xxcoq7MQzvq/0kw8xHl439LJOUQGfjyz0p8lOTn5O/WXfrOnOY373y94Z zKoqc+c/g9ePqgAVSOHgpzzEOCpw0qAouHB8d3CXXY5/ZsSy/A8O+1kAAAAASUVORK5CYII= X-Now-Playing: Mary Margaret O'Hara's _Miss America_: "You Will Be Loved Again" X-Hashcash: 1:23:141121:emacs-devel@gnu.org::zv7DRR5HL20StPtN:0000000000000000000000000000000000000000001le/ X-Hashcash: 1:23:141121:eliz@gnu.org::rnSj29tE+cSbZEll:00000RAih X-Hashcash: 1:23:141121:monnier@iro.umontreal.ca::Us41sckS00ktFTin:0000000000000000000000000000000000001EVe9 In-Reply-To: <83y4r53reb.fsf@gnu.org> (Eli Zaretskii's message of "Fri, 21 Nov 2014 10:10:52 +0200") User-Agent: Gnus/5.130012 (Ma Gnus v0.12) Emacs/24.4.51 (gnu/linux) X-MailScanner-ID: 1XrkS6-0005wG-As MailScanner-NULL-Check: 1417166670.51878@2afXz1cGzVTlPNWCvpCkQg X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 80.91.224.195 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 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-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:177926 Archived-At: Eli Zaretskii writes: > But you were suggesting that as a general principle, not as solution > to that particular problem alone? Your question about "a scenario" > also sounded as something rather general. And that is how I > understood it and replied. I'm not sure, but I suspect that `inhibit-quit' is not a complete solution to the general problem of determining when we're allowed to prompt people from asynchronous code. I think Ted outlined a mechanism that would work well, but would need extension to other non-process-based forms of asynchronous code, like timers. (Executive summary: The asynchronous code should be allowed to prompt users in buffers "where it belongs", so if the user has moved on to a different buffer, then it should not prompt.) > As for Lars's situation, there is a much simpler solution to that, > which I already pointed out earlier in this thread. It is also much > cleaner, IMO. The solution you outlined ("just bind a variable") would not work for the specific HTTPS problem that started the discussion, since url.el works very asynchronously -- the actual code is run outside of the dynamic extent of the binding. But like I said about a hundred messages earlier in this thread, and which is understandable if you and Stefan didn't catch, I've solved this specific problem by introducing new functionality to url.el (see the `url-request-noninteractive' parts in the nsm branch). So you can stop discussing this specific problem. :-) The general problem remains, though. -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no