unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#4980: 23.1.50; In File > Quit GUI, add "Cancel", write "Save", and simplify
@ 2009-11-19 23:05 Jason A. Spiro
  2009-11-19 23:38 ` Lennart Borgman
                   ` (2 more replies)
  0 siblings, 3 replies; 12+ messages in thread
From: Jason A. Spiro @ 2009-11-19 23:05 UTC (permalink / raw)
  To: emacs-pretest-bug

When I try to quit Emacs by clicking File > Quit, I see seven choices:

(((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((

Save file foo.txt?

*  Yes
*  No
*  View This Buffer
*  View Changes In This Buffer
*  Save This But No More
*  Save All Buffers
*  No For All

)))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))

1.  As dak wrote in 2008 at
http://thread.gmane.org/gmane.emacs.devel/65537/focus=100634 there's
no Cancel button.  "Closing the dialog window happens to achieve that
... but it is not really obvious."  Please add a Cancel button.

2.  For the first choice, instead of writing "Yes", write "Save".
Usability researchers have found that action verbs are always better
when a list of choices is provided.  I can explain why if you require
it.

3.  The seven choices act as a confusing way to ask me which files to
save.  Instead, as Joshua Juran <jjuran@gmail.com> suggested to me in
Freenode #macdev, you should use a dialog box like "gedit" uses (
screenshot at http://omploader.org/vMnQzaw ; download gedit for
Windows / Mac at http://projects.gnome.org/gedit/ ):

(((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((

[!] There are 2 document(s) with unsaved changes.
Save before closing?

Select the documents you want to save:
| [x] foo.txt    |
| [x] bar.txt    |
|                |
|                |

If you don't save, your changes will be lost.
                                                 ________     ______
[ Close &without Saving ] [       &Cancel     ] [________&Save______]

)))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))

Don't offer view-buffer or view-changes choices in a GUI.  You see, a
GUI should be simple instead of listing every possible choice the user
might conceivably want.  If the user wants to do so, they can click
Cancel then do so themselves.





^ permalink raw reply	[flat|nested] 12+ messages in thread

* bug#4980: 23.1.50; In File > Quit GUI, add "Cancel", write  "Save", and simplify
  2009-11-19 23:05 bug#4980: 23.1.50; In File > Quit GUI, add "Cancel", write "Save", and simplify Jason A. Spiro
@ 2009-11-19 23:38 ` Lennart Borgman
  2009-11-20  3:59   ` Jason Rumney
  2009-11-20  9:31 ` Juri Linkov
  2009-11-20  9:55 ` Jan Djärv
  2 siblings, 1 reply; 12+ messages in thread
From: Lennart Borgman @ 2009-11-19 23:38 UTC (permalink / raw)
  To: Jason A. Spiro, 4980

On Fri, Nov 20, 2009 at 12:05 AM, Jason A. Spiro <jasonspiro4@gmail.com> wrote:
> When I try to quit Emacs by clicking File > Quit, I see seven choices:
>
> (((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((
>
> Save file foo.txt?
>
> *  Yes
> *  No
> *  View This Buffer
> *  View Changes In This Buffer
> *  Save This But No More
> *  Save All Buffers
> *  No For All
>
> )))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))
>
> 1.  As dak wrote in 2008 at
> http://thread.gmane.org/gmane.emacs.devel/65537/focus=100634 there's
> no Cancel button.  "Closing the dialog window happens to achieve that
> ... but it is not really obvious."  Please add a Cancel button.


Aggeed.


> 2.  For the first choice, instead of writing "Yes", write "Save".
> Usability researchers have found that action verbs are always better
> when a list of choices is provided.  I can explain why if you require
> it.


Agreed. There is no reason for yes/no here. Use verbs to make it clear.


> 3.  The seven choices act as a confusing way to ask me which files to
> save.  Instead, as Joshua Juran <jjuran@gmail.com> suggested to me in
> Freenode #macdev, you should use a dialog box like "gedit" uses (
> screenshot at http://omploader.org/vMnQzaw ; download gedit for
> Windows / Mac at http://projects.gnome.org/gedit/ ):

> (((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((
>
> [!] There are 2 document(s) with unsaved changes.
> Save before closing?
>
> Select the documents you want to save:
> | [x] foo.txt    |
> | [x] bar.txt    |
> |                |
> |                |
>
> If you don't save, your changes will be lost.
>                                                 ________     ______
> [ Close &without Saving ] [       &Cancel     ] [________&Save______]
>
> )))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))


