GNU bug report logs -
#73743
Better prompts for Auto-save dialog
Previous Next
Reported by: Dan Jacobson <jidanni <at> jidanni.org>
Date: Fri, 11 Oct 2024 07:11:01 UTC
Severity: wishlist
Tags: wontfix
Done: Stefan Kangas <stefankangas <at> gmail.com>
Bug is archived. No further changes may be made.
To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 73743 in the body.
You can then email your comments to 73743 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#73743
; Package
emacs
.
(Fri, 11 Oct 2024 07:11:02 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
Dan Jacobson <jidanni <at> jidanni.org>
:
New bug report received and forwarded. Copy sent to
bug-gnu-emacs <at> gnu.org
.
(Fri, 11 Oct 2024 07:11:02 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
I notice on the dialog of emacs -nw, after lots of ^G's
Auto-save? (y or n) y
Auto-save done
[Then nothing happens, and we need to hit RET to see the next question:]
Abort (and dump core)? (y or n) n
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#73743
; Package
emacs
.
(Fri, 11 Oct 2024 09:18:01 GMT)
Full text and
rfc822 format available.
Message #8 received at 73743 <at> debbugs.gnu.org (full text, mbox):
> From: Dan Jacobson <jidanni <at> jidanni.org>
> Date: Fri, 11 Oct 2024 15:09:50 +0800
>
> I notice on the dialog of emacs -nw, after lots of ^G's
> Auto-save? (y or n) y
> Auto-save done
> [Then nothing happens, and we need to hit RET to see the next question:]
> Abort (and dump core)? (y or n) n
And this is bad because..?
This is emergency exit procedure, where the last thing we need is to
rush things and messages past the user, who is usually panicking and
under stress at this point.
Severity set to 'wishlist' from 'normal'
Request was from
Stefan Kangas <stefankangas <at> gmail.com>
to
control <at> debbugs.gnu.org
.
(Sat, 12 Oct 2024 14:00:02 GMT)
Full text and
rfc822 format available.
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#73743
; Package
emacs
.
(Wed, 16 Oct 2024 03:06:02 GMT)
Full text and
rfc822 format available.
Message #13 received at 73743 <at> debbugs.gnu.org (full text, mbox):
[[[ To any NSA and FBI agents reading my email: please consider ]]]
[[[ whether defending the US Constitution against all enemies, ]]]
[[[ foreign or domestic, requires you to follow Snowden's example. ]]]
> > I notice on the dialog of emacs -nw, after lots of ^G's
> > Auto-save? (y or n) y
> > Auto-save done
That much is normal, but
> > [Then nothing happens, and we need to hit RET to see the next question:]
the failure to move on to the next question seems like a bug.
Why is it waiting for the user to type RET?
--
Dr Richard Stallman (https://stallman.org)
Chief GNUisance of the GNU Project (https://gnu.org)
Founder, Free Software Foundation (https://fsf.org)
Internet Hall-of-Famer (https://internethalloffame.org)
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#73743
; Package
emacs
.
(Wed, 16 Oct 2024 05:41:01 GMT)
Full text and
rfc822 format available.
Message #16 received at 73743 <at> debbugs.gnu.org (full text, mbox):
> From: Richard Stallman <rms <at> gnu.org>
> Cc: jidanni <at> jidanni.org, 73743 <at> debbugs.gnu.org
> Date: Tue, 15 Oct 2024 23:02:59 -0400
>
> > > I notice on the dialog of emacs -nw, after lots of ^G's
> > > Auto-save? (y or n) y
> > > Auto-save done
>
> That much is normal, but
>
> > > [Then nothing happens, and we need to hit RET to see the next question:]
>
> the failure to move on to the next question seems like a bug.
> Why is it waiting for the user to type RET?
It doesn't. It calls read_stdin, which reads 1 byte.
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#73743
; Package
emacs
.
(Fri, 18 Oct 2024 02:33:02 GMT)
Full text and
rfc822 format available.
Message #19 received at 73743 <at> debbugs.gnu.org (full text, mbox):
[[[ To any NSA and FBI agents reading my email: please consider ]]]
[[[ whether defending the US Constitution against all enemies, ]]]
[[[ foreign or domestic, requires you to follow Snowden's example. ]]]
> > > > I notice on the dialog of emacs -nw, after lots of ^G's
> > > > Auto-save? (y or n) y
> > > > Auto-save done
> >
> > That much is normal, but
> >
> > > > [Then nothing happens, and we need to hit RET to see the next question:]
> >
> > the failure to move on to the next question seems like a bug.
> > Why is it waiting for the user to type RET?
> It doesn't. It calls read_stdin, which reads 1 byte.
We may be miscommunicating.
After "Auto-save done", it should ask the next question, right?
Why does it instead try to read a character at that point
before asking another question?
--
Dr Richard Stallman (https://stallman.org)
Chief GNUisance of the GNU Project (https://gnu.org)
Founder, Free Software Foundation (https://fsf.org)
Internet Hall-of-Famer (https://internethalloffame.org)
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#73743
; Package
emacs
.
(Fri, 18 Oct 2024 06:13:03 GMT)
Full text and
rfc822 format available.
Message #22 received at 73743 <at> debbugs.gnu.org (full text, mbox):
> From: Richard Stallman <rms <at> gnu.org>
> Cc: 73743 <at> debbugs.gnu.org, jidanni <at> jidanni.org
> Date: Thu, 17 Oct 2024 22:29:59 -0400
>
> > > the failure to move on to the next question seems like a bug.
> > > Why is it waiting for the user to type RET?
>
> > It doesn't. It calls read_stdin, which reads 1 byte.
>
> We may be miscommunicating.
> After "Auto-save done", it should ask the next question, right?
> Why does it instead try to read a character at that point
> before asking another question?
Probably because it expects the user to type 'y RET', not just 'y'.
My guess is that we want the user to consciously type the response,
not just touch some random key and then "oops".
But I can only guess the reason; you are the best person to know why,
since you wrote that code back in 1992 or before, when keyboard.c was
first added to the Emacs version control. Here's how that code looked
back then:
printf ("Auto-save? (y or n) ");
fflush (stdout);
if (((c = getchar ()) & ~040) == 'Y')
Fdo_auto_save (Qnil, Qnil);
while (c != '\n') c = getchar ();
#ifdef VMS
printf ("Abort (and enter debugger)? (y or n) ");
#else /* not VMS */
printf ("Abort (and dump core)? (y or n) ");
#endif /* not VMS */
fflush (stdout);
if (((c = getchar ()) & ~040) == 'Y')
abort ();
while (c != '\n') c = getchar ();
printf ("Continuing...\n");
fflush (stdout);
init_sys_modes ();
As you see, both questions expect 'y RET' or 'n RET' as user response.
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#73743
; Package
emacs
.
(Fri, 25 Oct 2024 21:39:02 GMT)
Full text and
rfc822 format available.
Message #25 received at 73743 <at> debbugs.gnu.org (full text, mbox):
I'm here to let everybody know,
that for users of emacs -nw,
this bug will face them several times a day.
Why?
Because
^G^G^G^G^G^G...
is right next to
^F^F^F^F^F^F...
In other words, one slightly misplaced finger when doing
the super common action of holding down ^F to do several
forward-char's.
In fact it happened again as I was typing this message.
Anyway, please change the prompt wording
Auto-save? (y or n)
Abort (and dump core)? (y or n)
to say instead
Auto-save? (y RET or [n] RET)
Abort (and dump core)? (y RET or [n] RET)
That way users can also see that the n is optional all along in the
first place!
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#73743
; Package
emacs
.
(Sat, 26 Oct 2024 06:51:02 GMT)
Full text and
rfc822 format available.
Message #28 received at 73743 <at> debbugs.gnu.org (full text, mbox):
> From: Dan Jacobson <jidanni <at> jidanni.org>
> Cc: rms <at> gnu.org, 73743 <at> debbugs.gnu.org
> Date: Sat, 26 Oct 2024 05:37:29 +0800
>
> I'm here to let everybody know,
> that for users of emacs -nw,
> this bug will face them several times a day.
> Why?
> Because
> ^G^G^G^G^G^G...
> is right next to
> ^F^F^F^F^F^F...
No one else complained in all the years this feature existed, so I
think you greatly exaggerate the probability of this happening in
reality. My guess is that this is simply yet another attempt to
convince that you have uncovered a grave problem, which is patently
false.
> Anyway, please change the prompt wording
>
> Auto-save? (y or n)
> Abort (and dump core)? (y or n)
>
> to say instead
>
> Auto-save? (y RET or [n] RET)
> Abort (and dump core)? (y RET or [n] RET)
We never do anything like that in any other questions we ask the user,
so I see no reason to make this case an exception (and risk confusing
the user even more).
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#73743
; Package
emacs
.
(Sat, 26 Oct 2024 08:24:01 GMT)
Full text and
rfc822 format available.
Message #31 received at 73743 <at> debbugs.gnu.org (full text, mbox):
retitle 73743 Better prompts for Auto-save dialog
thanks
>>>>> "EZ" == Eli Zaretskii <eliz <at> gnu.org> writes:
EZ> No one else complained in all the years
Ah, that is because for the last few months I've been extensively
testing emacs -nw, whereas other users might not use it any more.
EZ> We never do anything like that in any other questions we ask the user,
EZ> so I see no reason to make this case an exception (and risk confusing
EZ> the user even more).
That is because the other questions are asked within emacs,
but these questions are asked within the shell. Thus you need to mention RET.
Also users feel bad that yes they can just hit RET,
but aren't told it doing so equals y vs. n.
Currently the question looks like there are only two choices,
y or n
and if the user doesn't pick one then they will just be asked again,
which is not true.
Changed bug title to 'Better prompts for Auto-save dialog' from 'Auto-save dialog needs extra RET'
Request was from
Dan Jacobson <jidanni <at> jidanni.org>
to
control <at> debbugs.gnu.org
.
(Sat, 26 Oct 2024 10:02:01 GMT)
Full text and
rfc822 format available.
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#73743
; Package
emacs
.
(Mon, 28 Oct 2024 04:55:01 GMT)
Full text and
rfc822 format available.
Message #36 received at 73743 <at> debbugs.gnu.org (full text, mbox):
[[[ To any NSA and FBI agents reading my email: please consider ]]]
[[[ whether defending the US Constitution against all enemies, ]]]
[[[ foreign or domestic, requires you to follow Snowden's example. ]]]
> to say instead
> Auto-save? (y RET or [n] RET)
> Abort (and dump core)? (y RET or [n] RET)
It seems good to me.
--
Dr Richard Stallman (https://stallman.org)
Chief GNUisance of the GNU Project (https://gnu.org)
Founder, Free Software Foundation (https://fsf.org)
Internet Hall-of-Famer (https://internethalloffame.org)
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#73743
; Package
emacs
.
(Mon, 28 Oct 2024 04:55:02 GMT)
Full text and
rfc822 format available.
Message #39 received at 73743 <at> debbugs.gnu.org (full text, mbox):
[[[ To any NSA and FBI agents reading my email: please consider ]]]
[[[ whether defending the US Constitution against all enemies, ]]]
[[[ foreign or domestic, requires you to follow Snowden's example. ]]]
> But I can only guess the reason; you are the best person to know why,
> since you wrote that code back in 1992 or before, when keyboard.c was
> first added to the Emacs version control.
You are right.
Also, perhaps the one-key-at-a-time ipuut that Emacs normally uses
can't be used at those itmes.
--
Dr Richard Stallman (https://stallman.org)
Chief GNUisance of the GNU Project (https://gnu.org)
Founder, Free Software Foundation (https://fsf.org)
Internet Hall-of-Famer (https://internethalloffame.org)
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#73743
; Package
emacs
.
(Sat, 01 Mar 2025 01:37:02 GMT)
Full text and
rfc822 format available.
Message #42 received at 73743 <at> debbugs.gnu.org (full text, mbox):
tags 73743 + wontfix
close 73743
thanks
Eli Zaretskii <eliz <at> gnu.org> writes:
>> From: Dan Jacobson <jidanni <at> jidanni.org>
>> Cc: rms <at> gnu.org, 73743 <at> debbugs.gnu.org
>> Date: Sat, 26 Oct 2024 05:37:29 +0800
>>
>> I'm here to let everybody know,
>> that for users of emacs -nw,
>> this bug will face them several times a day.
>> Why?
>> Because
>> ^G^G^G^G^G^G...
>> is right next to
>> ^F^F^F^F^F^F...
>
> No one else complained in all the years this feature existed, so I
> think you greatly exaggerate the probability of this happening in
> reality. My guess is that this is simply yet another attempt to
> convince that you have uncovered a grave problem, which is patently
> false.
>
>> Anyway, please change the prompt wording
>>
>> Auto-save? (y or n)
>> Abort (and dump core)? (y or n)
>>
>> to say instead
>>
>> Auto-save? (y RET or [n] RET)
>> Abort (and dump core)? (y RET or [n] RET)
>
> We never do anything like that in any other questions we ask the user,
> so I see no reason to make this case an exception (and risk confusing
> the user even more).
Agreed. I think this is a wontfix, sorry.
I'm therefore closing this bug report.
Added tag(s) wontfix.
Request was from
Stefan Kangas <stefankangas <at> gmail.com>
to
control <at> debbugs.gnu.org
.
(Sat, 01 Mar 2025 01:37:02 GMT)
Full text and
rfc822 format available.
bug closed, send any further explanations to
73743 <at> debbugs.gnu.org and Dan Jacobson <jidanni <at> jidanni.org>
Request was from
Stefan Kangas <stefankangas <at> gmail.com>
to
control <at> debbugs.gnu.org
.
(Sat, 01 Mar 2025 01:37:02 GMT)
Full text and
rfc822 format available.
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Sat, 29 Mar 2025 11:24:27 GMT)
Full text and
rfc822 format available.
This bug report was last modified 81 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.