Subject: Re: bug#4980: 23.1.50; In File > Quit GUI, add "Cancel", write "Save", and simplify

From: Eli Zaretskii <[email-masked]>
Date: Thu, 27 Jan 2022 22:07:46 +0200

> Date: Thu, 27 Jan 2022 21:56:30 +0200
> From: Eli Zaretskii <[email-masked]>
> Cc: [email-masked], [email-masked], [email-masked],
>  [email-masked]
> 
> > > Personally I only see a need for a dialog with 3 buttons. "Close
> > > without saving" "Save All" and "Cancel"
> > >
> > > Anything more complicated and the user can Cancel, resolve the
> > > situation and attempt to exit again.
> > 
> > (I'm going through old bug reports that unfortunately weren't resolved
> > at the time.)
> > 
> > Good idea.  Now done in Emacs 29.
> 
> This now pops the dialog when you click File->Quit immediately after
> entering "emacs -Q".  But there's no buffer that needs saving at that
> point.

Also, if you try this:

  emacs -Q
  C-x C-f /some/non-existent/file RET

then insert some text and click File->Quit, then selecting "Close
without saving" will still pop up an additional dialog asking whether
to exit although modified buffers exist.  But "Close without saving"
was supposed to have already answered that question.