Yes, a dialog box is better. But it should be cross platform. No one
has yet tried to write this for w32. (I do not know for other
platforms.)


> Don't offer view-buffer or view-changes choices in a GUI.  You see, a
> GUI should be simple instead of listing every possible choice the user
> might conceivably want.  If the user wants to do so, they can click
> Cancel then do so themselves.


Not sure. This is for experienced users also. Fast ways are useful,
but maybe not when using dialog boxes.





^ permalink raw reply	[flat|nested] 12+ messages in thread

* bug#4980: 23.1.50; In File > Quit GUI, add "Cancel", write  "Save", and simplify
  2009-11-19 23:38 ` Lennart Borgman
@ 2009-11-20  3:59   ` Jason Rumney
  2009-11-20  4:31     ` Stefan Monnier
  2022-01-27 18:55     ` Lars Ingebrigtsen
  0 siblings, 2 replies; 12+ messages in thread
From: Jason Rumney @ 2009-11-20  3:59 UTC (permalink / raw)
  To: Lennart Borgman, 4980; +Cc: Jason A. Spiro

Lennart Borgman wrote:
> Not sure. This is for experienced users also. Fast ways are useful,
> but maybe not when using dialog boxes.
>   

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.






^ permalink raw reply	[flat|nested] 12+ messages in thread

* bug#4980: 23.1.50; In File > Quit GUI, add "Cancel", write  "Save", and simplify
  2009-11-20  3:59   ` Jason Rumney
@ 2009-11-20  4:31     ` Stefan Monnier
  2022-01-27 18:55     ` Lars Ingebrigtsen
  1 sibling, 0 replies; 12+ messages in thread
From: Stefan Monnier @ 2009-11-20  4:31 UTC (permalink / raw)
  To: Jason Rumney; +Cc: Jason A. Spiro, 4980

> Personally I only see a need for a dialog with 3 buttons. "Close without
> saving" "Save All" and "Cancel"

Agreed.


        Stefan





^ permalink raw reply	[flat|nested] 12+ messages in thread

* bug#4980: 23.1.50; In File > Quit GUI, add "Cancel", write "Save", and simplify
  2009-11-19 23:05 bug#4980: 23.1.50; In File > Quit GUI, add "Cancel", write "Save", and simplify Jason A. Spiro
  2009-11-19 23:38 ` Lennart Borgman
@ 2009-11-20  9:31 ` Juri Linkov
  2009-11-20  9:55 ` Jan Djärv
  2 siblings, 0 replies; 12+ messages in thread
From: Juri Linkov @ 2009-11-20  9:31 UTC (permalink / raw)
  To: Jason A. Spiro; +Cc: 4980

> 1.  As dak wrote in 2008 at
> http://thread.gmane.org/gmane.emacs.devel/65537/focus=100634 there's
> no Cancel button.  "Closing the dialog window happens to achieve that
> ... but it is not really obvious."  Please add a Cancel button.
>
> 2.  For the first choice, instead of writing "Yes", write "Save".
> Usability researchers have found that action verbs are always better
> when a list of choices is provided.  I can explain why if you require
> it.
>
> 3.  The seven choices act as a confusing way to ask me which files to
> save.  Instead, as Joshua Juran <jjuran@gmail.com> suggested to me in
> Freenode #macdev, you should use a dialog box like "gedit" uses (
> screenshot at http://omploader.org/vMnQzaw ; download gedit for
> Windows / Mac at http://projects.gnome.org/gedit/ ):

The graphical version of the closing dialog window is modelled
after the corresponding minibuffer prompts.

So if we are going to change "Yes/No" to "Quit without saving",
"Save All" and "Cancel" (I wholeheartedly welcome this change
since a "Yes/No" question is dangerous to lose unsaved changes),
then we have to modify the minibuffer prompts too.

