From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Richard Copley Newsgroups: gmane.emacs.bugs Subject: bug#25875: 26.0.50; Hang logging out of MS-Windows Date: Mon, 27 Feb 2017 19:56:24 +0000 Message-ID: References: <83lgsuqacv.fsf@gnu.org> <83efylq7m4.fsf@gnu.org> <834lzgreqq.fsf@gnu.org> <3f07808e-ab1c-d6b5-9ea0-dfc4c6fd6fc9@cornell.edu> <8337f0rbz6.fsf@gnu.org> <83shmzprwo.fsf@gnu.org> <83fuizphp8.fsf@gnu.org> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Trace: blaine.gmane.org 1488225496 29375 195.159.176.226 (27 Feb 2017 19:58:16 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 27 Feb 2017 19:58:16 +0000 (UTC) Cc: 25875@debbugs.gnu.org To: Ken Brown Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Feb 27 20:58:11 2017 Return-path: Envelope-to: geb-bug-gnu-emacs@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 1ciRQw-00076C-O9 for geb-bug-gnu-emacs@m.gmane.org; Mon, 27 Feb 2017 20:58:10 +0100 Original-Received: from localhost ([::1]:56418 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ciRR1-0000Zm-7L for geb-bug-gnu-emacs@m.gmane.org; Mon, 27 Feb 2017 14:58:15 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:53683) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ciRQr-0000YO-Tr for bug-gnu-emacs@gnu.org; Mon, 27 Feb 2017 14:58:07 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ciRQo-0008D2-Pv for bug-gnu-emacs@gnu.org; Mon, 27 Feb 2017 14:58:05 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:60496) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1ciRQo-0008Co-Mh for bug-gnu-emacs@gnu.org; Mon, 27 Feb 2017 14:58:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ciRQo-0006zi-Cw for bug-gnu-emacs@gnu.org; Mon, 27 Feb 2017 14:58:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Richard Copley Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 27 Feb 2017 19:58:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 25875 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 25875-submit@debbugs.gnu.org id=B25875.148822542226820 (code B ref 25875); Mon, 27 Feb 2017 19:58:02 +0000 Original-Received: (at 25875) by debbugs.gnu.org; 27 Feb 2017 19:57:02 +0000 Original-Received: from localhost ([127.0.0.1]:58695 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ciRPq-0006yN-5m for submit@debbugs.gnu.org; Mon, 27 Feb 2017 14:57:02 -0500 Original-Received: from mail-ua0-f170.google.com ([209.85.217.170]:36008) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ciRPo-0006y4-Ou for 25875@debbugs.gnu.org; Mon, 27 Feb 2017 14:57:01 -0500 Original-Received: by mail-ua0-f170.google.com with SMTP id 72so47067481uaf.3 for <25875@debbugs.gnu.org>; Mon, 27 Feb 2017 11:57:00 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=myiEYD6lYbdmHJafmnuergBYFhhHIU+1MOYckwzm3Ps=; b=pV5XzEid8i5v+SWrm5HCqK5l+aJhrl/J/mogUWKjtnNcZd61LA7jMS2BDdH4aAqEQn 93y/a80N5se3/sSVmxzMl2JxK6p83OK3BvjaXPaz99NNutgg0fAKTK2oxFrtfMIWfNeR MHelcprvSjLLzjiagH27TuEIibQlSKjJJhQMb5DslZ2M9jZjLLTiI3KX9aqWnN+SOIKh ykAM3LiP4ZeHWYh3VH9eRsijA+KFVWVhMWDSxXcoy1afbPCXj79vH/8FBaDWp7IRnS1g JGx1Vp3TASBkp52Z1CzH1aW9wDSAKvSZRcA0pjziMcidu72/34497C0qSakUE3CRRIqs E8WQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=myiEYD6lYbdmHJafmnuergBYFhhHIU+1MOYckwzm3Ps=; b=hP7nx0UfVqRkQQDFZLUPt3XpfBq8p0jFketHBDLho0FDFWQ1d3zra14g4ytb0jDbwu DhQ309JCQgfzVTkLIqxKCK0RFsqLwJCL9tRlIyt3e+WBIlp7qNd8ETIW7rlhYdkAaNAc bM/2TSSphYLrotDkIIxahKzpR+CevASYRHLX0o2JWNPWYunwRI3xILD0QlzSbV5JZzex Watqyag03KT8DySLKIA+qWz3BHFwte8SULevPbej1L2JWsP2Hfxlmwy85xTSUZL9/oad hH3S39oA3K/Q/9Y8sk+OY+TszW2DJjwTLsuwkqL5h5jhLKGg6ECvFiFlErjkzv9m1ZsT JD8w== X-Gm-Message-State: AMke39nVchoFXdWXWh8qmQS/yEQqGWAelBnkYf6jhN2PDJWJtXXReIWec5Pjib1SspCa+5XB+OGXZHz5uzba2Q== X-Received: by 10.31.93.66 with SMTP id r63mr8289756vkb.126.1488225415117; Mon, 27 Feb 2017 11:56:55 -0800 (PST) Original-Received: by 10.176.71.214 with HTTP; Mon, 27 Feb 2017 11:56:24 -0800 (PST) In-Reply-To: X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:129903 Archived-At: On 27 February 2017 at 19:46, Richard Copley wrote: > On 27 February 2017 at 19:39, Ken Brown wrote: >> On 2/27/2017 2:30 PM, Richard Copley wrote: >>> >>> If you want to block or delay a shutdown in recent >>> Windows versions you need to use >>> ShutdownBlockReasonCreate (it's unfortunate, but >>> we lazy programmers proved we couldn't be trusted, >>> collectively, to handle WM_QUERY_ENDSESSION >>> correctly, so the arms race had to be escalated in >>> order to allow users to shut down their computers >>> reliably). >> >> >> In spite of the careless mistake in my patch, you could still test Eli's >> suggestion of using SendMessageTimeout instead of SendMessage, at least in >> my_show_window. > > I can't, not really. Remember, I don't have a recipe. > I'll never be able to observe whether it's working or not. > (Am I missing something?) > >>> Ken, what was the original change intended to guard >>> against? What would people be doing with Emacs that >>> can't simply be abandoned? Did you have a particular >>> example in mind? >> >> >> Bug#23483. > > That's not a real issue, in my opinion. It's already covered, > by autosave. There are programs like the OP in #23483 described, which interrupt a shutdown to ask the user whether to save. Some of them even call themselves "programmers' text editors" (shudder). Emacs autosave is and always has been a better solution. You can shoot yourself in the foot by making small but important changes and then immediately shutting down Windows. But you'd almost have to be doing it on purpose.