all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Richard Copley <rcopley@gmail.com>
To: Ken Brown <kbrown@cornell.edu>
Cc: 25875@debbugs.gnu.org
Subject: bug#25875: 26.0.50; Hang logging out of MS-Windows
Date: Mon, 27 Feb 2017 19:56:24 +0000	[thread overview]
Message-ID: <CAPM58ogiPDqUh+JKBwk9hAbZ-5cpN0paq9=oOkCc=9XMcGf+yQ@mail.gmail.com> (raw)
In-Reply-To: <CAPM58ogAJaRqkNPU11uS7kMFRuUsu_HoS0Qn3N9Vz7DwP1G9DA@mail.gmail.com>

On 27 February 2017 at 19:46, Richard Copley <rcopley@gmail.com> wrote:
> On 27 February 2017 at 19:39, Ken Brown <kbrown@cornell.edu> 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.





  reply	other threads:[~2017-02-27 19:56 UTC|newest]

Thread overview: 43+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-02-25 19:35 bug#25875: 26.0.50; Hang logging out of MS-Windows Richard Copley
2017-02-25 19:41 ` Richard Copley
2017-02-25 20:36   ` Eli Zaretskii
2017-02-25 21:13     ` Richard Copley
2017-02-26 15:47       ` Eli Zaretskii
2017-02-26 18:26         ` Richard Copley
2017-02-25 20:33 ` Eli Zaretskii
2017-02-25 21:07   ` Richard Copley
2017-02-25 21:30     ` Richard Copley
2017-02-25 21:37       ` Richard Copley
2017-02-25 22:02         ` Richard Copley
2017-02-26 15:47           ` Eli Zaretskii
2017-02-26 18:37             ` Richard Copley
2017-02-26 15:44     ` Eli Zaretskii
2017-02-26 18:04       ` Ken Brown
2017-02-26 18:25         ` Eli Zaretskii
2017-02-26 18:58           ` Ken Brown
2017-02-26 19:25             ` Eli Zaretskii
2017-02-26 23:38               ` Ken Brown
2017-02-27  8:14                 ` Richard Copley
2017-02-27 15:36                   ` Eli Zaretskii
2017-02-27 19:04                     ` Richard Copley
2017-02-27 19:16                       ` Eli Zaretskii
2017-02-27 19:23                         ` Richard Copley
2017-02-27 19:30                           ` Richard Copley
2017-02-27 19:39                             ` Ken Brown
2017-02-27 19:46                               ` Richard Copley
2017-02-27 19:56                                 ` Richard Copley [this message]
2017-02-27 20:19                                   ` Ken Brown
2017-02-27 20:27                                 ` Eli Zaretskii
2017-02-27 20:52                                   ` Richard Copley
2017-02-27 20:58                                     ` Eli Zaretskii
2017-02-27 21:09                                       ` Richard Copley
2017-02-28  3:30                                         ` Eli Zaretskii
2017-02-28  6:37                                           ` Richard Copley
2017-02-27 22:37                   ` Ken Brown
2017-02-27 23:03                     ` Richard Copley
2017-02-28  3:35                       ` Eli Zaretskii
2017-02-28  7:21                         ` Richard Copley
2017-02-28 15:36                           ` Eli Zaretskii
2017-02-28 16:40                             ` Ken Brown
2017-02-28 16:44                               ` Eli Zaretskii
2017-02-28 18:59                                 ` Richard Copley

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAPM58ogiPDqUh+JKBwk9hAbZ-5cpN0paq9=oOkCc=9XMcGf+yQ@mail.gmail.com' \
    --to=rcopley@gmail.com \
    --cc=25875@debbugs.gnu.org \
    --cc=kbrown@cornell.edu \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.