Maybe in the non-graphical version we should display a list of unsaved
buffers (in a fashion like the *Buffer List* for `C-x C-b') like
we display the process list when quitting with running processes.

-- 
Juri Linkov
http://www.jurta.org/emacs/





^ permalink raw reply	[flat|nested] 12+ messages in thread

* bug#4980: 23.1.50; In File > Quit GUI, add "Cancel", write "Save", and simplify
  2009-11-19 23:05 bug#4980: 23.1.50; In File > Quit GUI, add "Cancel", write "Save", and simplify Jason A. Spiro
  2009-11-19 23:38 ` Lennart Borgman
  2009-11-20  9:31 ` Juri Linkov
@ 2009-11-20  9:55 ` Jan Djärv
  2 siblings, 0 replies; 12+ messages in thread
From: Jan Djärv @ 2009-11-20  9:55 UTC (permalink / raw)
  To: Jason A. Spiro, 4980; +Cc: emacs-pretest-bug

Jason A. Spiro skrev:

> 
> [!] There are 2 document(s) with unsaved changes.
> Save before closing?
> 
> Select the documents you want to save:
> | [x] foo.txt    |
> | [x] bar.txt    |
> |                |
> |                |
> 
> If you don't save, your changes will be lost.
>                                                  ________     ______
> [ Close &without Saving ] [       &Cancel     ] [________&Save______]
> 
> )))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))
> 
> Don't offer view-buffer or view-changes choices in a GUI.  You see, a
> GUI should be simple instead of listing every possible choice the user
> might conceivably want.  If the user wants to do so, they can click
> Cancel then do so themselves.
> 

It is a good idea.  However, the dialog functions in Emacs can't currently do 
this in a generic way (that is from elisp).

Close is not a good word.  You close a dialog and a frame, but you quit or 
exit the application.

So IMHO "Close without Saving" should be "Exit without Saving" and "Save" 
should be "Save and Exit" or prehaps "Save marked and Exit" (if indeed that is 
what Save does, it isn't clear).

	Jan D.






^ permalink raw reply	[flat|nested] 12+ messages in thread

* bug#4980: 23.1.50; In File > Quit GUI, add "Cancel", write "Save", and simplify
  2009-11-20  3:59   ` Jason Rumney
  2009-11-20  4:31     ` Stefan Monnier
@ 2022-01-27 18:55     ` Lars Ingebrigtsen
  2022-01-27 19:56       ` Eli Zaretskii
  1 sibling, 1 reply; 12+ messages in thread
From: Lars Ingebrigtsen @ 2022-01-27 18:55 UTC (permalink / raw)
  To: Jason Rumney; +Cc: Jason A. Spiro, 4980, Lennart Borgman

Jason Rumney <jasonr@f2s.com> writes:

>> Not sure. This is for experienced users also. Fast ways are useful,
>> but maybe not when using dialog boxes.
>>   
>
> 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.

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no





^ permalink raw reply	[flat|nested] 12+ messages in thread

* bug#4980: 23.1.50; In File > Quit GUI, add "Cancel", write "Save", and simplify
  2022-01-27 18:55     ` Lars Ingebrigtsen
@ 2022-01-27 19:56       ` Eli Zaretskii
  2022-01-27 20:07         ` Eli Zaretskii
  2022-01-27 21:27         ` Lars Ingebrigtsen
  0 siblings, 2 replies; 12+ messages in thread
From: Eli Zaretskii @ 2022-01-27 19:56 UTC (permalink / raw)
  To: Lars Ingebrigtsen; +Cc: jasonspiro4, 4980, lennart.borgman, jasonr

> From: Lars Ingebrigtsen <larsi@gnus.org>
> Date: Thu, 27 Jan 2022 19:55:10 +0100
> Cc: "Jason A. Spiro" <jasonspiro4@gmail.com>, 4980@debbugs.gnu.org,
>  Lennart Borgman <lennart.borgman@gmail.com>
> 
> Jason Rumney <jasonr@f2s.com> writes:
> 
> >> Not sure. This is for experienced users also. Fast ways are useful,
> >> but maybe not when using dialog boxes.
> >>   
> >
> > 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.





^ permalink raw reply	[flat|nested] 12+ messages in thread

* bug#4980: 23.1.50; In File > Quit GUI, add "Cancel", write "Save", and simplify
  2022-01-27 19:56       ` Eli Zaretskii
@ 2022-01-27 20:07         ` Eli Zaretskii
  2022-01-27 21:27         ` Lars Ingebrigtsen
  1 sibling, 0 replies; 12+ messages in thread
From: Eli Zaretskii @ 2022-01-27 20:07 UTC (permalink / raw)
  To: larsi; +Cc: jasonspiro4, 4980, lennart.borgman, jasonr

> Date: Thu, 27 Jan 2022 21:56:30 +0200
> From: Eli Zaretskii <eliz@gnu.org>
> Cc: jasonspiro4@gmail.com, 4980@debbugs.gnu.org, lennart.borgman@gmail.com,
>  jasonr@f2s.com
> 
> > > 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.





^ permalink raw reply	[flat|nested] 12+ messages in thread

* bug#4980: 23.1.50; In File > Quit GUI, add "Cancel", write "Save", and simplify
  2022-01-27 19:56       ` Eli Zaretskii
  2022-01-27 20:07         ` Eli Zaretskii
@ 2022-01-27 21:27         ` Lars Ingebrigtsen
  2022-01-28  7:06           ` Eli Zaretskii
  1 sibling, 1 reply; 12+ messages in thread
From: Lars Ingebrigtsen @ 2022-01-27 21:27 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: jasonspiro4, 4980, lennart.borgman, jasonr

Eli Zaretskii <eliz@gnu.org> writes:

> 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.

Now fixed.

Eli Zaretskii <eliz@gnu.org> writes:

> 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.

I didn't change that logic -- you had to answer "no" twice before, and
you still have to.

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no





^ permalink raw reply	[flat|nested] 12+ messages in thread

* bug#4980: 23.1.50; In File > Quit GUI, add "Cancel", write "Save", and simplify
  2022-01-27 21:27         ` Lars Ingebrigtsen
@ 2022-01-28  7:06           ` Eli Zaretskii
  2022-01-28 13:52             ` Lars Ingebrigtsen
  0 siblings, 1 reply; 12+ messages in thread
From: Eli Zaretskii @ 2022-01-28  7:06 UTC (permalink / raw)
  To: Lars Ingebrigtsen; +Cc: jasonspiro4, 4980, lennart.borgman, jasonr

> From: Lars Ingebrigtsen <larsi@gnus.org>
> Cc: jasonr@f2s.com,  jasonspiro4@gmail.com,  4980@debbugs.gnu.org,
>   lennart.borgman@gmail.com
> Date: Thu, 27 Jan 2022 22:27:28 +0100
> 
> Eli Zaretskii <eliz@gnu.org> writes:
> 
> > 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.
> 
> Now fixed.

Thanks.

> Eli Zaretskii <eliz@gnu.org> writes:
> 
> > 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.
> 
> I didn't change that logic -- you had to answer "no" twice before, and
> you still have to.

But save-some-buffers doesn't ask the same question: it asks about
specific buffers, one by one.  And popping 2 dialogs with basically
the same question looks ... worse.






^ permalink raw reply	[flat|nested] 12+ messages in thread

* bug#4980: 23.1.50; In File > Quit GUI, add "Cancel", write "Save", and simplify
  2022-01-28  7:06           ` Eli Zaretskii
@ 2022-01-28 13:52             ` Lars Ingebrigtsen
  0 siblings, 0 replies; 12+ messages in thread
From: Lars Ingebrigtsen @ 2022-01-28 13:52 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: jasonspiro4, 4980, lennart.borgman, jasonr

Eli Zaretskii <eliz@gnu.org> writes:

> But save-some-buffers doesn't ask the same question: it asks about
> specific buffers, one by one.  And popping 2 dialogs with basically
> the same question looks ... worse.

Yes, previously it was "Save file <...>" and "No for all", and then
"... exit anyway?".  Since the first prompt is now "Close without
saving" it feels a bit more nagging?

But I think it still makes sense to ask twice, since it's pretty...
drastic?  So I dunno.  I don't have any strong opinion here -- what do
others feel?  Should we keep the double prompt even though the first
prompt is now less cryptic?

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no





^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2022-01-28 13:52 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-11-19 23:05 bug#4980: 23.1.50; In File > Quit GUI, add "Cancel", write "Save", and simplify Jason A. Spiro
2009-11-19 23:38 ` Lennart Borgman
2009-11-20  3:59   ` Jason Rumney
2009-11-20  4:31     ` Stefan Monnier
2022-01-27 18:55     ` Lars Ingebrigtsen
2022-01-27 19:56       ` Eli Zaretskii
2022-01-27 20:07         ` Eli Zaretskii
2022-01-27 21:27         ` Lars Ingebrigtsen
2022-01-28  7:06           ` Eli Zaretskii
2022-01-28 13:52             ` Lars Ingebrigtsen
2009-11-20  9:31 ` Juri Linkov
2009-11-20  9:55 ` Jan Djärv

Code repositories for project(s) associated with this public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).